Skip to content

Commit 684247a

Browse files
authored
Use Integer instead of int in map in flutter.groovy (#141895)
packages Roller breakage https://ci.chromium.org/ui/p/flutter/builders/try/Linux_android%20android_build_all_packages%20master/5504/overview Fixes flutter/flutter/issues/141897 ``` FAILURE: Build failed with an exception. * Where: Script '/b/s/w/ir/x/w/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 168 * What went wrong: Could not compile script '/b/s/w/ir/x/w/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy'. > startup failed: script '/b/s/w/ir/x/w/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy': 168: primitive type parameters not allowed here; solution: use the corresponding wrapper type, such as Integer for int @ line 168, column 41. e static final Map<String, int> ABI_VERS ``` Covered by tests in packages.
1 parent f0e9d23 commit 684247a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter_tools/gradle/src/main/groovy/flutter.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class FlutterPlugin implements Plugin<Project> {
165165
* For each APK variant, use the following versions to override the version of the Universal APK.
166166
* Otherwise, the Play Store will complain that the APK variants have the same version.
167167
*/
168-
private static final Map<String, int> ABI_VERSION = [
168+
private static final Map<String, Integer> ABI_VERSION = [
169169
(ARCH_ARM32) : 1,
170170
(ARCH_ARM64) : 2,
171171
(ARCH_X86) : 3,

0 commit comments

Comments
 (0)