52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
|
plugins {
|
||
|
id("com.android.library")
|
||
|
kotlin("android")
|
||
|
}
|
||
|
|
||
|
android {
|
||
|
namespace = "org.jellyfin.playback.jellyfin"
|
||
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
||
|
|
||
|
defaultConfig {
|
||
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
||
|
}
|
||
|
|
||
|
compileOptions {
|
||
|
isCoreLibraryDesugaringEnabled = true
|
||
|
}
|
||
|
|
||
|
lint {
|
||
|
lintConfig = file("$rootDir/android-lint.xml")
|
||
|
abortOnError = false
|
||
|
}
|
||
|
|
||
|
testOptions.unitTests.all {
|
||
|
it.useJUnitPlatform()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
// Jellyfin
|
||
|
implementation(projects.playback.core)
|
||
|
implementation(libs.jellyfin.sdk) {
|
||
|
// Change version if desired
|
||
|
val sdkVersion = findProperty("sdk.version")?.toString()
|
||
|
when (sdkVersion) {
|
||
|
"local" -> version { strictly("latest-SNAPSHOT") }
|
||
|
"snapshot" -> version { strictly("master-SNAPSHOT") }
|
||
|
"unstable-snapshot" -> version { strictly("openapi-unstable-SNAPSHOT") }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Logging
|
||
|
implementation(libs.timber)
|
||
|
|
||
|
// Compatibility (desugaring)
|
||
|
coreLibraryDesugaring(libs.android.desugar)
|
||
|
|
||
|
// Testing
|
||
|
testImplementation(libs.kotest.runner.junit5)
|
||
|
testImplementation(libs.kotest.assertions)
|
||
|
testImplementation(libs.mockk)
|
||
|
}
|