Skip to content

Commit

Permalink
Change App ID for PR builds of iOS app
Browse files Browse the repository at this point in the history
A successor to #7479

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Jun 30, 2019
1 parent 6d1b376 commit baa830b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ci/ios.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ nix = load('ci/nix.groovy')
utils = load('ci/utils.groovy')

def plutil(name, value) {
return """
plutil -replace ${name} -string ${value} ios/StatusIm/Info.plist;
"""
return "plutil -replace ${name} -string ${value} ios/StatusIm/Info.plist;"
}

def bundle() {
Expand All @@ -14,7 +12,7 @@ def bundle() {
case 'release': target = 'release'; break;
case 'testflight': target = 'release'; break;
case 'e2e': target = 'e2e'; break;
default: target = 'nightly';
default: target = 'pr';
}
/* configure build metadata */
nix.shell(
Expand Down
20 changes: 19 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ def build_ios_e2e
# ...and we don't need an .ipa file for them, because we use .app directly
skip_package_ipa: true,
export_options: {
"UseModernBuildSystem": "N"
UseModernBuildSystem: "N",
provisioningProfiles: {
"im.status.ethereum": "match AdHoc im.status.ethereum",
"im.status.ethereum.pr" => "match AdHoc im.status.ethereum.pr",
}
}
)

Expand Down Expand Up @@ -191,11 +195,25 @@ platform :ios do

desc "`fastlane ios pr` - makes a new pr build"
desc "This lane builds a new adhoc build and leaves an .ipa that is ad-hoc signed (can be uploaded to diawi)"
desc "It changes two parameters to avoid overriding releases:"
desc " - `CFBundleDisplayName` - `Status PR`"
desc " - `CFBundleIdentifier` - `im.status.ethereum.pr`"
lane :pr do
unlock_keychain_if_needed
update_app_identifier(
app_identifier: 'im.status.ethereum.pr',
plist_path: 'StatusIm/Info.plist',
xcodeproj: 'ios/StatusIm.xcodeproj'
)
update_info_plist(
display_name: 'Status PR',
plist_path: 'StatusIm/Info.plist',
xcodeproj: 'ios/StatusIm.xcodeproj'
)
build_ios_adhoc(false)
end


desc "`fastlane ios nightly` - makes a new nightly"
desc "This lane builds a new nightly and leaves an .ipa that is ad-hoc signed (can be uploaded to diawi)"
lane :nightly do
Expand Down

0 comments on commit baa830b

Please sign in to comment.