Skip to content

Commit 528fae5

Browse files
committed
chore: Update Gradle configuration
This commit updates the Gradle configuration by removing deprecated or unnecessary flags from `gradle.properties` and adjusting the `app/build.gradle.kts` file. - `gradle.properties`: Removed several `android.*` flags that are no longer needed. - `app/build.gradle.kts`: - Switched from the `android` block to the `configure<ApplicationExtension>` block for Android configuration. - Moved the `resValues = true` flag into the `buildFeatures` block. - Reordered the `testOptions` block to place `execution` after `animationsDisabled`.
1 parent 79fa385 commit 528fae5

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

app/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.android.build.api.dsl.ApplicationExtension
12
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
23

34
plugins {
@@ -16,7 +17,7 @@ plugins {
1617
alias(libs.plugins.compose.compiler)
1718
}
1819

19-
android {
20+
configure<ApplicationExtension> {
2021
val target = 36
2122
compileSdk = target
2223
defaultConfig {
@@ -87,16 +88,18 @@ android {
8788
}
8889

8990
testOptions {
90-
execution = "ANDROIDX_TEST_ORCHESTRATOR"
9191
animationsDisabled = true
92+
execution = "ANDROIDX_TEST_ORCHESTRATOR"
9293
}
9394

9495
buildFeatures {
9596
dataBinding = true
9697
viewBinding = true
9798
compose = true
9899
buildConfig = false
100+
resValues = true
99101
}
102+
100103
namespace = "com.warbler"
101104

102105
packaging {

gradle.properties

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@ android.useAndroidX=true
2020
kotlin.code.style=official
2121
kapt.incremental.apt=true
2222
android.nonTransitiveRClass=false
23-
android.nonFinalResIds=false
24-
android.defaults.buildfeatures.resvalues=true
25-
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
26-
android.enableAppCompileTimeRClass=false
27-
android.usesSdkInManifest.disallowed=false
2823
android.uniquePackageNames=false
2924
android.dependency.useConstraints=true
3025
android.r8.strictFullModeForKeepRules=false
31-
android.r8.optimizedResourceShrinking=false
3226
android.builtInKotlin=false
3327
android.newDsl=false

0 commit comments

Comments
 (0)