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
This commit is contained in:
xster 2018-02-13 18:06:43 -08:00 committed by GitHub
parent 58689c796c
commit a194818c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -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;

View file

@ -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]