-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Bump compileSdkVersion to 31 #4432
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| group 'io.flutter.plugins.camera' | ||
| version '1.0-SNAPSHOT' | ||
| def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"] | ||
| def args = ["-Xlint:deprecation","-Xlint:unchecked"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would the removal of the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is temporary and can be reverted after #4423 |
||
|
|
||
| buildscript { | ||
| repositories { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,10 +93,13 @@ class CreateAllPluginsAppCommand extends PluginCommand { | |
|
|
||
| final StringBuffer newGradle = StringBuffer(); | ||
| for (final String line in gradleFile.readAsLinesSync()) { | ||
| if (line.contains('minSdkVersion 16')) { | ||
| if (line.contains('minSdkVersion')) { | ||
| // Android SDK 20 is required by Google maps. | ||
| // Android SDK 19 is required by WebView. | ||
| newGradle.writeln('minSdkVersion 20'); | ||
| } else if (line.contains('compileSdkVersion')) { | ||
| // Android SDK 31 is required by Camera. | ||
|
||
| newGradle.writeln('compileSdkVersion 31'); | ||
| } else { | ||
| newGradle.writeln(line); | ||
| } | ||
|
|
||
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 assume the issue here is that the set of warnings will vary based on the build settings of the app depending on the plugin, so we don't want them to be errors?
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.
right. This is temporary as the fix is pending: #4423