* Update android-plugin to v7.4.0 * Set Java version to 11 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
@Suppress("DSL_SCOPE_VIOLATION") // False positive
|
|
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.jdtech.jellyfin.data"
|
|
compileSdk = 33
|
|
buildToolsVersion = "33.0.1"
|
|
|
|
defaultConfig {
|
|
minSdk = 27
|
|
|
|
val appVersionCode: Int by rootProject.extra
|
|
val appVersionName: String by rootProject.extra
|
|
buildConfigField("int", "VERSION_CODE", appVersionCode.toString())
|
|
buildConfigField("String", "VERSION_NAME", "\"$appVersionName\"")
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = false
|
|
}
|
|
create("staging") {
|
|
initWith(getByName("release"))
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
}
|
|
|
|
ktlint {
|
|
android.set(true)
|
|
ignoreFailures.set(false)
|
|
disabledRules.add("max-line-length")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":preferences"))
|
|
implementation(libs.androidx.paging)
|
|
implementation(libs.jellyfin.core)
|
|
implementation(libs.timber)
|
|
}
|