Support flutter run/build of module on Android (#20197)
This commit is contained in:
committed by
GitHub
parent
ddd7e4ead1
commit
d1f446e559
@@ -43,8 +43,6 @@ final RegExp ndkMessageFilter = new RegExp(r'^(?!NDK is missing a ".*" directory
|
||||
r'|If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning'
|
||||
r'|If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to .*)');
|
||||
|
||||
|
||||
|
||||
FlutterPluginVersion getFlutterPluginVersion(AndroidProject project) {
|
||||
final File plugin = project.directory.childFile(
|
||||
fs.path.join('buildSrc', 'src', 'main', 'groovy', 'FlutterPlugin.groovy'));
|
||||
@@ -62,6 +60,9 @@ FlutterPluginVersion getFlutterPluginVersion(AndroidProject project) {
|
||||
if (line.contains(new RegExp(r'apply from: .*/flutter.gradle'))) {
|
||||
return FlutterPluginVersion.managed;
|
||||
}
|
||||
if (line.contains("def flutterPluginVersion = 'managed'")) {
|
||||
return FlutterPluginVersion.managed;
|
||||
}
|
||||
}
|
||||
}
|
||||
return FlutterPluginVersion.none;
|
||||
|
||||
Reference in New Issue
Block a user