-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Test AGP 8.0 using java 17 #125323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test AGP 8.0 using java 17 #125323
Conversation
|
|
|
||
| android { | ||
| compileSdkVersion 31 | ||
| namespace = 'dev.flutter.integration_test' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know almost nothing about Groovy, so maybe this is an irrelevant difference, but I've been doing using the syntax namespace 'dev.flutter.integration_test', which is what https://developer.android.com/build/configure-app-module#groovy shows for Groovy.
I see looking around more that https://developer.android.com/build/publish-library/prep-lib-release does the =, but maybe there's a difference in how unsupported/unknown things are handled with one syntax vs. the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah given that groovy is a dynamic language I wonder if the = is more strict. That seems like a reasonable guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or the issue could be that I used the wrong namespace and the error messages are not helpful :shamecube:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding of groovy is that foo 'bar' is equivalent to foo('bar') (i.e. a method call), while foo = 'bar' is what you would expect it to be.
But (not sure about this part) that they end up equivalent in some places because that foo is just a setter method for a foo property.
See https://stackoverflow.com/questions/22759542/confused-with-the-use-of-assignment-and-brackets (the question is somewhat different but the top answer covers the topic).
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with one reservation. I'll leave it to your judgement though.
| // Conditional for compatibility with AGP <4.2. | ||
| if (project.android.hasProperty("namespace")) { | ||
| namespace 'com.example.integration_test_example' | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently I didn't save the comment that was supposed to go with that overall comment:
Could we make just this change in one PR, to make it as safe as possible to cherry-pick, and do the rest in a second PR that we don't cherry-pick? I'm slightly worried that the AGP update here might cause unexpected issues for clients (since IIRC we've hit issues in the past where we thought that wouldn't affect clients and then it did, but maybe I'm misremembering).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR updates the dartdoc version to v6.2.2. Release notes: https://github.com/dart-lang/dartdoc/releases/tag/v6.2.2 The main impact for Flutter is to update dartdoc to add chips to class and/or mixin pages for class modifiers. See dart-lang/dartdoc#3391, dart-lang/dartdoc#3402. This will also be a cherry-pick candidate for 3.1 if it can land in time. - [ test-exempt ] I added new tests to check the change I am making, or this PR is [test-exempt].
…dio bundled Java version is detected (#124085) This PR adds an android project migrator that checks the version of android studio and the version of gradle for conflicts, and upgrades to 7.4 if a conflict is detected. For more detail about the particular conflict, see #122376. The PR also upgrades older gradle versions being used in integration testing to 7.4. Fixes/related to: #122376 and #123636
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the Dart formatting.
...ges/flutter_tools/test/integration.shard/android_plugin_compilesdkversion_mismatch_test.dart
Outdated
Show resolved
Hide resolved
…mismatch_test.dart
flutter/flutter@4ed1c92...8c5a1ea 2023-05-08 [email protected] tool/web: tiniest tweak to wasm help content (flutter/flutter#126284) 2023-05-08 [email protected] Roll Flutter Engine from d9184ce4ffa0 to 8d3a8162b3ab (7 revisions) (flutter/flutter#126288) 2023-05-08 [email protected] Fix that `flutter test` does not understand `concurrency` (flutter/flutter#125942) 2023-05-08 [email protected] Fix that `flutter test` does not understand `concurrency` (flutter/flutter#125942) 2023-05-08 [email protected] Improve the format in `asset_bundle.dart` (flutter/flutter#126229) 2023-05-08 [email protected] Tiny cleanup for Navigator code (without introducing dependency) (flutter/flutter#125628) 2023-05-08 [email protected] [Refactor] Fix style in example (flutter/flutter#126191) 2023-05-08 [email protected] Roll Flutter Engine from a8e9ac63fd95 to d9184ce4ffa0 (2 revisions) (flutter/flutter#126279) 2023-05-08 [email protected] [Tool] Output help on 'flutter pub' (flutter/flutter#126211) 2023-05-08 [email protected] Always use `--concurrency=1` for web tests. (flutter/flutter#126179) 2023-05-08 [email protected] Add `--verbose` flags for flakey tests (flutter/flutter#126162) 2023-05-08 [email protected] Roll Packages from a0f8fd8 to 4800d65 (2 revisions) (flutter/flutter#126269) 2023-05-08 [email protected] Test AGP 8.0 using java 17 (flutter/flutter#125323) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/flutter@4ed1c92...8c5a1ea 2023-05-08 [email protected] tool/web: tiniest tweak to wasm help content (flutter/flutter#126284) 2023-05-08 [email protected] Roll Flutter Engine from d9184ce4ffa0 to 8d3a8162b3ab (7 revisions) (flutter/flutter#126288) 2023-05-08 [email protected] Fix that `flutter test` does not understand `concurrency` (flutter/flutter#125942) 2023-05-08 [email protected] Fix that `flutter test` does not understand `concurrency` (flutter/flutter#125942) 2023-05-08 [email protected] Improve the format in `asset_bundle.dart` (flutter/flutter#126229) 2023-05-08 [email protected] Tiny cleanup for Navigator code (without introducing dependency) (flutter/flutter#125628) 2023-05-08 [email protected] [Refactor] Fix style in example (flutter/flutter#126191) 2023-05-08 [email protected] Roll Flutter Engine from a8e9ac63fd95 to d9184ce4ffa0 (2 revisions) (flutter/flutter#126279) 2023-05-08 [email protected] [Tool] Output help on 'flutter pub' (flutter/flutter#126211) 2023-05-08 [email protected] Always use `--concurrency=1` for web tests. (flutter/flutter#126179) 2023-05-08 [email protected] Add `--verbose` flags for flakey tests (flutter/flutter#126162) 2023-05-08 [email protected] Roll Packages from a0f8fd8 to 4800d65 (2 revisions) (flutter/flutter#126269) 2023-05-08 [email protected] Test AGP 8.0 using java 17 (flutter/flutter#125323) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
#125181
Pre-launch Checklist
///).