fastlane-plugin-sq_ci_tools 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed5fd31b9dabdbc50395d9461d40be9f2489f5f6b8b42a4b31484874bcca5741
4
- data.tar.gz: da9bf5552fe2549cbefa086b6016a7bbd243b64c48e9cfad247b9827523af36e
3
+ metadata.gz: b47232586df03fd219799e11d212a55f023bc5ee489d30b8fdcb47e98affdc1c
4
+ data.tar.gz: aa113ce009584ab349ed4d9d7c407edb41133e06279c9f5710e68f846306027e
5
5
  SHA512:
6
- metadata.gz: 0b119cb6c76bc392a7ef849c4bbc33dc270056fb7846192b8c3b3b3ba6780b6c3ab095926dc09810a314727233ccdaab62886bdc12ffaa494a7fc75239bb803b
7
- data.tar.gz: a8744dec5602e339e7c759748608795c53dcb9274a6152c61f330012608dc3f13a3cc8152767831b895a053778bfc15e532d96971fee4af733ef0e783507b145
6
+ metadata.gz: 95f505c671180f0ce5d9a9f9896abc7a9d5e2584a39259647bf4fc0c504ae73a07c1543eb8cd66f4f117469195159e5609b388dafc6becb56b4b776955b2582d
7
+ data.tar.gz: 9ad4e9ba94a6651cc726bbdcd81b5ae110d2edaa80719bc9bb53d39ca0178ee11913a8c57cea37f0f51149d8fcdb62519de34bdfa3afd0b8dc312537a3d9fcec
@@ -8,40 +8,6 @@ module Fastlane
8
8
  module Actions
9
9
  class SqCiToolsBuildIosApplicationAction < Action
10
10
  def self.run(params)
11
- other_action.sq_ci_tools_prepare_keychain
12
-
13
- ENV['MATCH_PASSWORD'] = params[:certificates_password]
14
-
15
- targets = Helper::SqCiToolsHelper.get_xcodeproj_targets(params[:project_path], params[:scheme])
16
-
17
- other_action.sync_code_signing(
18
- type: params[:code_signing_type],
19
- git_url: params[:certificates_repo],
20
- keychain_name: params[:keychain_name],
21
- keychain_password: params[:keychain_password],
22
- skip_confirmation: true,
23
- app_identifier: targets.map { |_, app_id| app_id },
24
- force: true,
25
- verbose: params[:verbose],
26
- generate_apple_certs: params[:generate_apple_certs]
27
- )
28
-
29
- targets.each do |target, app_identifier|
30
- Helper::SqCiToolsHelper.add_target_attributes(
31
- target_name: target,
32
- project_path: params[:project_path]
33
- )
34
-
35
- other_action.update_code_signing_settings(
36
- use_automatic_signing: false,
37
- path: params[:project_path],
38
- bundle_identifier: app_identifier,
39
- profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][app_identifier],
40
- code_sign_identity: params[:code_sign_identity],
41
- targets: [target],
42
- build_configurations: [params[:scheme]]
43
- )
44
- end
45
11
 
46
12
  project_path = params[:project_path]
47
13
  workspace_path = params[:workspace_path]
@@ -80,7 +46,7 @@ module Fastlane
80
46
  end
81
47
 
82
48
  def self.description
83
- 'Generate new build of iOS application (includes updating of code signing)'
49
+ 'Generate new build of iOS application'
84
50
  end
85
51
 
86
52
  def self.details
@@ -94,18 +60,6 @@ module Fastlane
94
60
  description: 'Scheme for build',
95
61
  optional: false,
96
62
  type: String
97
- ),
98
- FastlaneCore::ConfigItem.new(
99
- key: :verbose,
100
- optional: true,
101
- type: Boolean,
102
- default_value: false
103
- ),
104
- FastlaneCore::ConfigItem.new(
105
- key: :generate_apple_certs,
106
- optional: true,
107
- type: Boolean,
108
- default_value: true
109
63
  )
110
64
  ] +
111
65
  Options::CodeSigning.options +
@@ -0,0 +1,94 @@
1
+ require 'fastlane/action'
2
+ require_relative '../helper/sq_ci_tools_helper'
3
+ require_relative '../options/keychain'
4
+ require_relative '../options/ios_app'
5
+ require_relative '../options/code_signing'
6
+
7
+ module Fastlane
8
+ module Actions
9
+ class SqCiToolsSetupIosCodeSignAction < Action
10
+ def self.run(params)
11
+ other_action.sq_ci_tools_prepare_keychain
12
+
13
+ ENV['MATCH_PASSWORD'] = params[:certificates_password]
14
+
15
+ targets = Helper::SqCiToolsHelper.get_xcodeproj_targets(params[:project_path], params[:scheme])
16
+
17
+ other_action.sync_code_signing(
18
+ type: params[:code_signing_type],
19
+ git_url: params[:certificates_repo],
20
+ keychain_name: params[:keychain_name],
21
+ keychain_password: params[:keychain_password],
22
+ skip_confirmation: true,
23
+ app_identifier: targets.map { |_, app_id| app_id },
24
+ force: true,
25
+ verbose: params[:verbose],
26
+ generate_apple_certs: params[:generate_apple_certs]
27
+ )
28
+
29
+ targets.each do |target, app_identifier|
30
+ Helper::SqCiToolsHelper.add_target_attributes(
31
+ target_name: target,
32
+ project_path: params[:project_path]
33
+ )
34
+
35
+ other_action.update_code_signing_settings(
36
+ use_automatic_signing: false,
37
+ path: params[:project_path],
38
+ bundle_identifier: app_identifier,
39
+ profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][app_identifier],
40
+ code_sign_identity: params[:code_sign_identity],
41
+ targets: [target],
42
+ build_configurations: [params[:scheme]]
43
+ )
44
+ end
45
+ end
46
+
47
+ def self.description
48
+ 'Setup code sign of iOS application'
49
+ end
50
+
51
+ def self.details
52
+ ''
53
+ end
54
+
55
+ def self.available_options
56
+ [
57
+ FastlaneCore::ConfigItem.new(
58
+ key: :scheme,
59
+ description: 'Scheme for build',
60
+ optional: false,
61
+ type: String
62
+ ),
63
+ FastlaneCore::ConfigItem.new(
64
+ key: :verbose,
65
+ optional: true,
66
+ type: Boolean,
67
+ default_value: false
68
+ ),
69
+ FastlaneCore::ConfigItem.new(
70
+ key: :generate_apple_certs,
71
+ optional: true,
72
+ type: Boolean,
73
+ default_value: true
74
+ )
75
+ ] +
76
+ Options::CodeSigning.options +
77
+ Options::Keychain.options +
78
+ Options::IosApp.options
79
+ end
80
+
81
+ def self.return_value
82
+ ''
83
+ end
84
+
85
+ def self.authors
86
+ ['Semen Kologrivov']
87
+ end
88
+
89
+ def self.is_supported?(_)
90
+ true
91
+ end
92
+ end
93
+ end
94
+ end
@@ -44,9 +44,9 @@ module Fastlane
44
44
  type: String
45
45
  )
46
46
  ] +
47
- GooglePlay.options +
48
- AndroidApp.options +
49
- Shared.options
47
+ Options::GooglePlay.options +
48
+ Options::AndroidApp.options +
49
+ Options::Shared.options
50
50
  end
51
51
 
52
52
  def self.return_type
@@ -143,8 +143,10 @@ module Fastlane
143
143
  project = Xcodeproj::Project.open(xcodeproj_path)
144
144
  targets = {}
145
145
  project.native_targets.each do |native_target|
146
- build_configuration = native_target.build_configurations.find { |configuration| configuration.name == target_scheme }
147
- targets[native_target.name] = self.resolve_recursive_build_setting(build_configuration, 'PRODUCT_BUNDLE_IDENTIFIER')
146
+ unless native_target.product_type == "com.apple.product-type.bundle.unit-test"
147
+ build_configuration = native_target.build_configurations.find { |configuration| configuration.name == target_scheme }
148
+ targets[native_target.name] = self.resolve_recursive_build_setting(build_configuration, 'PRODUCT_BUNDLE_IDENTIFIER')
149
+ end
148
150
  end
149
151
 
150
152
  targets
@@ -5,6 +5,7 @@ require 'credentials_manager/appfile_config'
5
5
 
6
6
  module Fastlane
7
7
  UI = FastlaneCore::UI unless Fastlane.const_defined?(:UI)
8
+
8
9
  module Options
9
10
  class AndroidApp
10
11
  def self.options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SqCiTools
3
- VERSION = "1.0.4".freeze
3
+ VERSION = "1.0.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sq_ci_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semen Kologrivov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-26 00:00:00.000000000 Z
11
+ date: 2025-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -155,6 +155,7 @@ files:
155
155
  - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_prepare_keychain_action.rb
156
156
  - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_send_telegram_message_action.rb
157
157
  - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_set_version_code_action.rb
158
+ - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb
158
159
  - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_upload_aab_to_google_play_action.rb
159
160
  - lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_upload_file_to_s3_action.rb
160
161
  - lib/fastlane/plugin/sq_ci_tools/helper/sq_ci_tools_helper.rb