load configuration options from yaml file

This commit is contained in:
Ivan Smolin 2019-02-22 14:24:25 +03:00
parent adb958d25c
commit 214ea3e5e2
1 changed files with 13 additions and 1 deletions

View File

@ -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],