fastlane-plugin-stream_actions 0.3.79 → 0.3.80

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: 757827efe7f760d11b6d89f14752a514f1fc89cc799a2f9915f3e9225fcf3211
4
- data.tar.gz: cf1d29b995e6a77079ce884c05d35ecdcf75bacd78bfb27c8c9292ad39afe0b8
3
+ metadata.gz: 1d7287766408959b2a1e4d117b8527606b782354d558a23438710c2e214e4849
4
+ data.tar.gz: ea05d93c6048d0429298496eda59df7cdb798f0026459c6ced2c698643e0992c
5
5
  SHA512:
6
- metadata.gz: abc4cec3803672b66d25cd69686facd9345f2ffe99c194cfa95ed002b9bcc3628c3e7871f3f46d838f6ba54d58d215cc80beb080fc729542dfcbef36f1dde5a2
7
- data.tar.gz: 46ec21a0074ed18ecb6268147be0a78abf6123b0e5d0436d59988c20b6b3d39a347cf7c94d635cf88a2d7456024c9eaa9bf64ed0b94cb2e4e575f48135b730cf
6
+ metadata.gz: 6efbae6d488b7b12eaa2946f43daab013a1265d00c209bb1eab509cff5c612fcbf99f4ed6080be27a7295764c087320d29659f683a67904b4ae22f391e4294d5
7
+ data.tar.gz: 2047b5582ec743aa613e0b98b77c4287365a259682f13d178042a76f6d7400c267179a4704fb341fc852e62623f22fcd93dd0c605c47defd44fc9e1d89b39cb2
@@ -39,6 +39,13 @@ module Fastlane
39
39
  xcargs: params[:xcargs]
40
40
  )
41
41
 
42
+ changelog =
43
+ if params[:use_changelog]
44
+ other_action.read_changelog(version: params[:app_version], changelog_path: params[:changelog_path])
45
+ else
46
+ testflight_instructions(params)
47
+ end
48
+
42
49
  external_groups = other_action.current_branch == 'main' ? ['Public Link'] : []
43
50
  other_action.pilot(
44
51
  api_key: params[:api_key],
@@ -50,7 +57,7 @@ module Fastlane
50
57
  distribute_external: external_groups.any?,
51
58
  notify_external_testers: external_groups.any?,
52
59
  reject_build_waiting_for_review: true,
53
- changelog: testflight_instructions(params)
60
+ changelog: changelog
54
61
  )
55
62
 
56
63
  if params[:github_pr_num] && !params[:github_pr_num].strip.empty?
@@ -62,12 +69,11 @@ module Fastlane
62
69
  def self.testflight_instructions(params)
63
70
  return "This is the official #{params[:app_target]} sample app" unless params[:sdk_target]
64
71
 
65
- version_number = other_action.get_version_number(target: params[:sdk_target])[/\d+\.\d+\.\d/]
66
72
  if ENV['GITHUB_EVENT_NAME'] == 'pull_request'
67
73
  sha = ENV['GITHUB_SHA'] ? ENV['GITHUB_SHA'][0..8] : sh('git rev-parse --short HEAD')
68
74
  "This is the build for Regression testing on release candidate v#{version_number} (sha: #{sha})."
69
75
  else
70
- "This is the official sample app built with iOS #{params[:sdk_target]} SDK v#{version_number}. It's designed " \
76
+ "This is the official sample app built with iOS #{params[:sdk_target]} SDK v#{params[:app_version]}. It's designed " \
71
77
  'to highlight engaging features and new improvements to the SDK, but remember that this is just one ' \
72
78
  'possible implementation. You can start your own by borrowing and customizing the code from this ' \
73
79
  "sample, or build something completely different using Stream's components."
@@ -164,6 +170,18 @@ module Fastlane
164
170
  key: :configuration,
165
171
  description: 'Build configuration',
166
172
  default_value: 'Release'
173
+ ),
174
+ FastlaneCore::ConfigItem.new(
175
+ key: :use_changelog,
176
+ description: 'Use the changelog as a testflight instructions',
177
+ is_string: false,
178
+ default_value: false
179
+ ),
180
+ FastlaneCore::ConfigItem.new(
181
+ key: :changelog_path,
182
+ description: 'The path to your project CHANGELOG.md',
183
+ is_string: true,
184
+ default_value: './CHANGELOG.md'
167
185
  )
168
186
  ]
169
187
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.79'
3
+ VERSION = '0.3.80'
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.79
4
+ version: 0.3.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-01 00:00:00.000000000 Z
11
+ date: 2025-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list