fastlane-plugin-stream_actions 0.3.68 → 0.3.70
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 572e08d296934fa492b602ab85ee2b5b96c5558c9bafb2c52e92bb600e4e79b9
|
4
|
+
data.tar.gz: 29e1f387072be14179b5b3727638f6dec7be999a215cac89c441c79bab4f4f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 996688ff2b54728f5584ac3ab0d60e393f7b74350943405874eec10c72239b59ab97b52738df070089e781d058a06f04b2623b62c69a70814b477e5baa74d946
|
7
|
+
data.tar.gz: 8e6ff390fd9ccb4e4b39d9219df08592d2ee52c59d054364513fb9009de0f975f3918eaed6ed8f4c5a9bbb62ca090f1e26ec13c433ac464eaf33f50528ed9176
|
@@ -20,7 +20,7 @@ module Fastlane
|
|
20
20
|
{ a: added_files, d: deleted_files, m: modified_files }
|
21
21
|
end
|
22
22
|
|
23
|
-
def select_files_from(files:, with_extension:, that_start_with:)
|
23
|
+
def self.select_files_from(files:, with_extension:, that_start_with:)
|
24
24
|
files.select do |f|
|
25
25
|
f.start_with?(*that_start_with)
|
26
26
|
end.map do |f|
|
@@ -15,22 +15,23 @@ module Fastlane
|
|
15
15
|
benchmark_config = JSON.parse(File.read(sdk_size_path))
|
16
16
|
benchmark_key = is_release ? 'release' : 'develop'
|
17
17
|
benchmark_sizes = benchmark_config[benchmark_key]
|
18
|
+
is_kb = params[:size_ext] == 'KB'
|
18
19
|
|
19
20
|
table_header = '## SDK Size'
|
20
21
|
markdown_table = "#{table_header}\n| `title` | `#{is_release ? 'previous release' : 'develop'}` | `#{is_release ? 'current release' : 'branch'}` | `diff` | `status` |\n| - | - | - | - | - |\n"
|
21
22
|
params[:branch_sizes].each do |sdk_name, branch_value_kb|
|
22
23
|
branch_value_mb = (branch_value_kb / 1024.0).round(2)
|
23
|
-
branch_value =
|
24
|
+
branch_value = is_kb ? branch_value_kb.round(0) : branch_value_mb
|
24
25
|
benchmark_value_kb = benchmark_sizes[sdk_name.to_s]
|
25
26
|
benchmark_value_mb = (benchmark_value_kb / 1024.0).round(2)
|
26
|
-
benchmark_value =
|
27
|
-
max_tolerance = 500 # Max Tolerance is
|
28
|
-
fine_tolerance = 250 # Fine Tolerance is
|
27
|
+
benchmark_value = is_kb ? benchmark_value_kb : 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
|
29
30
|
|
30
31
|
diff_kb = (branch_value_kb - benchmark_value_kb).round(0)
|
31
32
|
diff_b = ((branch_value_kb - benchmark_value_kb) * 1024).round(0)
|
32
|
-
diff =
|
33
|
-
diff_ext =
|
33
|
+
diff = is_kb ? diff_b : diff_kb
|
34
|
+
diff_ext = is_kb ? 'B' : 'KB'
|
34
35
|
|
35
36
|
diff_sign = if diff.zero?
|
36
37
|
''
|
@@ -107,6 +108,18 @@ module Fastlane
|
|
107
108
|
key: :size_ext,
|
108
109
|
description: 'SDK size extension (KB or MB)',
|
109
110
|
default_value: 'MB'
|
111
|
+
),
|
112
|
+
FastlaneCore::ConfigItem.new(
|
113
|
+
key: :max_tolerance,
|
114
|
+
description: 'Max tolerance (in KB `if size_ext == MB` or in B `if size_ext == KB`)',
|
115
|
+
is_string: false,
|
116
|
+
optional: true
|
117
|
+
),
|
118
|
+
FastlaneCore::ConfigItem.new(
|
119
|
+
key: :fine_tolerance,
|
120
|
+
description: 'Fine tolerance (in KB `if size_ext == MB` or in B `if size_ext == KB`)',
|
121
|
+
is_string: false,
|
122
|
+
optional: true
|
110
123
|
)
|
111
124
|
]
|
112
125
|
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.
|
4
|
+
version: 0.3.70
|
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-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xctest_list
|