Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 984b623

Browse files
Fix builds of FLX bundles using AOT compilation (flutter#6684)
1 parent d86900d commit 984b623

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/flutter_tools/bin/fuchsia_builder.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ Future<Null> main(List<String> args) async {
4242
}
4343
Cache.flutterRoot = Platform.environment['FLUTTER_ROOT'];
4444
String outputPath = argResults[_kOptionOutput];
45-
final int buildResult = await build(
45+
final int buildResult = await assemble(
4646
outputPath: outputPath,
47-
snapshotPath: argResults[_kOptionSnapshot],
47+
snapshotFile: new File(argResults[_kOptionSnapshot]),
4848
workingDirPath: argResults[_kOptionWorking],
4949
packagesPath: argResults[_kOptionPackages],
50-
precompiledSnapshot: true,
50+
manifestPath: defaultManifestPath,
5151
includeRobotoFonts: true,
5252
);
5353
if (buildResult != 0) {

packages/flutter_tools/lib/src/flx.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Future<int> build({
9090
depfilePath ??= defaultDepfilePath;
9191
workingDirPath ??= getAssetBuildDirectory();
9292
packagesPath ??= path.absolute(PackageMap.globalPackagesPath);
93+
File snapshotFile;
9394

9495
if (!precompiledSnapshot) {
9596
ensureDirectoryExists(snapshotPath);
@@ -107,9 +108,9 @@ Future<int> build({
107108
printError('Failed to run the Flutter compiler. Exit code: $result');
108109
return result;
109110
}
110-
}
111111

112-
File snapshotFile = new File(snapshotPath);
112+
snapshotFile = new File(snapshotPath);
113+
}
113114

114115
return assemble(
115116
manifestPath: manifestPath,

0 commit comments

Comments
 (0)