Class: Fastlane::Actions::SqCiToolsSetupIosCodeSignAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::SqCiToolsSetupIosCodeSignAction
- Defined in:
- lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(_) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
85 86 87 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 85 def self. ['Semen Kologrivov'] end |
.available_options ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 55 def self. [ FastlaneCore::ConfigItem.new( key: :scheme, description: 'Scheme for build', optional: false, type: String ), FastlaneCore::ConfigItem.new( key: :verbose, optional: true, type: Boolean, default_value: false ), FastlaneCore::ConfigItem.new( key: :generate_apple_certs, optional: true, type: Boolean, default_value: true ) ] + Options::CodeSigning. + Options::Keychain. + Options::IosApp. end |
.description ⇒ Object
47 48 49 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 47 def self.description 'Setup code sign of iOS application' end |
.details ⇒ Object
51 52 53 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 51 def self.details '' end |
.is_supported?(_) ⇒ Boolean
89 90 91 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 89 def self.is_supported?(_) true end |
.return_value ⇒ Object
81 82 83 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 81 def self.return_value '' end |
.run(params) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb', line 10 def self.run(params) other_action.sq_ci_tools_prepare_keychain ENV['MATCH_PASSWORD'] = params[:certificates_password] targets = Helper::SqCiToolsHelper.get_xcodeproj_targets(params[:project_path], params[:scheme]) other_action.sync_code_signing( type: params[:code_signing_type], git_url: params[:certificates_repo], keychain_name: params[:keychain_name], keychain_password: params[:keychain_password], skip_confirmation: true, app_identifier: targets.map { |_, app_id| app_id }, force: true, verbose: params[:verbose], generate_apple_certs: params[:generate_apple_certs] ) targets.each do |target, app_identifier| Helper::SqCiToolsHelper.add_target_attributes( target_name: target, project_path: params[:project_path] ) other_action.update_code_signing_settings( use_automatic_signing: false, path: params[:project_path], bundle_identifier: app_identifier, profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][app_identifier], code_sign_identity: params[:code_sign_identity], targets: [target], build_configurations: [params[:scheme]] ) end end |