Class: Fastlane::Actions::SyncCodeSigningAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
87
88
89
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 87
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
72
73
74
75
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 72
def self.available_options
require 'match'
Match::Options.available_options
end
|
.category ⇒ Object
104
105
106
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 104
def self.category
:code_signing
end
|
.define_profile_type(params) ⇒ Object
20
21
22
23
24
25
26
27
28
29
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 20
def self.define_profile_type(params)
profile_type = "app-store"
profile_type = "ad-hoc" if params[:type] == 'adhoc'
profile_type = "development" if params[:type] == 'development'
profile_type = "enterprise" if params[:type] == 'enterprise'
UI.message("Setting Provisioning Profile type to '#{profile_type}'")
Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
end
|
.define_provisioning_profile_mapping(params) ⇒ Object
Maps the bundle identifier to the appropriate provisioning profile This is used in the gym action as part of the export options e.g.
export_options: {
provisioningProfiles: { "me.themoji.app.beta": "match AppStore me.themoji.app.beta" }
}
.description ⇒ Object
64
65
66
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 64
def self.description
"Easily sync your certificates and profiles across your team (via _match_)"
end
|
.details ⇒ Object
68
69
70
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 68
def self.details
"More information: https://docs.fastlane.tools/actions/match/"
end
|
.example_code ⇒ Object
95
96
97
98
99
100
101
102
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 95
def self.example_code
[
'sync_code_signing(type: "appstore", app_identifier: "tools.fastlane.app")',
'sync_code_signing(type: "development", readonly: true)',
'sync_code_signing(app_identifier: ["tools.fastlane.app", "tools.fastlane.sleepy"])',
'match # alias for "sync_code_signing"'
]
end
|
.is_supported?(platform) ⇒ Boolean
91
92
93
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 91
def self.is_supported?(platform)
[:ios, :mac].include?(platform)
end
|
.output ⇒ Object
77
78
79
80
81
82
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 77
def self.output
[
['MATCH_PROVISIONING_PROFILE_MAPPING', 'The match provisioning profile mapping'],
['SIGH_PROFILE_TYPE', 'The profile type, can be appstore, adhoc, development, enterprise']
]
end
|
.return_value ⇒ Object
84
85
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 84
def self.return_value
end
|
.run(params) ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'fastlane/lib/fastlane/actions/sync_code_signing.rb', line 9
def self.run(params)
require 'match'
params.load_configuration_file("Matchfile")
params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
Match::Runner.new.run(params)
define_profile_type(params)
define_provisioning_profile_mapping(params)
end
|