Bump targetSdkVersion to 31 and organize static values#91719
Bump targetSdkVersion to 31 and organize static values#91719blasten merged 10 commits intoflutter:masterfrom
Conversation
|
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. |
|
|
||
| android { | ||
| compileSdkVersion 30 | ||
| compileSdkVersion flutter.compileSdkVersion |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
This will be determined exclusively by the engine dependencies.
|
+1 on why not compileSdk also to 31? 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
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. |
|
Ok, keeping up to date rather than latest sgtm then. |
|
This seems to have broken |
Bumps the targetSdkVersion to 31, and also moves the versions for
minSdkVersion, compileSdkVersion, and targetSdkVersion to flutter.grade.