fastlane-plugin-stream_actions 0.3.91 → 0.3.92
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: 723c887876cfdacffd749a5796588dbf7fd9143672b110f41db7b6252a988690
|
4
|
+
data.tar.gz: 8efc3a2ce781fda05d8afc53d87d08642cc8a572f0dd8d2d3813c67ee39dae54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d32a656dd0856ded19d8de294dfcbc63b1eb4d6fb0f7c9bbc1eaa215a63cbc3eca25e480e723691be27c3962f68fa02dbc8795e6b993ffb5ff686537a0fa539f
|
7
|
+
data.tar.gz: 26b4ed074646b96bcd369b8d2ef58c48cb41de00f9892f5512966aae08e3fba53de25c7558b2b3f0b482e744ff1d4599fe1a9092295c1668fa47f3f1f94a30c5
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class ShowDetailedSdkSizeAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
metrics_dir = 'metrics'
|
6
|
+
FileUtils.remove_dir(metrics_dir, force: true)
|
7
|
+
sh("git clone git@github.com:GetStream/stream-internal-metrics.git #{metrics_dir}")
|
8
|
+
|
9
|
+
params[:sdk_names].each do |sdk|
|
10
|
+
old_linkmap = "metrics/linkmaps/#{sdk}-LinkMap.txt"
|
11
|
+
new_linkmap = "linkmaps/#{sdk}-LinkMap.txt"
|
12
|
+
details = other_action.xcsize_diff(
|
13
|
+
old_linkmap: old_linkmap,
|
14
|
+
new_linkmap: new_linkmap,
|
15
|
+
threshold: 1
|
16
|
+
)[:details]
|
17
|
+
|
18
|
+
header = "## XCSize: #{sdk}"
|
19
|
+
content = "#{header}\nNo changes in SDK size."
|
20
|
+
unless details.empty?
|
21
|
+
table = "| `Object` | `Diff (bytes)` |\n| - | - |\n"
|
22
|
+
details.each { |object, diff| table << "| #{object} | #{diff} |\n" }
|
23
|
+
content = "#{header}\n#{table}"
|
24
|
+
end
|
25
|
+
|
26
|
+
if ENV['GITHUB_EVENT_NAME'].to_s == 'push' && other_action.current_branch == 'develop'
|
27
|
+
File.write(old_linkmap, File.read(new_linkmap))
|
28
|
+
Dir.chdir(metrics_dir) do
|
29
|
+
if sh('git status -s').to_s.empty?
|
30
|
+
UI.important('No changes in linkmap.')
|
31
|
+
else
|
32
|
+
sh('git add -A')
|
33
|
+
sh("git commit -m 'Update #{sdk_size_path}'")
|
34
|
+
sh('git push')
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
other_action.pr_comment(text: content, edit_last_comment_with_text: header) if other_action.is_ci
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
#####################################################
|
44
|
+
# @!group Documentation
|
45
|
+
#####################################################
|
46
|
+
|
47
|
+
def self.description
|
48
|
+
'Show SDKs objects size'
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.available_options
|
52
|
+
[
|
53
|
+
FastlaneCore::ConfigItem.new(
|
54
|
+
key: :sdk_names,
|
55
|
+
description: 'SDK names to analyze',
|
56
|
+
is_string: false,
|
57
|
+
verify_block: proc do |sdks|
|
58
|
+
UI.user_error!("SDK names array has to be specified") unless sdks.kind_of?(Array) && sdks.size.positive?
|
59
|
+
end
|
60
|
+
)
|
61
|
+
]
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.is_supported?(platform)
|
65
|
+
[:ios, :mac].include?(platform)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
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.92
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09
|
11
|
+
date: 2025-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fastlane-plugin-xcsize
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: xctest_list
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -250,6 +264,7 @@ files:
|
|
250
264
|
- lib/fastlane/plugin/stream_actions/actions/retrieve_xctest_names.rb
|
251
265
|
- lib/fastlane/plugin/stream_actions/actions/select_xcode.rb
|
252
266
|
- lib/fastlane/plugin/stream_actions/actions/setup_git_config.rb
|
267
|
+
- lib/fastlane/plugin/stream_actions/actions/show_detailed_sdk_size.rb
|
253
268
|
- lib/fastlane/plugin/stream_actions/actions/show_sdk_size.rb
|
254
269
|
- lib/fastlane/plugin/stream_actions/actions/testflight_build.rb
|
255
270
|
- lib/fastlane/plugin/stream_actions/actions/touch_changelog.rb
|