Teach FlutterPlugin.groovy about AOT builds (#4389)

The `flutter.buildMode` property now controls whether to build in debug,
profiling, or release.
This commit is contained in:
Adam Barth
2016-06-06 12:56:04 -07:00
parent 6c96e1a320
commit 8f03ebe56b
4 changed files with 87 additions and 30 deletions

View File

@@ -70,7 +70,7 @@ void updateXcodeGeneratedProperties(String projectPath, BuildMode mode, String t
localsBuffer.writeln('FLUTTER_TARGET=$target');
// The runtime mode for the current build.
localsBuffer.writeln('FLUTTER_MODE=${getModeName(mode)}');
localsBuffer.writeln('FLUTTER_BUILD_MODE=${getModeName(mode)}');
String flutterFrameworkDir = path.normalize(tools.getEngineArtifactsDirectory(TargetPlatform.ios, mode).path);
localsBuffer.writeln('FLUTTER_FRAMEWORK_DIR=$flutterFrameworkDir');