Unverified Commit 89d99f6d authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Add --no-preview-dart-2 when in dart1 mode. (#17708)

This is follow-up to https://github.com/flutter/flutter/pull/17682 to fix dart1 tests.
parent 8a83d0df
...@@ -381,6 +381,8 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta ...@@ -381,6 +381,8 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta
command.add('-Pfilesystem-roots=${buildInfo.fileSystemRoots.join('|')}'); command.add('-Pfilesystem-roots=${buildInfo.fileSystemRoots.join('|')}');
if (buildInfo.fileSystemScheme != null) if (buildInfo.fileSystemScheme != null)
command.add('-Pfilesystem-scheme=${buildInfo.fileSystemScheme}'); command.add('-Pfilesystem-scheme=${buildInfo.fileSystemScheme}');
} else {
command.add('-Ppreview-dart-2=false');
} }
if (buildInfo.preferSharedLibrary && androidSdk.ndk != null) { if (buildInfo.preferSharedLibrary && androidSdk.ndk != null) {
command.add('-Pprefer-shared-library=true'); command.add('-Pprefer-shared-library=true');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment