Update app build script for Gradle 9 compatibility
This commit is contained in:
committed by
Niels van Velzen
parent
e30e9928d1
commit
83f95c9c74
@@ -18,7 +18,6 @@ android {
|
||||
applicationId = namespace
|
||||
versionName = project.getVersionName()
|
||||
versionCode = getVersionCode(versionName!!)
|
||||
setProperty("archivesBaseName", "jellyfin-androidtv-v$versionName")
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
@@ -32,7 +31,7 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
val release by getting {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
|
||||
// Set package names used in various XML files
|
||||
@@ -46,7 +45,7 @@ android {
|
||||
buildConfigField("boolean", "DEVELOPMENT", "false")
|
||||
}
|
||||
|
||||
val debug by getting {
|
||||
debug {
|
||||
// Use different application id to run release and debug at the same time
|
||||
applicationIdSuffix = ".debug"
|
||||
|
||||
@@ -74,7 +73,9 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
val versionTxt by tasks.registering {
|
||||
base.archivesName.set("jellyfin-androidtv-v${project.getVersionName()}")
|
||||
|
||||
tasks.register("versionTxt") {
|
||||
val path = layout.buildDirectory.asFile.get().resolve("version.txt")
|
||||
|
||||
doLast {
|
||||
|
||||
Reference in New Issue
Block a user