Switch to new syntax for declaring SDK versions

Current ones are planned to be deprecated in AGP 10.x

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2026-05-07 12:38:52 +08:00
parent 89d55ede72
commit 53f36154aa
2 changed files with 14 additions and 4 deletions

View file

@ -30,14 +30,22 @@ kotlin {
} }
configure<ApplicationExtension> { configure<ApplicationExtension> {
compileSdk = 36 compileSdk {
version = release(36) {
minorApiLevel = 1
}
}
namespace = "org.schabi.newpipe" namespace = "org.schabi.newpipe"
defaultConfig { defaultConfig {
applicationId = "org.schabi.newpipe" applicationId = "org.schabi.newpipe"
resValue("string", "app_name", "NewPipe") resValue("string", "app_name", "NewPipe")
minSdk = 23 minSdk {
targetSdk = 35 version = release(23)
}
targetSdk {
version = release(35)
}
versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1011 versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1011

View file

@ -33,7 +33,9 @@ kotlin {
minorApiLevel = 1 minorApiLevel = 1
} }
} }
minSdk = 23 minSdk {
version = release(23)
}
androidResources { androidResources {
enable = true enable = true
} }