Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: packages/flutter_tools/lib/src/commands/build_apk.dart

Issue 2541483002: github.com/flutter/flutter changes required to use kernel
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/flutter_tools/lib/src/commands/build_aot.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/flutter_tools/lib/src/commands/build_apk.dart
diff --git a/packages/flutter_tools/lib/src/commands/build_apk.dart b/packages/flutter_tools/lib/src/commands/build_apk.dart
index 114b8622a3f19585d7f69fa205ef918de0c766db..86d8854a7f56ac07eee5ff6ffadf76088bf79398 100644
--- a/packages/flutter_tools/lib/src/commands/build_apk.dart
+++ b/packages/flutter_tools/lib/src/commands/build_apk.dart
@@ -553,9 +553,12 @@ Future<Null> buildAndroid(
// Build an AOT snapshot if needed.
if (isAotBuildMode(buildMode) && aotPath == null) {
- aotPath = await buildAotSnapshot(findMainDartFile(target), platform, buildMode);
- if (aotPath == null)
+ String dartFile = findMainDartFile(target);
+ String dillFile = await buildDilFile(dartFile);
+ aotPath = await buildAotSnapshot(dillFile != null ? dillFile : dartFile, platform, buildMode);
+ if (aotPath == null) {
throwToolExit('Failed to build AOT snapshot');
+ }
}
if (aotPath != null) {
« no previous file with comments | « packages/flutter_tools/lib/src/commands/build_aot.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698