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

Solves https://github.com/flutter/flutter/pull/137115#discussion_r1388251047
This commit is contained in:
Gustl22 2023-12-14 06:45:15 +01:00 committed by GitHub
parent 935775cb74
commit fc77dd90d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.")
} }

View File

@ -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.'),