fastlane-plugin-stream_actions 0.3.70 → 0.3.72

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: 572e08d296934fa492b602ab85ee2b5b96c5558c9bafb2c52e92bb600e4e79b9
4
- data.tar.gz: 29e1f387072be14179b5b3727638f6dec7be999a215cac89c441c79bab4f4f91
3
+ metadata.gz: 6944da53d0897bf03f0389670ea087ec18a21fa754b98d1283e41b603d8e5707
4
+ data.tar.gz: 48dfdd28d2de636e6ae5af8372268ad2f7a60ea75ab9e559aeb8c50a93ca148a
5
5
  SHA512:
6
- metadata.gz: 996688ff2b54728f5584ac3ab0d60e393f7b74350943405874eec10c72239b59ab97b52738df070089e781d058a06f04b2623b62c69a70814b477e5baa74d946
7
- data.tar.gz: 8e6ff390fd9ccb4e4b39d9219df08592d2ee52c59d054364513fb9009de0f975f3918eaed6ed8f4c5a9bbb62ca090f1e26ec13c433ac464eaf33f50528ed9176
6
+ metadata.gz: 3619926f83dacc09bf67df959065d6a81fef93babfd718f5026ce3f57bc0ab1b6577061d61af6a099b72911604ee12b63f9e53be384a3dc2d2f700178f73a8be
7
+ data.tar.gz: f5f4e3388282fb4b2e872a678d1ab74067f042162434fd4a95aa2fbddd0c69b290f92f19e8c8642382df16b950d5b7254b7d59f83d3f362d584164ce8fc63d36
@@ -58,7 +58,7 @@ module Fastlane
58
58
  FastlaneCore::PrintTable.print_values(title: 'SDK Size', config: params[:branch_sizes])
59
59
 
60
60
  if other_action.is_ci
61
- if is_release || ENV['GITHUB_EVENT_NAME'].to_s == 'push'
61
+ if is_release || (ENV['GITHUB_EVENT_NAME'].to_s == 'push' && ["main", "develop"].include?(other_action.current_branch))
62
62
  benchmark_config[benchmark_key] = params[:branch_sizes]
63
63
  File.write(sdk_size_path, JSON.pretty_generate(benchmark_config))
64
64
  Dir.chdir(File.dirname(sdk_size_path)) do
@@ -7,15 +7,24 @@ module Fastlane
7
7
  api_key: params[:api_key]
8
8
  ) + 1
9
9
 
10
- Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key])
11
- app_store_versions = Spaceship::ConnectAPI::App.find(params[:app_identifier]).app_store_versions
12
-
13
10
  targets = params[:extensions] << params[:app_target]
11
+
14
12
  targets.each do |target|
15
13
  other_action.increment_build_number_in_plist(build_number: build_number.to_s, target: target)
16
- next if app_store_versions.empty?
14
+ end
17
15
 
18
- other_action.increment_version_number_in_plist(version_number: app_store_versions.first.version_string, target: target)
16
+ if params[:app_version]
17
+ targets.each do |target|
18
+ other_action.increment_version_number_in_plist(version_number: params[:app_version].to_s, target: target)
19
+ end
20
+ else
21
+ Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key])
22
+ app_store_versions = Spaceship::ConnectAPI::App.find(params[:app_identifier]).app_store_versions
23
+ unless app_store_versions.empty?
24
+ targets.each do |target|
25
+ other_action.increment_version_number_in_plist(version_number: app_store_versions.first.version_string, target: target)
26
+ end
27
+ end
19
28
  end
20
29
 
21
30
  other_action.gym(
@@ -102,6 +111,11 @@ module Fastlane
102
111
  UI.user_error!('DemoApp target name has to be specified') if target.nil? || target.empty?
103
112
  end
104
113
  ),
114
+ FastlaneCore::ConfigItem.new(
115
+ key: :app_version,
116
+ description: 'DemoApp version',
117
+ optional: true
118
+ ),
105
119
  FastlaneCore::ConfigItem.new(
106
120
  key: :extensions,
107
121
  description: 'Extensions/dependencies target names to bump build number',
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.70'
3
+ VERSION = '0.3.72'
4
4
  end
5
5
  end
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.70
4
+ version: 0.3.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list