Update deprecated AGP properties (#770)

* Update deprecated AGP properties

* Remove unused suppression
This commit is contained in:
stevenyomi 2024-01-29 14:12:08 +08:00 committed by GitHub
parent 054f256bfc
commit 37f6713774
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
object AndroidConfig { object AndroidConfig {
const val compileSdk = 34 const val compileSdk = 34
const val minSdk = 21 const val minSdk = 21
@Suppress("UNUSED")
const val targetSdk = 34 const val targetSdk = 34
} }

View File

@ -4,7 +4,7 @@ apply plugin: 'kotlinx-serialization'
apply plugin: 'org.jmailen.kotlinter' apply plugin: 'org.jmailen.kotlinter'
android { android {
compileSdkVersion AndroidConfig.compileSdk compileSdk AndroidConfig.compileSdk
namespace "eu.kanade.tachiyomi.extension" namespace "eu.kanade.tachiyomi.extension"
sourceSets { sourceSets {
@ -17,8 +17,8 @@ android {
} }
defaultConfig { defaultConfig {
minSdkVersion AndroidConfig.minSdk minSdk AndroidConfig.minSdk
targetSdkVersion AndroidConfig.targetSdk targetSdk AndroidConfig.targetSdk
applicationIdSuffix project.parent.name + "." + project.name applicationIdSuffix project.parent.name + "." + project.name
versionCode extVersionCode versionCode extVersionCode
versionName project.ext.properties.getOrDefault("libVersion", "1.4") + ".$extVersionCode" versionName project.ext.properties.getOrDefault("libVersion", "1.4") + ".$extVersionCode"