remove hadcoded CODE_SIGN_STYLE key; remove PROVISIONING_PROFILE_SPECIFIER auto generation

This commit is contained in:
Ivan Smolin 2021-07-22 09:29:22 +03:00
parent 0d555bea19
commit 63ecad8042
2 changed files with 4 additions and 17 deletions

View File

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

View File

@ -2,6 +2,4 @@
{{#configuration.xcconfig_options}}
{{key}} = {{value}}
{{/configuration.xcconfig_options}}
CODE_SIGN_STYLE = Manual
{{/configuration.xcconfig_options}}