Skip to content

Commit

Permalink
[CP] Integration tests support AGP 8.0 (#125686)
Browse files Browse the repository at this point in the history
- Smallest change required to support host apps using agp 8.0 (#125657)

Original issue #125181
Cherry pick issue #125688

*If you had to change anything in the [flutter/tests] repo, include a
link to the migration guide as per the [breaking change policy].*

## 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.
- [ ] 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] All existing and new tests are passing.
  • Loading branch information
reidbaker committed May 1, 2023
1 parent 5fa49ae commit c4e1925
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/integration_test/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'dev.flutter.integration_test'
}
compileSdkVersion 31

compileOptions {
Expand Down
4 changes: 4 additions & 0 deletions packages/integration_test/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'com.example.integration_test_example'
}
compileSdkVersion flutter.compileSdkVersion

compileOptions {
Expand Down

0 comments on commit c4e1925

Please sign in to comment.