Skip to content

Commit 29ebc3c

Browse files
committed
Update to Gradle 9
1 parent c4ebda7 commit 29ebc3c

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ android {
3232

3333
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3434
signingConfig = signingConfigs.getByName("release")
35-
setProperty("archivesBaseName", applicationId + "-v" + versionCode)
3635

3736
ndk {
3837
debugSymbolLevel = "full"
@@ -67,6 +66,10 @@ android {
6766
}
6867
}
6968

69+
base {
70+
archivesName = "${android.defaultConfig.applicationId}-v${android.defaultConfig.versionCode}"
71+
}
72+
7073
dependencies {
7174

7275
implementation(libs.appcompat)

gradle.properties

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ android.useAndroidX=true
1818
# Enables namespacing of each library's R class so that its R class includes only the
1919
# resources declared in the library itself and none from the library's dependencies,
2020
# thereby reducing the size of the R class for that library
21-
android.nonTransitiveRClass=true
21+
android.nonTransitiveRClass=true
22+
android.defaults.buildfeatures.resvalues=true
23+
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
24+
android.enableAppCompileTimeRClass=false
25+
android.usesSdkInManifest.disallowed=false
26+
android.uniquePackageNames=false
27+
android.dependency.useConstraints=true
28+
android.r8.strictFullModeForKeepRules=false
29+
android.r8.optimizedResourceShrinking=false
30+
android.builtInKotlin=true
31+
android.newDsl=true

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
agp = "8.13.2"
2+
agp = "9.1.0"
33
junit = "4.13.2"
44
junitVersion = "1.1.5"
55
espressoCore = "3.5.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Sep 24 17:10:19 BST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)