chore(cli): update to new buildConfig format (#9924)

* chore(cli): update to new buildConfig format

the existing usage has been deprecated and will be removed on gradle plugin v9, as Android Studio warns

* add config to our lib too
This commit is contained in:
Lucas Fernandes Nogueira 2024-05-30 16:56:11 -03:00 committed by GitHub
parent 916a26c2a1
commit 3cca5c2be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:changes
"@tauri-apps/cli": patch:changes
---
Migrate to new Android buildFeatures.buildConfig format.

View File

@ -31,6 +31,9 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
buildConfig = true
}
}
dependencies {

View File

@ -50,6 +50,9 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
buildConfig = true
}
}
rust {

View File

@ -18,6 +18,6 @@ repositories {
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:8.0.0")
implementation("com.android.tools.build:gradle:8.3.2")
}

View File

@ -21,5 +21,4 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false