This reverts commit cacd291c5c.
This commit is contained in:
committed by
GitHub
parent
cacd291c5c
commit
8dd06a1190
@@ -372,6 +372,7 @@ class AndroidDevice extends Device {
|
||||
BuildInfo buildInfo = debuggingOptions.buildInfo;
|
||||
if (buildInfo.targetPlatform == null && devicePlatform == TargetPlatform.android_arm64)
|
||||
buildInfo = buildInfo.withTargetPlatform(TargetPlatform.android_arm64);
|
||||
|
||||
if (!prebuiltApplication) {
|
||||
printTrace('Building APK');
|
||||
final FlutterProject project = await FlutterProject.current();
|
||||
|
||||
@@ -44,6 +44,7 @@ final RegExp ndkMessageFilter = new RegExp(r'^(?!NDK is missing a ".*" directory
|
||||
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'));
|
||||
@@ -61,9 +62,6 @@ 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