split syncCodeSigning to getCodeSigning & updateCodeSigning
This commit is contained in:
parent
51271e8a2a
commit
97d8f0edcf
|
|
@ -90,21 +90,32 @@ private_lane :createPushCertificate do |options|
|
||||||
)
|
)
|
||||||
end
|
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(
|
keychain_password = prompt(
|
||||||
text: "Please enter your keychain password (account password): ",
|
text: "Please enter your keychain password (account password): ",
|
||||||
secure_text: true
|
secure_text: true
|
||||||
)
|
)
|
||||||
|
|
||||||
match(
|
options[:readonly] = true
|
||||||
app_identifier: options[:app_identifier],
|
options[:keychain_password] = keychain_password
|
||||||
type: "development",
|
syncCodeSigning(options)
|
||||||
readonly: true,
|
end
|
||||||
storage_mode: "git",
|
|
||||||
git_url: options[:git_url],
|
private_lane :updateCodeSigning do |options|
|
||||||
git_branch: "fastlane_certificates",
|
options[:readonly] = false
|
||||||
keychain_password: keychain_password,
|
syncCodeSigning(options)
|
||||||
skip_docs: true,
|
|
||||||
platform: "ios"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue