Compare commits
4 Commits
master
...
feature/bu
| Author | SHA1 | Date |
|---|---|---|
|
|
a33e2ad05d | |
|
|
232b7a6d5a | |
|
|
59892628d6 | |
|
|
995a997f2b |
|
|
@ -116,8 +116,10 @@ private_lane :buildConfiguration do |options|
|
||||||
openKeychain(options)
|
openKeychain(options)
|
||||||
|
|
||||||
if is_ci
|
if is_ci
|
||||||
increment_build_number(
|
increment_build_number_in_xcodeproj(
|
||||||
build_number: options[:buildNumber]
|
build_number: options[:buildNumber],
|
||||||
|
xcodeproj: "./#{appName}.xcodeproj",
|
||||||
|
target: "#{appName}"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -189,7 +191,7 @@ private_lane :buildArchive do |options|
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :CreatePushCertificate do |options|
|
lane :CreatePushCertificate do |options|
|
||||||
configuration = get_configuration_for_type(options[:type] || "development")
|
configuration = get_configuration_for_type(options[:type] || "development", options)
|
||||||
options = configuration.to_options.merge(options)
|
options = configuration.to_options.merge(options)
|
||||||
|
|
||||||
certificates_path = File.expand_path "../Certificates"
|
certificates_path = File.expand_path "../Certificates"
|
||||||
|
|
@ -218,7 +220,7 @@ lane :SyncCodeSigning do |options|
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :SyncSymbols do |options|
|
lane :SyncSymbols do |options|
|
||||||
configuration = get_configuration_for_type(options[:type])
|
configuration = get_configuration_for_type(options[:type], options)
|
||||||
options = configuration.to_options.merge(options)
|
options = configuration.to_options.merge(options)
|
||||||
|
|
||||||
appName = options[:appName] || $appName
|
appName = options[:appName] || $appName
|
||||||
|
|
@ -358,7 +360,7 @@ def sync_code_signing_using_options(options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def fill_up_options_using_configuration_type(options, configuration_type)
|
def fill_up_options_using_configuration_type(options, configuration_type)
|
||||||
configuration = get_configuration_for_type(configuration_type.type)
|
configuration = get_configuration_for_type(configuration_type.type, options)
|
||||||
|
|
||||||
configuration.to_options
|
configuration.to_options
|
||||||
.merge(get_keychain_options(options))
|
.merge(get_keychain_options(options))
|
||||||
|
|
@ -382,8 +384,12 @@ def get_keychain_options(options)
|
||||||
return {:keychain_name => keychain_name, :keychain_password => keychain_password}
|
return {:keychain_name => keychain_name, :keychain_password => keychain_password}
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_configuration_for_type(type)
|
def get_configuration_for_type(type, options)
|
||||||
config_path = File.expand_path "configurations.yaml"
|
appName = options[:appName] || $appName
|
||||||
|
|
||||||
|
project_config_path = "configurations_#{appName}.yaml"
|
||||||
|
relative_config_path = File.exists?(project_config_path) ? project_config_path : "configurations.yaml"
|
||||||
|
config_path = File.expand_path relative_config_path
|
||||||
|
|
||||||
configuration = Touchlane::Configuration.from_file(config_path, type)
|
configuration = Touchlane::Configuration.from_file(config_path, type)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue