Skip to content

Commit 2a52161

Browse files
committed
Update Gradle to 8.2
The Gradle distribution URL has been updated from `gradle-7.6.3-all.zip` to `gradle-8.2-all.zip` in `flutter/android/gradle/wrapper/gradle-wrapper.properties`. Additionally: - The namespace for the Android application has been set to "org.mlcommons.android.mlperfbench" in `flutter/android/app/build.gradle`. - A `subprojects` block has been added to `flutter/android/build.gradle` to set the namespace for subprojects if it's not already defined. - The `android.bundle.enableUncompressedNativeLibs=false` line has been removed from `flutter/android/gradle.properties`.
1 parent 82b9934 commit 2a52161

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

flutter/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if (flutterVersionName == null) {
2525
}
2626

2727
android {
28+
namespace "org.mlcommons.android.mlperfbench"
2829
compileSdkVersion 34
2930

3031
compileOptions {

flutter/android/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ allprojects {
88
rootProject.buildDir = '../build'
99
subprojects {
1010
project.buildDir = "${rootProject.buildDir}/${project.name}"
11+
afterEvaluate { project ->
12+
if (project.hasProperty('android')) {
13+
project.android {
14+
if (namespace == null) {
15+
namespace project.group
16+
}
17+
}
18+
}
19+
}
1120
project.evaluationDependsOn(':app')
1221
}
1322

flutter/android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4-
android.bundle.enableUncompressedNativeLibs=false

flutter/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

0 commit comments

Comments
 (0)