Commit 9fd1711b authored by Chinmay Garde's avatar Chinmay Garde

Add configurations for prebuilt iOS and iOS simulator targets

parent 37821891
...@@ -98,13 +98,11 @@ class ApplicationPackageStore { ...@@ -98,13 +98,11 @@ class ApplicationPackageStore {
case TargetPlatform.iOS: case TargetPlatform.iOS:
assert(iOS == null); assert(iOS == null);
assert(config.type != BuildType.prebuilt);
iOS = new IOSApp(localPath: path.join(config.buildDir, IOSApp._defaultName)); iOS = new IOSApp(localPath: path.join(config.buildDir, IOSApp._defaultName));
break; break;
case TargetPlatform.iOSSimulator: case TargetPlatform.iOSSimulator:
assert(iOSSimulator == null); assert(iOSSimulator == null);
assert(config.type != BuildType.prebuilt);
iOSSimulator = new IOSApp(localPath: path.join(config.buildDir, IOSApp._defaultName)); iOSSimulator = new IOSApp(localPath: path.join(config.buildDir, IOSApp._defaultName));
break; break;
......
...@@ -226,6 +226,18 @@ class FlutterCommandRunner extends CommandRunner { ...@@ -226,6 +226,18 @@ class FlutterCommandRunner extends CommandRunner {
testable: true testable: true
)); ));
} }
if (hostPlatform == HostPlatform.mac) {
configs.add(new BuildConfiguration.prebuilt(
hostPlatform: HostPlatform.mac,
targetPlatform: TargetPlatform.iOS
));
configs.add(new BuildConfiguration.prebuilt(
hostPlatform: HostPlatform.mac,
targetPlatform: TargetPlatform.iOSSimulator
));
}
} else { } else {
if (!FileSystemEntity.isDirectorySync(enginePath)) if (!FileSystemEntity.isDirectorySync(enginePath))
logging.warning('$enginePath is not a valid directory'); logging.warning('$enginePath is not a valid directory');
......
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