File tree 1 file changed +3
-5
lines changed
flutter-idea/src/io/flutter/utils
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -341,21 +341,19 @@ public static boolean convertFromDeprecatedModuleType(@NotNull Project project)
341
341
return modulesConverted ;
342
342
}
343
343
344
+ // Return true if there is a module with the same name as the project plus the Android suffix.
344
345
public static boolean hasAndroidModule (@ NotNull Project project ) {
345
- boolean isAllMatch = true ;
346
346
for (PubRoot root : PubRoots .forProject (project )) {
347
347
assert root != null ;
348
348
String name = PubspecYamlUtil .getDartProjectName (root .getPubspec ());
349
349
String moduleName = name + "_android" ;
350
- boolean isMatch = false ;
351
350
for (Module module : FlutterModuleUtils .getModules (project )) {
352
351
if (moduleName .equals (module .getName ())) {
353
- isMatch = true ;
352
+ return true ;
354
353
}
355
354
}
356
- isAllMatch = isAllMatch && isMatch ;
357
355
}
358
- return isAllMatch ;
356
+ return false ;
359
357
}
360
358
361
359
public static boolean isDeprecatedFlutterModuleType (@ NotNull Module module ) {
You can’t perform that action at this time.
0 commit comments