aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar stephana <stephana@google.com>2015-12-02 09:45:30 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-02 09:45:30 -0800
commitc60b310af7635204b8186c616ffdd190d8bf5fe1 (patch)
tree549a12b0fc2e756e89274056c9d45a6c6796fa30
parente45c81c8f3bb62e45f2ff3b8772b4b23f1ddc6ca (diff)
Modify iOSShell-gyp to generate unique bundle identifier
-rw-r--r--experimental/iOSShell/iOSShell-Info.plist2
-rw-r--r--gyp/iOSShell.gyp1
-rwxr-xr-xplatform_tools/ios/bin/ios_setup.sh7
3 files changed, 4 insertions, 6 deletions
diff --git a/experimental/iOSShell/iOSShell-Info.plist b/experimental/iOSShell/iOSShell-Info.plist
index 69b62efd1c..7f1a827655 100644
--- a/experimental/iOSShell/iOSShell-Info.plist
+++ b/experimental/iOSShell/iOSShell-Info.plist
@@ -11,7 +11,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
- <string>com.google.iOSShell</string>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
diff --git a/gyp/iOSShell.gyp b/gyp/iOSShell.gyp
index 3f3acdc103..2ec50dbf39 100644
--- a/gyp/iOSShell.gyp
+++ b/gyp/iOSShell.gyp
@@ -68,6 +68,7 @@
'../src/views/mac',
],
'xcode_settings' : {
+ 'PRODUCT_BUNDLE_IDENTIFIER' : '<!(echo com.google.iOSShell.`hostname | md5`)',
'INFOPLIST_FILE' : '../experimental/iOSShell/iOSShell-Info.plist',
},
'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
diff --git a/platform_tools/ios/bin/ios_setup.sh b/platform_tools/ios/bin/ios_setup.sh
index 53a33c67bb..dbfed7c26f 100755
--- a/platform_tools/ios/bin/ios_setup.sh
+++ b/platform_tools/ios/bin/ios_setup.sh
@@ -18,9 +18,6 @@ IOS_DOCS_DIR="Documents"
# Temporary location to assemble the app into an .ipa package.
IOS_PCKG_DIR="/tmp/ios_pckg"
-# Bundle id of the app that runs the tests.
-TEST_RUNNER_BUNDLE_ID="com.google.iOSShell"
-
# Directory with the Skia source.
SKIA_SRC_DIR=$(cd "${SCRIPT_DIR}/../../.."; pwd)
@@ -30,7 +27,7 @@ PROVISIONING_PROFILE=""
# Code Signing identity - this needs to be set up on the local machine.
CODE_SIGN_IDENTITY="iPhone Developer"
-IOS_BUNDLE_ID="com.google.iOSShell"
+IOS_BUNDLE_ID="com.google.iOSShell.`hostname | md5`"
IOS_RESULTS_DIR="results"
@@ -94,7 +91,7 @@ ios_mount() {
if [[ ! -d "$IOS_MOUNT_POINT" ]]; then
mkdir -p $IOS_MOUNT_POINT
fi
- ifuse --container $TEST_RUNNER_BUNDLE_ID $IOS_MOUNT_POINT
+ ifuse --container $IOS_BUNDLE_ID $IOS_MOUNT_POINT
sleep 1
>&2 echo "Successfully mounted device."
}