[go: nahoru, domu]

Skip to content
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

Bump targetSdkVersion to 31 and organize static values #91719

Merged
merged 10 commits into from
Oct 15, 2021

Conversation

blasten
Copy link
@blasten blasten commented Oct 13, 2021

Bumps the targetSdkVersion to 31, and also moves the versions for
minSdkVersion, compileSdkVersion, and targetSdkVersion to flutter.grade.

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos documentation f: integration_test The flutter/packages/integration_test plugin team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels. labels Oct 13, 2021
@google-cla google-cla bot added the cla: yes label Oct 13, 2021
@blasten blasten marked this pull request as ready for review October 13, 2021 00:48
@flutter-dashboard
Copy link

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.

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.

@blasten blasten requested a review from GaryQian October 13, 2021 00:48
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
compileSdkVersion flutter.compileSdkVersion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We risk breaking people by accident when we bump the supported SDK versions in the future without the developer's knowledge, correct? I am all for the centralized sdk versions as this makes it much cleaner, but what is an acceptable level of potential breaking in the future?

One way to put it is that with this change, developers would have to opt out of automatic sdk bumps by editing the build.gradle if they encounter issues rather than opt into sdk bumps by manually bumping the number.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be determined exclusively by the engine dependencies.

@GaryQian
Copy link
Contributor

+1 on why not compileSdk also to 31?

Does it have to do with something like #74915 where something does not support 31 yet?

@blasten
Copy link
Author
blasten commented Oct 13, 2021

Does it have to do with something like #74915 where something does not support 31 yet?

I explained the issue in regards to plugins in #91771

compileSdkVersion is determined by the engine dependencies as adding or bumping one of those versions will require all apps to bump the compileSdkVersion.

I'm in favor of keeping compileSdkVersion up to date. I just don't fully know all the implications. I'm planning to send a separate PR just to see what issues I run into.

@GaryQian
Copy link
Contributor

Ok, keeping up to date rather than latest sgtm then.

@blasten blasten requested a review from GaryQian October 13, 2021 23:43
Copy link
Contributor
@GaryQian GaryQian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@blasten blasten merged commit d763127 into flutter:master Oct 15, 2021
@blasten blasten deleted the bump_gradle_target_sdk branch October 15, 2021 20:41
@Hixie
Copy link
Contributor
Hixie commented Oct 15, 2021

This seems to have broken flutter create; flutter run: #91936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos f: integration_test The flutter/packages/integration_test plugin team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants