Skip to content

Commit 24bfc22

Browse files
authored
Merge branch 'main' into copilot/update-agp-to-8-1-1
2 parents 50f494c + a24f756 commit 24bfc22

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

example/android/build.gradle

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
allprojects {
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
24
repositories {
35
google()
46
mavenCentral()
57
}
6-
}
78

8-
rootProject.buildDir = "../build"
9-
subprojects {
10-
project.buildDir = "${rootProject.buildDir}/${project.name}"
9+
dependencies {
10+
// Updated Android Gradle Plugin to meet Flutter's minimum supported version.
11+
// Was: 'com.android.tools.build:gradle:8.1.0'
12+
classpath 'com.android.tools.build:gradle:8.1.1'
13+
14+
// NOTE: Do not place your application dependencies here; they belong
15+
// in the individual module build.gradle files
16+
}
1117
}
12-
subprojects {
13-
project.evaluationDependsOn(":app")
18+
19+
allprojects {
20+
repositories {
21+
google()
22+
mavenCentral()
23+
}
1424
}
1525

16-
tasks.register("clean", Delete) {
26+
// Custom clean task to ensure all build directories are deleted
27+
tasks.register('clean', Delete) {
1728
delete rootProject.buildDir
18-
}
29+
subprojects.each { delete it.buildDir }
30+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#Fri Oct 17 00:00:00 UTC 2025
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
# Use Gradle 8.3 which is compatible with Android Gradle Plugin 8.1.1
7+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip

0 commit comments

Comments
 (0)