split syncCodeSigning to getCodeSigning & updateCodeSigning

This commit is contained in:
Ivan Smolin 2019-02-21 14:20:36 +03:00
parent 51271e8a2a
commit 97d8f0edcf
1 changed files with 23 additions and 12 deletions

View File

@ -90,21 +90,32 @@ private_lane :createPushCertificate do |options|
)
end
private_lane :syncCodeSignning do |options|
private_lane :syncCodeSigning do |options|
match(
app_identifier: options[:app_identifier],
type: "development",
readonly: options[:readonly] || true,
storage_mode: "git",
git_url: options[:git_url],
git_branch: "fastlane_certificates",
keychain_password: options[:keychain_password],
skip_docs: true,
platform: "ios"
)
end
private_lane :getCodeSigning do |options|
keychain_password = prompt(
text: "Please enter your keychain password (account password): ",
secure_text: true
)
match(
app_identifier: options[:app_identifier],
type: "development",
readonly: true,
storage_mode: "git",
git_url: options[:git_url],
git_branch: "fastlane_certificates",
keychain_password: keychain_password,
skip_docs: true,
platform: "ios"
)
options[:readonly] = true
options[:keychain_password] = keychain_password
syncCodeSigning(options)
end
private_lane :updateCodeSigning do |options|
options[:readonly] = false
syncCodeSigning(options)
end