From 0e9f8e406954c53429b08827365802ce25903144 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 11 Feb 2016 15:37:24 -0800 Subject: [PATCH] Write a REVISION file in the ios directory to aid in version checks --- packages/flutter_tools/lib/src/commands/ios.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/commands/ios.dart b/packages/flutter_tools/lib/src/commands/ios.dart index 96f110aafe4..160b085c0b9 100644 --- a/packages/flutter_tools/lib/src/commands/ios.dart +++ b/packages/flutter_tools/lib/src/commands/ios.dart @@ -131,7 +131,12 @@ class IOSCommand extends FlutterCommand { // Step 3: Populate the Local.xcconfig with project specific paths _setupXcodeProjXcconfig(path.join(xcodeprojPath, "Local.xcconfig")); - // Step 4: Tell the user the location of the generated project. + // Step 4: Write the REVISION file + File revisionFile = new File(path.join(xcodeprojPath, "REVISION")); + revisionFile.createSync(); + revisionFile.writeAsStringSync(ArtifactStore.engineRevision); + + // Step 5: Tell the user the location of the generated project. printStatus("An Xcode project has been placed in 'ios/'."); printStatus("You may edit it to modify iOS specific configuration."); return 0;