Revert "[flutter_tools] remove alternative build aot code path (#49577)" (#49641)

This reverts commit d1e25bf233.
This commit is contained in:
Jonah Williams
2020-01-28 13:21:56 -08:00
committed by GitHub
parent ab426858b1
commit dd98046fe5
2 changed files with 122 additions and 11 deletions

View File

@@ -328,17 +328,8 @@ Future<void> _runBuildTests() async {
Future<void> _flutterBuildAot(String relativePathToApplication) async {
print('${green}Testing AOT build$reset for $cyan$relativePathToApplication$reset...');
final String absoluteTarget = path.join(path.absolute(relativePathToApplication), 'lib', 'main.dart');
await runCommand(flutter,
<String>[
'assemble',
'-dTargetFile=$absoluteTarget',
'-dTargetPlatform=android',
'-dBuildMode=release',
'--output=build/aot',
'android_aot_bundle_release_android-arm64',
'android_aot_bundle_release_android-arm',
],
<String>['build', 'aot', '-v'],
workingDirectory: path.join(flutterRoot, relativePathToApplication),
);
}