fastlane-plugin-stream_actions 0.3.76 → 0.3.78

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: 7556cc0b862c5627f68c25bcbd8e0bfd8e7990d6ea5d7e4dd5581326d97a851a
4
- data.tar.gz: 20f2fb40548656caf01a1a1e69b788479d122800cc6a391aaf9627abf60c303f
3
+ metadata.gz: b4fc7f1f957ba109f3a3ade4f960df6dbbaafc970ce9ad407076eb71ca823f5b
4
+ data.tar.gz: 115443726f0fcce522c8ff5577dea96c0b6376624feac383e4c95ee99cc239e7
5
5
  SHA512:
6
- metadata.gz: 94ce0fb4525fd1653aa5be14135e2230f1e418048a33e9222d12044eeae211b3bfb4e91ffbf10fd619a3c99a29959a04f4981093ccb88252f881d0a532ab5860
7
- data.tar.gz: 33f698f234d6d0310849c75cf00c3971f74b05eb763b324e7ff28f3041c09292b072ccb2e5b1fb9063051e47e01b0a007dcb98a394aeb367021856a0846938ef
6
+ metadata.gz: 2846ef7fc9fa232c00a643f9c37efa28e8dcf59788f8b0ff6f59d42a98e610db98d132a263cd98ce0481fed2579aef58bd5042d721c2eb4da1c8e8e561a8bb5e
7
+ data.tar.gz: 0773e19f3f6a8c216300417d6364faa86590011dc9ae06685e507e0e8a586005c65428d077bba6b6316fb147720dc3a168e2d95f981d430e6719f1d2064cd344
@@ -0,0 +1,35 @@
1
+ module Fastlane
2
+ module Actions
3
+ class SelectXcodeAction < Action
4
+ def self.run(params)
5
+ xcodes = sh('ls /Applications | grep Xcode')
6
+ UI.user_error!("Xcode #{params[:version]} is not installed") unless xcodes.include?(params[:version])
7
+
8
+ sh("sudo xcode-select -s /Applications/Xcode_#{params[:version]}.app")
9
+ sh('xcodebuild -version')
10
+ end
11
+
12
+ #####################################################
13
+ # @!group Documentation
14
+ #####################################################
15
+
16
+ def self.description
17
+ 'Select Xcode version'
18
+ end
19
+
20
+ def self.available_options
21
+ [
22
+ FastlaneCore::ConfigItem.new(
23
+ key: :version,
24
+ env_name: 'GITHUB_REPOSITORY',
25
+ description: 'Xcode version'
26
+ )
27
+ ]
28
+ end
29
+
30
+ def self.is_supported?(platform)
31
+ [:ios].include?(platform)
32
+ end
33
+ end
34
+ end
35
+ end
@@ -25,14 +25,15 @@ module Fastlane
25
25
  benchmark_value_kb = benchmark_sizes[sdk_name.to_s]
26
26
  benchmark_value_mb = (benchmark_value_kb / 1024.0).round(2)
27
27
  benchmark_value = is_kb ? benchmark_value_kb.round(0) : benchmark_value_mb
28
- max_tolerance = params[:max_tolerance] || is_kb ? 500 : 5000 # By default, Max Tolerance is 500 Kilobytes or 5000 Bytes
29
- fine_tolerance = params[:fine_tolerance] || is_kb ? 250 : 2500 # By default, Fine Tolerance is 250 Kilobytes or 2500 Bytes
30
28
 
31
29
  diff_kb = (branch_value_kb - benchmark_value_kb).round(0)
32
30
  diff_b = ((branch_value_kb - benchmark_value_kb) * 1024).round(0)
33
31
  diff = is_kb ? diff_b : diff_kb
34
32
  diff_ext = is_kb ? 'B' : 'KB'
35
33
 
34
+ max_tolerance = params[:max_tolerance] || diff_ext == 'B' ? 5000 : 500 # By default, Max Tolerance is 5000 Bytes or 500 Kilobytes
35
+ fine_tolerance = params[:fine_tolerance] || diff_ext == 'B' ? 2500 : 250 # By default, Fine Tolerance is 2500 Bytes or 250 Kilobytes
36
+
36
37
  diff_sign = if diff.zero?
37
38
  ''
38
39
  elsif diff.positive?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.76'
3
+ VERSION = '0.3.78'
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.76
4
+ version: 0.3.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list
@@ -249,6 +249,7 @@ files:
249
249
  - lib/fastlane/plugin/stream_actions/actions/read_changelog.rb
250
250
  - lib/fastlane/plugin/stream_actions/actions/release_ios_sdk.rb
251
251
  - lib/fastlane/plugin/stream_actions/actions/retrieve_xctest_names.rb
252
+ - lib/fastlane/plugin/stream_actions/actions/select_xcode.rb
252
253
  - lib/fastlane/plugin/stream_actions/actions/setup_git_config.rb
253
254
  - lib/fastlane/plugin/stream_actions/actions/show_sdk_size.rb
254
255
  - lib/fastlane/plugin/stream_actions/actions/testflight_build.rb