fastlane-plugin-stream_actions 0.3.110 → 0.4.0
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/stream_actions/actions/core_version.rb +37 -0
- data/lib/fastlane/plugin/stream_actions/actions/release_ios_sdk.rb +7 -1
- data/lib/fastlane/plugin/stream_actions/actions/testflight_build.rb +2 -1
- data/lib/fastlane/plugin/stream_actions/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: da3b36b0e6522ca379318f8ad60da491bf4142410448906362262a0cac7752be
|
|
4
|
+
data.tar.gz: 5ab21d748b882e41449e65689cb4d8f0b57995a87886c9a0712f6ebd9f969149
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 909b117ee8f4b36290a3aa1c3df805d273e76523dc99eff987a6a6d11973a99f28bf20e491943c4fe00cb041fedf56b946330f7a6e4256f7cea6d8b7e9305b3d
|
|
7
|
+
data.tar.gz: 66b9a04b4941b8be74fa1dde59aa06a1a77c8463dff240d856fba76d8ef7c02f51529990dc8330879dd4174279001bd7fe5f84df02cc0b89dac07df8d3047581
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module Fastlane
|
|
2
|
+
module Actions
|
|
3
|
+
class CoreVersionAction < Action
|
|
4
|
+
def self.run(params)
|
|
5
|
+
version = params[:version]
|
|
6
|
+
return nil if version.nil? || version.to_s.strip.empty?
|
|
7
|
+
|
|
8
|
+
m = version.to_s.match(/(\d+)\.(\d+)\.(\d+)/)
|
|
9
|
+
UI.user_error!("Version must contain major.minor.patch (e.g. 1.2.3), got: #{version}") unless m
|
|
10
|
+
|
|
11
|
+
"#{m[1]}.#{m[2]}.#{m[3]}"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
#####################################################
|
|
15
|
+
# @!group Documentation
|
|
16
|
+
#####################################################
|
|
17
|
+
|
|
18
|
+
def self.description
|
|
19
|
+
'Returns major.minor.patch from a version string (e.g. 1.2.3-beta -> 1.2.3) for plist / CFBundleShortVersionString'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.available_options
|
|
23
|
+
[
|
|
24
|
+
FastlaneCore::ConfigItem.new(
|
|
25
|
+
key: :version,
|
|
26
|
+
description: 'Version string to normalize; nil or empty returns nil',
|
|
27
|
+
optional: true
|
|
28
|
+
)
|
|
29
|
+
]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.is_supported?(platform)
|
|
33
|
+
true
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -4,15 +4,21 @@ module Fastlane
|
|
|
4
4
|
def self.run(params)
|
|
5
5
|
ensure_everything_is_set_up(params)
|
|
6
6
|
|
|
7
|
+
version_acceptable_for_plist = other_action.core_version(version: params[:version])
|
|
8
|
+
|
|
7
9
|
version_number = ''
|
|
8
10
|
params[:sdk_names].each do |target|
|
|
11
|
+
# Assigning is required because the version could have been passed via :bump_type
|
|
9
12
|
version_number = other_action.increment_version_number_in_plist(
|
|
10
13
|
target: target,
|
|
11
|
-
version_number:
|
|
14
|
+
version_number: version_acceptable_for_plist,
|
|
12
15
|
bump_type: params[:bump_type]
|
|
13
16
|
)
|
|
14
17
|
end
|
|
15
18
|
|
|
19
|
+
# Reassigning is required if the version was passed via :version to keep postfix such as "-beta" if exists
|
|
20
|
+
version_number = params[:version] if params[:version]
|
|
21
|
+
|
|
16
22
|
ensure_release_tag_is_new(version_number)
|
|
17
23
|
|
|
18
24
|
changes =
|
|
@@ -14,8 +14,9 @@ module Fastlane
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
if params[:app_version]
|
|
17
|
+
version_acceptable_for_plist = other_action.core_version(version: params[:app_version])
|
|
17
18
|
targets.each do |target|
|
|
18
|
-
other_action.increment_version_number_in_plist(version_number:
|
|
19
|
+
other_action.increment_version_number_in_plist(version_number: version_acceptable_for_plist, target: target)
|
|
19
20
|
end
|
|
20
21
|
else
|
|
21
22
|
Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key])
|
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.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GetStream
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xctest_list
|
|
@@ -234,6 +234,7 @@ files:
|
|
|
234
234
|
- lib/fastlane/plugin/stream_actions/actions/allure_run_testplan.rb
|
|
235
235
|
- lib/fastlane/plugin/stream_actions/actions/build_app_for_ios_simulator.rb
|
|
236
236
|
- lib/fastlane/plugin/stream_actions/actions/check_unsafe_flags.rb
|
|
237
|
+
- lib/fastlane/plugin/stream_actions/actions/core_version.rb
|
|
237
238
|
- lib/fastlane/plugin/stream_actions/actions/current_branch.rb
|
|
238
239
|
- lib/fastlane/plugin/stream_actions/actions/custom_match.rb
|
|
239
240
|
- lib/fastlane/plugin/stream_actions/actions/git_status.rb
|