remove hadcoded CODE_SIGN_STYLE key; remove PROVISIONING_PROFILE_SPECIFIER auto generation
This commit is contained in:
parent
0d555bea19
commit
63ecad8042
|
|
@ -64,23 +64,12 @@ def fetch_development_team(development_team_key, distribution_type)
|
|||
return config_option(development_team_key, team_value)
|
||||
end
|
||||
|
||||
# Return empty array or generated provisioning profile hash
|
||||
def generate_provisioning_profile(provisioning_key, bundle_id, distribution_type)
|
||||
case distribution_type
|
||||
when "appstore"
|
||||
app_store_profile = "match AppStore " + bundle_id
|
||||
config_option(provisioning_key, app_store_profile)
|
||||
else
|
||||
config_option(provisioning_key, bundle_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Generate missing properties if needed
|
||||
def generate_missing_properties(target_name, properties, distribution_type)
|
||||
result = []
|
||||
development_team_key = "DEVELOPMENT_TEAM"
|
||||
provisioning_key = "PROVISIONING_PROFILE_SPECIFIER"
|
||||
bundle_id_key = "PRODUCT_BUNDLE_IDENTIFIER"
|
||||
code_sign_style_key = "CODE_SIGN_STYLE"
|
||||
|
||||
# Bundle_id_key should be among the properties (required by fastlane)
|
||||
unless properties.key?(bundle_id_key)
|
||||
|
|
@ -91,8 +80,8 @@ def generate_missing_properties(target_name, properties, distribution_type)
|
|||
result.append(fetch_development_team(development_team_key, distribution_type))
|
||||
end
|
||||
|
||||
unless properties.key?(provisioning_key)
|
||||
result.append(generate_provisioning_profile(provisioning_key, properties[bundle_id_key], distribution_type))
|
||||
unless properties.key?(code_sign_style_key)
|
||||
result.append(config_option(code_sign_style_key, "Manual"))
|
||||
end
|
||||
|
||||
return result
|
||||
|
|
|
|||
|
|
@ -2,6 +2,4 @@
|
|||
|
||||
{{#configuration.xcconfig_options}}
|
||||
{{key}} = {{value}}
|
||||
{{/configuration.xcconfig_options}}
|
||||
|
||||
CODE_SIGN_STYLE = Manual
|
||||
{{/configuration.xcconfig_options}}
|
||||
Loading…
Reference in New Issue