From a194818c59586f14148ba432d2f80fcbd9dc3126 Mon Sep 17 00:00:00 2001 From: xster Date: Tue, 13 Feb 2018 18:06:43 -0800 Subject: [PATCH] Let the gallery bundle Id ephemerally change to io.flutter.demo.gallery before deploying (#14686) * Let the gallery bundle Id ephemerally change to io.flutter.demo.gallery before deploying * add a comment --- .../flutter_gallery/ios/Runner.xcodeproj/project.pbxproj | 4 ++-- examples/flutter_gallery/ios/fastlane/Fastfile | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj b/examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj index ae0a1d4f2e..6cbfdb332d 100644 --- a/examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj +++ b/examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj @@ -455,7 +455,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = io.flutter.demo.gallery; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.examples.gallery; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -477,7 +477,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = io.flutter.demo.gallery; + PRODUCT_BUNDLE_IDENTIFIER = io.flutter.examples.gallery; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release; diff --git a/examples/flutter_gallery/ios/fastlane/Fastfile b/examples/flutter_gallery/ios/fastlane/Fastfile index 1c9ad11fc5..1e0195f728 100644 --- a/examples/flutter_gallery/ios/fastlane/Fastfile +++ b/examples/flutter_gallery/ios/fastlane/Fastfile @@ -29,6 +29,13 @@ platform :ios do raw_version = File.read('../../../../version') puts "Building and deploying version #{raw_version}..." + update_app_identifier( + plist_path: 'Runner/Info.plist', + # Let the checked-in bundle ID be different so users don't collide on + # provisioning profile creation when building locally. + app_identifier: 'io.flutter.demo.gallery' + ) + increment_version_number( # Only major, minor, patch digits and dots. version_number: /\d+\.\d+\.\d+/.match(raw_version)[0]