fastlane-plugin-sq_ci_tools 1.0.5 → 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 +4 -4
- data/lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_build_ios_application_action.rb +1 -47
- data/lib/fastlane/plugin/sq_ci_tools/actions/sq_ci_tools_setup_ios_code_sign_action.rb +94 -0
- data/lib/fastlane/plugin/sq_ci_tools/helper/sq_ci_tools_helper.rb +4 -2
- data/lib/fastlane/plugin/sq_ci_tools/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b47232586df03fd219799e11d212a55f023bc5ee489d30b8fdcb47e98affdc1c
|
4
|
+
data.tar.gz: aa113ce009584ab349ed4d9d7c407edb41133e06279c9f5710e68f846306027e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
@@ -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
|
-
|
147
|
-
|
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
|
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
|
+
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-
|
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
|