load configuration options from yaml file
This commit is contained in:
parent
adb958d25c
commit
214ea3e5e2
|
|
@ -91,9 +91,21 @@ lane :createPushCertificate do |options|
|
|||
end
|
||||
|
||||
private_lane :syncCodeSigning do |options|
|
||||
type = options[:type] || "development"
|
||||
|
||||
configurations_path = "./fastlane/configurations.yaml"
|
||||
if File.exists? configurations_path
|
||||
require "yaml"
|
||||
|
||||
configurations = YAML.load_file(configurations_path)
|
||||
options.merge(configurations[type])
|
||||
end
|
||||
|
||||
match(
|
||||
app_identifier: options[:app_identifier],
|
||||
type: options[:type] || "development",
|
||||
username: options[:username] || options[:apple_id],
|
||||
team_id: options[:team_id],
|
||||
type: type,
|
||||
readonly: options[:readonly] || true,
|
||||
storage_mode: "git",
|
||||
git_url: options[:git_url],
|
||||
|
|
|
|||
Loading…
Reference in New Issue