fastlane-plugin-stream_actions 0.4.2 → 0.4.3

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: 5db13e6770f55566dab3812ca6cc13d72a4cfbf55a12c105fd7fd46da6fafa7a
4
- data.tar.gz: 9066d128357a6b2513f3d395246d9c4ec7b9c5bfe7dd52d9cdb54a3a98432e7a
3
+ metadata.gz: ca06e9e0820bf90f20192d8bf762e3743b5ef18613cab71ca4126e7c3c6beeb6
4
+ data.tar.gz: 6184465095169e256dc90c3ac979fbed6783a597c4db02eaba861ec19a3a8cd9
5
5
  SHA512:
6
- metadata.gz: d916b54cef7c5304f0ec2467fa27e6426f1696212f3b6f857a74b674a04343e4042d0b39736dc30ef1031c487fb78cc3328c0041111405c3f5fd4902adb0c68f
7
- data.tar.gz: 6c0239be3c703aa18bea7fe0b033c065a776c1e6e8ca1d26dd2d6b8e0bbb8648fee9cc4f6394042d3478d110a32702527f28edf43cd638ddc7643f71cd55485d
6
+ metadata.gz: 3735e7cad6c2ef6a602685cfba12dc7f16b226ed81fa8ebe8edbc10de377ecb04670ca1cf798787b26729750223f99efd82827cc44205e518c6134183fa34a34
7
+ data.tar.gz: b7d87ad3aa7d5c0d8a5f0dde85d41fae46ebce067b40e5bb99c6eddae9bc09b9ab8a5e4f648947fbed88788246338acdbe09cf3d623a52d49a165a7f712b9b57
@@ -2,35 +2,40 @@ module Fastlane
2
2
  module Actions
3
3
  class PublishIosSdkAction < Action
4
4
  def self.run(params)
5
+ skip_spm = params[:skip_spm].to_s.casecmp('true').zero?
6
+ skip_pods = params[:skip_pods].to_s.casecmp('true').zero?
5
7
  version_number = params[:version]
6
8
 
7
- ensure_everything_is_set_up(params)
8
- ensure_release_tag_is_new(version_number)
9
+ unless skip_spm
10
+ ensure_everything_is_set_up(params)
11
+ ensure_release_tag_is_new(version_number)
9
12
 
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
13
+ changes =
14
+ if params[:use_changelog]
15
+ params[:changelog] || other_action.read_changelog(version: version_number, changelog_path: params[:changelog_path])
16
+ else
17
+ version_number
18
+ end
16
19
 
17
- release_details = other_action.set_github_release(
18
- repository_name: params[:github_repo],
19
- api_token: params[:github_token],
20
- name: version_number,
21
- tag_name: version_number,
22
- description: changes,
23
- commitish: other_action.current_branch,
24
- upload_assets: params[:upload_assets],
25
- is_prerelease: version_number.downcase.include?('beta')
26
- )
20
+ other_action.set_github_release(
21
+ repository_name: params[:github_repo],
22
+ api_token: params[:github_token],
23
+ name: version_number,
24
+ tag_name: version_number,
25
+ description: changes,
26
+ commitish: other_action.current_branch,
27
+ upload_assets: params[:upload_assets],
28
+ is_prerelease: version_number.downcase.include?('beta')
29
+ )
30
+ end
27
31
 
28
- unless params[:skip_pods].to_s.casecmp('true').zero?
32
+ unless skip_pods
29
33
  podspecs = params[:podspec_names]&.map { |sdk| "#{sdk}.podspec" } || []
30
34
  podspecs.each { |podspec| other_action.pod_push_safely(podspec: podspec) }
31
35
  end
32
36
 
33
- UI.success("Github release v#{version_number} was created, please visit #{release_details['html_url']} to see it! 🚢")
37
+ destination = skip_spm ? 'CocoaPods' : skip_pods ? 'SPM' : 'Error'
38
+ UI.success("Github release v#{version_number} has been published to #{destination} 🚢")
34
39
  end
35
40
 
36
41
  def self.ensure_everything_is_set_up(params)
@@ -66,6 +71,13 @@ module Fastlane
66
71
  is_string: false,
67
72
  optional: true
68
73
  ),
74
+ FastlaneCore::ConfigItem.new(
75
+ key: :skip_spm,
76
+ description: 'Skip release to GitHub and SPM?',
77
+ is_string: false,
78
+ optional: true,
79
+ default_value: false
80
+ ),
69
81
  FastlaneCore::ConfigItem.new(
70
82
  key: :skip_pods,
71
83
  description: 'Skip release to CocoaPods?',
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-24 00:00:00.000000000 Z
11
+ date: 2026-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  requirements: []
285
- rubygems_version: 3.5.11
285
+ rubygems_version: 3.4.1
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: stream custom actions