Skip to content

Commit 22b7473

Browse files
authored
update module_host_with_custom_build_v2_embedding to target android 35 and to use the latest gradle and agp versions (#163542)
Part of #149836 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent 063d0da commit 22b7473

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'com.android.application'
66

77
android {
88
namespace = "io.flutter.addtoapp"
9-
compileSdk 34
9+
compileSdk 35
1010

1111
// Flutter's CI installs the NDK at a non-standard path.
1212
// This non-standard structure is initially created by
@@ -25,7 +25,7 @@ android {
2525
defaultConfig {
2626
applicationId "io.flutter.addtoapp"
2727
minSdkVersion 21
28-
targetSdkVersion 34
28+
targetSdkVersion 35
2929
versionCode 1
3030
versionName "1.0"
3131
}
@@ -36,15 +36,15 @@ android {
3636
// This is required because the `:flutter` project doesn't define this custom build type.
3737
// Without the fallback, the Android plugin will make Gradle exit with the following error:
3838
// `Unable to find a matching variant of project :flutter`
39-
matchingFallbacks = ['debug']
39+
matchingFallbacks += 'debug'
4040
}
4141
prod {
4242
initWith release
43-
matchingFallbacks = ['release']
43+
matchingFallbacks += 'release'
4444
}
4545
}
4646
// Test flavors.
47-
flavorDimensions "version"
47+
flavorDimensions += "version"
4848
productFlavors {
4949
demo {
5050
dimension "version"

dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
mavenCentral()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:8.1.0'
11+
classpath 'com.android.tools.build:gradle:8.8.1'
1212
}
1313
}
1414

dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
36
zipStoreBase=GRADLE_USER_HOME
47
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip

0 commit comments

Comments
 (0)