alaskartv-source/playback/jellyfin/build.gradle.kts
AlaskarTV-Bot 0895bc6bf6 Update
2025-01-06 15:34:36 +00:00

51 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)
}