fix first and second deprecation in Tuple2<String, String> inside flutter.groovy (#156485)

fixes `first` and `second` deprecation in Tuple2<String, String> and replace their usage with `v1` and `v2` respectively.
(v1,v2 <=>first value,second value )
``
see [this](https://docs.groovy-lang.org/latest/html/api/groovy/lang/Tuple2.html#getSecond())
and [this](https://docs.groovy-lang.org/latest/html/api/groovy/lang/Tuple2.html#getFirst())
This commit is contained in:
Mohellebi abdessalem
2024-10-17 22:05:34 +01:00
committed by GitHub
parent 77f88ff78a
commit 8707607f5f

View File

@@ -886,7 +886,7 @@ class FlutterPlugin implements Plugin<Project> {
if (maxPluginCompileSdkVersion > projectCompileSdkVersion) {
project.logger.error("Your project is configured to compile against Android SDK $projectCompileSdkVersion, but the following plugin(s) require to be compiled against a higher Android SDK version:")
for (Tuple2<String, String> pluginToCompileSdkVersion : pluginsWithHigherSdkVersion) {
project.logger.error("- ${pluginToCompileSdkVersion.first} compiles against Android SDK ${pluginToCompileSdkVersion.second}")
project.logger.error("- ${pluginToCompileSdkVersion.v1} compiles against Android SDK ${pluginToCompileSdkVersion.v2}")
}
project.logger.error("""\
Fix this issue by compiling against the highest Android SDK version (they are backward compatible).
@@ -901,7 +901,7 @@ class FlutterPlugin implements Plugin<Project> {
if (maxPluginNdkVersion != projectNdkVersion) {
project.logger.error("Your project is configured with Android NDK $projectNdkVersion, but the following plugin(s) depend on a different Android NDK version:")
for (Tuple2<String, String> pluginToNdkVersion : pluginsWithDifferentNdkVersion) {
project.logger.error("- ${pluginToNdkVersion.first} requires Android NDK ${pluginToNdkVersion.second}")
project.logger.error("- ${pluginToNdkVersion.v1} requires Android NDK ${pluginToNdkVersion.v2}")
}
project.logger.error("""\
Fix this issue by using the highest Android NDK version (they are backward compatible).