* Update dependency gradle to v8 * fix: add compatibility with AGP 7.4 and remove some kotlin jvmTarget --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
@Suppress("DSL_SCOPE_VIOLATION") // False positive
|
|
plugins {
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.kotlin.android)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
alias(libs.plugins.ktlint)
|
|
}
|
|
|
|
android {
|
|
namespace = "dev.jdtech.jellyfin.data"
|
|
compileSdk = 33
|
|
buildToolsVersion = "33.0.2"
|
|
|
|
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\"")
|
|
|
|
consumerProguardFile("proguard-rules.pro")
|
|
}
|
|
|
|
buildTypes {
|
|
getByName("release") {
|
|
isMinifyEnabled = false
|
|
}
|
|
create("staging") {
|
|
initWith(getByName("release"))
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
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.kotlinx.serialization.json)
|
|
implementation(libs.timber)
|
|
}
|