Improve performance of build APK (~50%) by running gen_snapshot concurrently (#44534)

This commit is contained in:
Jonah Williams
2019-11-19 11:26:07 -08:00
committed by GitHub
parent 6e5769d425
commit df3505c1f3
12 changed files with 330 additions and 64 deletions

View File

@@ -396,7 +396,7 @@ Future<ProcessResult> _resultOfGradleTask({String workingDirectory, String task,
String validateSnapshotDependency(FlutterProject project, String expectedTarget) {
final File snapshotBlob = File(
path.join(project.rootPath, 'build', 'app', 'intermediates',
'flutter', 'debug', 'android-arm', 'flutter_build.d'));
'flutter', 'debug', 'flutter_build.d'));
assert(snapshotBlob.existsSync());
final String contentSnapshot = snapshotBlob.readAsStringSync();