You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.0 KiB
88 lines
3.0 KiB
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
packagingOptions {
|
|
jniLibs {
|
|
pickFirsts += ['**/*.so']
|
|
}
|
|
}
|
|
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
compileSdk rootProject.ext.compileSdkVersion
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
|
|
buildConfigField 'int', 'VLC_VERSION_CODE', "${rootProject.ext.versionCode}"
|
|
buildConfigField "String", "MOVIEPEDIA_API_URL", "\"${getMoviepediaUrl(project)}\""
|
|
multiDexEnabled true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
jniDebuggable true
|
|
}
|
|
dev {
|
|
initWith debug
|
|
matchingFallbacks = ['debug']
|
|
}
|
|
noTv {
|
|
initWith release
|
|
matchingFallbacks = ['release']
|
|
}
|
|
vlcBundle {
|
|
initWith release
|
|
matchingFallbacks = ['release']
|
|
}
|
|
}
|
|
namespace 'org.videolan.moviepedia'
|
|
buildFeatures {
|
|
buildConfig true
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':application:tools')
|
|
implementation project(':application:vlc-android')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$rootProject.ext.kotlinx_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$rootProject.ext.kotlinx_version"
|
|
implementation "androidx.paging:paging-runtime-ktx:$rootProject.ext.pagingVersion"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.ext.lifecycleVersion"
|
|
|
|
//Room
|
|
implementation "androidx.room:room-runtime:$rootProject.ext.roomVersion"
|
|
// Provide proper JDBC version, see https://issuetracker.google.com/issues/174695268
|
|
kapt ('org.xerial:sqlite-jdbc:3.36.0')
|
|
kapt "androidx.room:room-compiler:$rootProject.ext.roomVersion"
|
|
|
|
|
|
// Retrofit
|
|
implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofit"
|
|
implementation "com.squareup.retrofit2:converter-moshi:$rootProject.ext.retrofit"
|
|
implementation "com.squareup.moshi:moshi-adapters:$rootProject.ext.moshi"
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.2.1")
|
|
|
|
testImplementation "junit:junit:$rootProject.ext.junitVersion"
|
|
androidTestImplementation "androidx.test.ext:junit:$rootProject.ext.junitExtVersion"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
|
|
}
|
|
|
|
static def getMoviepediaUrl(project) {
|
|
if (project.hasProperty('moviepedia_api_url')) return project.properties['moviepedia_api_url'] else return "https://localhost/"
|
|
}
|
|
|