Unverified Commit 2c538be4 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Parse build ios framework build mode from params (#59874)

parent cc36608f
...@@ -126,19 +126,19 @@ class BuildIOSFrameworkCommand extends BuildSubCommand { ...@@ -126,19 +126,19 @@ class BuildIOSFrameworkCommand extends BuildSubCommand {
FlutterProject _project; FlutterProject _project;
List<BuildInfo> get buildInfos { List<BuildInfo> get buildInfos {
final List<BuildInfo> buildModes = <BuildInfo>[]; final List<BuildInfo> buildInfos = <BuildInfo>[];
if (boolArg('debug')) { if (boolArg('debug')) {
buildModes.add(BuildInfo.debug); buildInfos.add(getBuildInfo(forcedBuildMode: BuildMode.debug));
} }
if (boolArg('profile')) { if (boolArg('profile')) {
buildModes.add(BuildInfo.profile); buildInfos.add(getBuildInfo(forcedBuildMode: BuildMode.profile));
} }
if (boolArg('release')) { if (boolArg('release')) {
buildModes.add(BuildInfo.release); buildInfos.add(getBuildInfo(forcedBuildMode: BuildMode.release));
} }
return buildModes; return buildInfos;
} }
@override @override
...@@ -377,7 +377,7 @@ end ...@@ -377,7 +377,7 @@ end
mainPath: globals.fs.path.absolute(targetFile), mainPath: globals.fs.path.absolute(targetFile),
assetDirPath: destinationAppFrameworkDirectory.childDirectory('flutter_assets').path, assetDirPath: destinationAppFrameworkDirectory.childDirectory('flutter_assets').path,
precompiledSnapshot: buildInfo.mode != BuildMode.debug, precompiledSnapshot: buildInfo.mode != BuildMode.debug,
treeShakeIcons: boolArg('tree-shake-icons') treeShakeIcons: buildInfo.treeShakeIcons,
); );
} }
} finally { } finally {
......
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