Unverified Commit fc77dd90 authored by Gustl22's avatar Gustl22 Committed by GitHub

Adapt wording for required Android SDK for plugins (#140043)

Solves https://github.com/flutter/flutter/pull/137115#discussion_r1388251047
parent 935775cb
...@@ -441,7 +441,7 @@ class FlutterPlugin implements Plugin<Project> { ...@@ -441,7 +441,7 @@ class FlutterPlugin implements Plugin<Project> {
pluginProject.afterEvaluate { pluginProject.afterEvaluate {
// Checks if there is a mismatch between the plugin compileSdkVersion and the project compileSdkVersion. // Checks if there is a mismatch between the plugin compileSdkVersion and the project compileSdkVersion.
if (pluginProject.android.compileSdkVersion > project.android.compileSdkVersion) { if (pluginProject.android.compileSdkVersion > project.android.compileSdkVersion) {
project.logger.quiet("Warning: The plugin ${pluginName} requires Android SDK version ${getCompileSdkFromProject(pluginProject)}.") project.logger.quiet("Warning: The plugin ${pluginName} requires Android SDK version ${getCompileSdkFromProject(pluginProject)} or higher.")
project.logger.quiet("For more information about build configuration, see $kWebsiteDeploymentAndroidBuildConfig.") project.logger.quiet("For more information about build configuration, see $kWebsiteDeploymentAndroidBuildConfig.")
} }
......
...@@ -77,7 +77,7 @@ void main() { ...@@ -77,7 +77,7 @@ void main() {
expect( expect(
result.stdout, result.stdout,
contains( contains(
'Warning: The plugin test_plugin requires Android SDK version 31.')); 'Warning: The plugin test_plugin requires Android SDK version 31 or higher.'));
expect( expect(
result.stderr, result.stderr,
contains('One or more plugins require a higher Android SDK version.'), contains('One or more plugins require a higher Android SDK version.'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment