-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[Android 16] Bumped Android Defaults in Engine #166796
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
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging. 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.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
|
Approved pending checks on any deprecations |
It looks like deprecation warnings appeared when updating to API 35 (pr here) due to specific android 35 api updates outlined in the release notes here. I am not seeing any deprecation warnings when bumping to API 36. Edit: confirmed the warnings were from CI when engine was bumped to 35 |
What are you using to check for deprecation warnings? |
| recreateSurfaceIfNeeded(); | ||
| if (surfaceTexture == null || surfaceTexture.isReleased()) { | ||
| return null; | ||
| if (Build.VERSION.SDK_INT >= API_LEVELS.API_26) { |
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 is also a behavior change, right? What was the pre-change path like? Would this method (this.getSurface()) have been called on < api 26?
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.
So the path wasn't removed. I'm wrapping the if statement with a check to ensure isReleased is called on >= api 26. This check is needed at this function because I removed @TargetApi(API_LEVELS.API_26) at the class level.
If it is a behavior change (but I think it isn't), it's required.
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.
Hmm it is a behavior change though, right? Before, if called on api 25 the code would happily attempt to call
https://developer.android.com/reference/android/graphics/SurfaceTexture#isReleased()
and probably crash because that api was introduced in android api 26
But now if we try to call getSurface on api 25, we will return a value.
Probably the method should be annotated with @RequiresApi instead, right?
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.
Probably the method should be annotated with @RequiresApi instead, right?
I say this because presumably before we weren't making a call to this method on API 25 as we would be crashing. So probably this method actually does require api 26+
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.
Okay I see what you mean. I'm gonna change it.
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.
done.
...ne/src/flutter/shell/platform/android/io/flutter/plugin/localization/LocalizationPlugin.java
Show resolved
Hide resolved
gmackall
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.
Looks close to good, added some questions
gmackall
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!
reidbaker
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.
Can you rerun the gradle lockfile script. I dont see anything in the current pr that should cause bytebuddy to bump in version.
flutter/flutter@02d8c1a...83082c1 2025-05-08 [email protected] [Widget Inspector] Clean-up changes in PR #167677 (flutter/flutter#168488) 2025-05-08 [email protected] Increased the limit where we start chopping off the end of blurs (flutter/flutter#168109) 2025-05-08 [email protected] Roll to Dart SDK 3.9 Beta 1 (flutter/flutter#168559) 2025-05-08 [email protected] Rename apple -> darwin across our buildroot (flutter/flutter#168558) 2025-05-08 [email protected] Update Engine to Android 16 (API 36) (flutter/flutter#166796) 2025-05-08 [email protected] Roll Skia from 43ae814d2d95 to efccaeb08b8d (5 revisions) (flutter/flutter#168554) 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] 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…#9232) flutter/flutter@02d8c1a...83082c1 2025-05-08 [email protected] [Widget Inspector] Clean-up changes in PR #167677 (flutter/flutter#168488) 2025-05-08 [email protected] Increased the limit where we start chopping off the end of blurs (flutter/flutter#168109) 2025-05-08 [email protected] Roll to Dart SDK 3.9 Beta 1 (flutter/flutter#168559) 2025-05-08 [email protected] Rename apple -> darwin across our buildroot (flutter/flutter#168558) 2025-05-08 [email protected] Update Engine to Android 16 (API 36) (flutter/flutter#166796) 2025-05-08 [email protected] Roll Skia from 43ae814d2d95 to efccaeb08b8d (5 revisions) (flutter/flutter#168554) 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] 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…#9232) flutter/flutter@02d8c1a...83082c1 2025-05-08 [email protected] [Widget Inspector] Clean-up changes in PR #167677 (flutter/flutter#168488) 2025-05-08 [email protected] Increased the limit where we start chopping off the end of blurs (flutter/flutter#168109) 2025-05-08 [email protected] Roll to Dart SDK 3.9 Beta 1 (flutter/flutter#168559) 2025-05-08 [email protected] Rename apple -> darwin across our buildroot (flutter/flutter#168558) 2025-05-08 [email protected] Update Engine to Android 16 (API 36) (flutter/flutter#166796) 2025-05-08 [email protected] Roll Skia from 43ae814d2d95 to efccaeb08b8d (5 revisions) (flutter/flutter#168554) 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] 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Following the directions here to update engine to android 16.
DEPStargetsdkandcompilesdket build -c android_debug_unopt_arm64Note: Post mono-repo merge, we can now update buildroot and
DEPSin the same PR 🎊 !!! Also, updated the Clang path due to use of a new Clang version in the bumped ndk.Partially Addresses #166950
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.