fastlane-plugin-stream_actions 0.3.90 → 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: 5cf702f90619544e501be9417e09a95b3d538bb30d73e65ec680344d8e6a4088
4
- data.tar.gz: 9658a685ac8042eeeb0f962cd32bc7e3f42f9b0614f1672829d025bb06785f49
3
+ metadata.gz: 723c887876cfdacffd749a5796588dbf7fd9143672b110f41db7b6252a988690
4
+ data.tar.gz: 8efc3a2ce781fda05d8afc53d87d08642cc8a572f0dd8d2d3813c67ee39dae54
5
5
  SHA512:
6
- metadata.gz: 4b61594d1db345a3d3e0049e4547197214f21be46a07af8d264beb6ffeef3248a80adaf0d2430e284f65f4722f1ea4f9db137a83d36bf90c05ad07ea10165364
7
- data.tar.gz: 5783972d93d05f924c7730f00d531c4bf34304c1914ec57d24faf4f934f041055a6553315eff448541bcff1fdd572bdf5e56936ee75994603029d58ebfc65976
6
+ metadata.gz: d32a656dd0856ded19d8de294dfcbc63b1eb4d6fb0f7c9bbc1eaa215a63cbc3eca25e480e723691be27c3962f68fa02dbc8795e6b993ffb5ff686537a0fa539f
7
+ data.tar.gz: 26b4ed074646b96bcd369b8d2ef58c48cb41de00f9892f5512966aae08e3fba53de25c7558b2b3f0b482e744ff1d4599fe1a9092295c1668fa47f3f1f94a30c5
@@ -7,7 +7,12 @@ module Fastlane
7
7
  ensure_everything_is_set_up(params)
8
8
  ensure_release_tag_is_new(version_number)
9
9
 
10
- changes = params[:changelog] || other_action.read_changelog(version: version_number, changelog_path: params[:changelog_path])
10
+ changes =
11
+ if params[:use_changelog]
12
+ params[:changelog] || other_action.read_changelog(version: version_number, changelog_path: params[:changelog_path])
13
+ else
14
+ version_number
15
+ end
11
16
 
12
17
  release_details = other_action.set_github_release(
13
18
  repository_name: params[:github_repo],
@@ -95,6 +100,12 @@ module Fastlane
95
100
  is_string: false,
96
101
  optional: true
97
102
  ),
103
+ FastlaneCore::ConfigItem.new(
104
+ key: :use_changelog,
105
+ description: 'Use the changelog as a testflight instructions',
106
+ is_string: false,
107
+ default_value: true
108
+ ),
98
109
  FastlaneCore::ConfigItem.new(
99
110
  key: :changelog_path,
100
111
  env_name: 'FL_CHANGELOG_PATH',
@@ -15,11 +15,16 @@ module Fastlane
15
15
 
16
16
  ensure_release_tag_is_new(version_number)
17
17
 
18
- changes = other_action.touch_changelog(
19
- release_version: version_number,
20
- github_repo: params[:github_repo],
21
- changelog_path: params[:changelog_path]
22
- )
18
+ changes =
19
+ if params[:use_changelog]
20
+ other_action.touch_changelog(
21
+ release_version: version_number,
22
+ github_repo: params[:github_repo],
23
+ changelog_path: params[:changelog_path]
24
+ )
25
+ else
26
+ "#{version_number} Release"
27
+ end
23
28
 
24
29
  podspecs = params[:podspec_names]&.map { |sdk| "#{sdk}.podspec" } || []
25
30
  podspecs.each do |podspec|
@@ -120,6 +125,12 @@ module Fastlane
120
125
  is_string: false,
121
126
  optional: true
122
127
  ),
128
+ FastlaneCore::ConfigItem.new(
129
+ key: :use_changelog,
130
+ description: 'Use the changelog as a testflight instructions',
131
+ is_string: false,
132
+ default_value: true
133
+ ),
123
134
  FastlaneCore::ConfigItem.new(
124
135
  key: :changelog_path,
125
136
  env_name: 'FL_CHANGELOG_PATH',
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.90'
3
+ VERSION = '0.3.92'
4
4
  end
5
5
  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.90
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-08-01 00:00:00.000000000 Z
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