fastlane-plugin-stream_actions 0.3.2 → 0.3.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd5aae2b88383ae4c35e93d0ce7cd8bbdd656f7583fdd7ed421114f4e61e7802
|
4
|
+
data.tar.gz: 8ee9f58a39b2d0f9c9983c4683bde76a9a089a74c46de3597c1ad46931546ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13c3d732da621c4368ab7403d6047c71227b7a83961cdbb6ae65de823cad8496999d36a1e7054c4c1403906dfba17aa9b063cb9c90880b496b67dbc00cc1a80
|
7
|
+
data.tar.gz: 4c48f7c92ee789b0d73bd1833c936c21bb99be008e0b30384ab4ce4c84d2cf6874a20d7133ab0159834052ee76b94dc26f29ae838c753830b22a615267e453b6
|
@@ -3,7 +3,9 @@ module Fastlane
|
|
3
3
|
class ReleaseIosSdkAction < Action
|
4
4
|
def self.run(params)
|
5
5
|
podspecs = []
|
6
|
-
params[:sdk_names].each
|
6
|
+
(params[:podspec_names] || params[:sdk_names]).each do |sdk|
|
7
|
+
podspecs << (sdk.include?('.podspec') ? sdk : "#{sdk}.podspec")
|
8
|
+
end
|
7
9
|
|
8
10
|
if params[:update_version_numbers]
|
9
11
|
ensure_everything_is_set_up(params)
|
@@ -30,6 +32,8 @@ module Fastlane
|
|
30
32
|
other_action.version_bump_podspec(path: podspec, version_number: version_number)
|
31
33
|
end
|
32
34
|
|
35
|
+
params[:extra_changes].call(version_number) if params[:extra_changes]
|
36
|
+
|
33
37
|
sh("git checkout -b release/#{version_number}") if params[:create_pull_request]
|
34
38
|
|
35
39
|
commit_changes(version_number)
|
@@ -62,7 +66,8 @@ module Fastlane
|
|
62
66
|
name: version_number,
|
63
67
|
tag_name: version_number,
|
64
68
|
description: changes,
|
65
|
-
commitish: ENV['BRANCH_NAME'] || other_action.git_branch
|
69
|
+
commitish: ENV['BRANCH_NAME'] || other_action.git_branch,
|
70
|
+
upload_assets: params[:upload_assets]
|
66
71
|
)
|
67
72
|
|
68
73
|
podspecs.each { |podspec| other_action.pod_push_safely(podspec: podspec) }
|
@@ -73,7 +78,7 @@ module Fastlane
|
|
73
78
|
|
74
79
|
def self.ensure_everything_is_set_up(params)
|
75
80
|
other_action.ensure_git_branch(branch: 'main') if params[:publish_release]
|
76
|
-
other_action.ensure_git_status_clean
|
81
|
+
other_action.ensure_git_status_clean unless params[:skip_git_status_check]
|
77
82
|
|
78
83
|
UI.user_error!('Please set GITHUB_TOKEN environment value.') if params[:github_token].nil?
|
79
84
|
|
@@ -128,6 +133,12 @@ module Fastlane
|
|
128
133
|
UI.user_error!("SDK names array has to be specified") unless sdks.kind_of?(Array) && sdks.size.positive?
|
129
134
|
end
|
130
135
|
),
|
136
|
+
FastlaneCore::ConfigItem.new(
|
137
|
+
key: :podspec_names,
|
138
|
+
description: 'Podspec names to release',
|
139
|
+
is_string: false,
|
140
|
+
optional: true
|
141
|
+
),
|
131
142
|
FastlaneCore::ConfigItem.new(
|
132
143
|
env_name: 'GITHUB_REPOSITORY',
|
133
144
|
key: :github_repo,
|
@@ -138,6 +149,12 @@ module Fastlane
|
|
138
149
|
key: :github_token,
|
139
150
|
description: 'GITHUB_TOKEN environment variable'
|
140
151
|
),
|
152
|
+
FastlaneCore::ConfigItem.new(
|
153
|
+
key: :skip_git_status_check,
|
154
|
+
description: 'Skip git status check',
|
155
|
+
is_string: false,
|
156
|
+
optional: true
|
157
|
+
),
|
141
158
|
FastlaneCore::ConfigItem.new(
|
142
159
|
key: :changelog_path,
|
143
160
|
env_name: 'FL_CHANGELOG_PATH',
|
@@ -145,6 +162,12 @@ module Fastlane
|
|
145
162
|
is_string: true,
|
146
163
|
default_value: './CHANGELOG.md'
|
147
164
|
),
|
165
|
+
FastlaneCore::ConfigItem.new(
|
166
|
+
key: :extra_changes,
|
167
|
+
description: 'Lambda with extra changes to be commited to the release',
|
168
|
+
is_string: false,
|
169
|
+
default_value: false
|
170
|
+
),
|
148
171
|
FastlaneCore::ConfigItem.new(
|
149
172
|
key: :create_pull_request,
|
150
173
|
description: 'Create pull request from release branch to main',
|
@@ -162,6 +185,12 @@ module Fastlane
|
|
162
185
|
description: 'Publish release to GitHub and CocoaPods',
|
163
186
|
is_string: false,
|
164
187
|
default_value: false
|
188
|
+
),
|
189
|
+
FastlaneCore::ConfigItem.new(
|
190
|
+
key: :upload_assets,
|
191
|
+
description: 'Path to assets to be uploaded with the release',
|
192
|
+
is_string: false,
|
193
|
+
optional: true
|
165
194
|
)
|
166
195
|
]
|
167
196
|
end
|
@@ -6,7 +6,11 @@ module Fastlane
|
|
6
6
|
app_identifier: params[:app_identifier],
|
7
7
|
api_key: params[:api_key]
|
8
8
|
) + 1
|
9
|
-
|
9
|
+
|
10
|
+
targets = params[:extensions] << params[:app_target]
|
11
|
+
targets.each do |target|
|
12
|
+
other_action.increment_build_number_in_plist(build_number: build_number.to_s, target: target)
|
13
|
+
end
|
10
14
|
|
11
15
|
other_action.gym(
|
12
16
|
project: params[:xcode_project],
|
@@ -92,6 +96,12 @@ module Fastlane
|
|
92
96
|
UI.user_error!('DemoApp target name has to be specified') if target.nil? || target.empty?
|
93
97
|
end
|
94
98
|
),
|
99
|
+
FastlaneCore::ConfigItem.new(
|
100
|
+
key: :extensions,
|
101
|
+
description: 'Extensions/dependencies target names to bump build number',
|
102
|
+
is_string: false,
|
103
|
+
default_value: []
|
104
|
+
),
|
95
105
|
FastlaneCore::ConfigItem.new(
|
96
106
|
key: :app_identifier,
|
97
107
|
description: 'DemoApp bundle identifier',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-stream_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|