-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[shared_preferences] Fix Android Java version issue #3712
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
[shared_preferences] Fix Android Java version issue #3712
Conversation
Sets the compile version to 1.8, which is required by some features added in the switch to Pigeon. This is a standard part of the current Android plugin template, but this plugin predates that template change. Fixes flutter/flutter#124839
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. |
@reidbaker I'm assuming the reason we don't see this in CI is that with a new enough version of everything (Java? Gradle? AGP?) it won't try to compile with 1.7 regardless? I'm going to do a sweep of all of our plugins to add this anywhere else we don't have it, but I wanted to do this one ASAP to get the fix out since it's breaking a bunch of people (although it will stop breaking new people now that I've retracted 2.1.1). |
This comment was marked as off-topic.
This comment was marked as off-topic.
I just checked the compatibility for all the items I have recently researched. This is the only quote that stands out "Java 6 and 7 can still be used for compilation, but are deprecated for use with testing. Testing with Java 6 and 7 will not be supported in Gradle 9.0." |
I looked around a bit more and found this, which says that the default value is the |
Based on my reading of that link we should be setting toolchain and not source compatibility. |
I noticed that too, but I'm not clear on what other effects that has (if any). The It seemed like |
That makes sense to me. |
flutter/packages@e4ec155...0277f2a 2023-04-16 [email protected] Roll Flutter from 00171b0 to 50171bb (7 revisions) (flutter/packages#3723) 2023-04-15 [email protected] Roll Flutter from f740544 to 00171b0 (17 revisions) (flutter/packages#3717) 2023-04-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.2.9 to 2.2.12 (flutter/packages#3711) 2023-04-15 49699333+dependabot[bot]@users.noreply.github.com Bump actions/checkout from 3.5.0 to 3.5.2 (flutter/packages#3710) 2023-04-14 [email protected] [path_provider] Fix Android lint warnings (flutter/packages#3706) 2023-04-14 [email protected] [webview_flutter_android] [camera_android_camerax] Updates internal Java InstanceManager to only stop finalization callbacks when stopped (flutter/packages#3571) 2023-04-14 [email protected] [shared_preferences] Fix Android Java version issue (flutter/packages#3712) 2023-04-14 [email protected] [image_picker][android] Non-bitmap images now return path instead of null (flutter/packages#3590) 2023-04-14 [email protected] Roll Flutter from be45eb2 to f740544 (24 revisions) (flutter/packages#3713) 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-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
Sets the compile version to 1.8, which is required by some features added in the switch to Pigeon. This is a standard part of the current Android plugin template, but this plugin predates that template change. Fixes flutter/flutter#124839
Sets the compile version to 1.8, which is required by some features added in the switch to Pigeon. This is a standard part of the current Android plugin template, but this plugin predates that template change.
Fixes flutter/flutter#124839
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).