fastlane-plugin-stream_actions 0.1.11 → 0.1.13

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: 0f22d462a53c6669bcf93f005dfd34387d1d53536befdb05b926e82158816be6
4
- data.tar.gz: 1a6ed7ad365b8c0fcb5f1f7043ddc5762079afeed51dcb324bd6eaa528956b92
3
+ metadata.gz: a6ec0be8f79dbac1b9419e0002bef670aa32499f1cd195ceb62bfc3d9497e86f
4
+ data.tar.gz: 618f1e7b9c431c44172ec0489f4d65d80fa0e6223546dcbd45f7a3a716181f01
5
5
  SHA512:
6
- metadata.gz: a2668e8109d5e06cc7a012adf6179be8a5ee79de046451f289c2beb05652fba83d74fd8bb9864ee3bc82439c95248e0e930b343c222285b67fcaf59aaf69e2e0
7
- data.tar.gz: 28b6858e86599babb2659547aa849334a690003cade02f391938df1a6b262ee156cf2bdb625387ff1efcaec92ad78eeedcdc2d48d0d0485e3fb09e571b0839cd
6
+ metadata.gz: 671bfd2e3764e97c8f16d0f5ce714b3fa8284cfa9424ce465e6853a16e9307494da5bbe5e5b2b411dcaa313d315be7139000bd56a5cfebdaa04b7f2fee60aa61
7
+ data.tar.gz: f09fe51ae54b4678e789d62aefe39e81992274429d30e419459c413420c10659172d3963d41844e686be039ba0f7ceb68ff1a0fc8fe9ff44c055cce58e4ff11a
@@ -0,0 +1,69 @@
1
+ module Fastlane
2
+ module Actions
3
+ class CustomMatchAction < Action
4
+ def self.run(params)
5
+ if params[:register_device]
6
+ device_name = other_action.prompt(text: 'Enter the device name: ')
7
+ device_udid = other_action.prompt(text: 'Enter the device UDID: ')
8
+ other_action.register_device(name: device_name, udid: device_udid)
9
+ params[:readonly] = false
10
+ end
11
+
12
+ %w[development adhoc appstore].each do |type|
13
+ other_action.match(
14
+ api_key: params[:api_key],
15
+ type: type,
16
+ app_identifier: params[:app_identifier],
17
+ readonly: params[:readonly] || true,
18
+ force_for_new_devices: !other_action.is_ci
19
+ )
20
+ end
21
+ end
22
+
23
+ #####################################################
24
+ # @!group Documentation
25
+ #####################################################
26
+
27
+ def self.description
28
+ 'Analyzes the impact of changes on PR'
29
+ end
30
+
31
+ def self.available_options
32
+ [
33
+ FastlaneCore::ConfigItem.new(
34
+ key: :api_key,
35
+ description: 'AppStore Connect API Key',
36
+ is_string: false,
37
+ verify_block: proc do |api_key|
38
+ UI.user_error!('AppStore Connect API Key has to be specified') unless api_key
39
+ end
40
+ ),
41
+ FastlaneCore::ConfigItem.new(
42
+ key: :app_identifier,
43
+ description: 'The bundle identifier(s) of your app (array of strings)',
44
+ is_string: false,
45
+ verify_block: proc do |id|
46
+ UI.user_error!("The bundle identifier(s) have to be specified") unless id.kind_of?(Array) && id.size.positive?
47
+ end
48
+ ),
49
+ FastlaneCore::ConfigItem.new(
50
+ key: :readonly,
51
+ is_string: false,
52
+ default_value: true,
53
+ description: 'If `readonly: true` (by default), installs all Certs and Profiles necessary for development and ad-hoc.\nIf `readonly: false`, recreates all Profiles necessary for development and ad-hoc, updates them locally and remotely'
54
+ ),
55
+ FastlaneCore::ConfigItem.new(
56
+ key: :register_device,
57
+ is_string: false,
58
+ default_value: false,
59
+ description: 'When `true` you will be asked to specify a name and UDID of new device to register'
60
+ )
61
+ ]
62
+ end
63
+
64
+ def self.supported?(_platform)
65
+ [:ios].include?(platform)
66
+ end
67
+ end
68
+ end
69
+ end
@@ -1,7 +1,5 @@
1
1
  module Fastlane
2
2
  module Actions
3
- require 'fastlane/actions/xcodebuild'
4
-
5
3
  class IsCheckRequiredAction < Action
6
4
  def self.run(params)
7
5
  return true unless params[:github_pr_num]
@@ -1,7 +1,5 @@
1
1
  module Fastlane
2
2
  module Actions
3
- require 'fastlane/actions/xcodebuild'
4
-
5
3
  class PodPushSafelyAction < Action
6
4
  def self.run(params)
7
5
  pod_push_safely(params)
@@ -9,7 +7,7 @@ module Fastlane
9
7
 
10
8
  def self.pod_push_safely(params)
11
9
  UI.message("Starting to push podspec: #{params[:podspec]}")
12
- Fastlane::Actions::PodPushAction.run(path: params[:podspec], allow_warnings: true, synchronous: params[:sync])
10
+ other_action.pod_push(path: params[:podspec], allow_warnings: true, synchronous: params[:sync])
13
11
  rescue StandardError => e
14
12
  UI.message(e)
15
13
  UI.message("pod_push failed for #{params[:podspec]}. Waiting a minute until retry for trunk to get updated...")
@@ -7,7 +7,7 @@ module Fastlane
7
7
  UI.message("Getting changelog for #{params[:version]}")
8
8
  reading_changelog = false
9
9
  changes = ''
10
- changelog_lines = File.readlines('../CHANGELOG.md')
10
+ changelog_lines = File.readlines(params[:changelog_path])
11
11
  changelog_lines.each do |line|
12
12
  start_token = '# ['
13
13
  if reading_changelog
@@ -53,7 +53,7 @@ module Fastlane
53
53
  end
54
54
 
55
55
  def self.supported?(_platform)
56
- [:ios].include?(platform)
56
+ true
57
57
  end
58
58
  end
59
59
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.11"
3
+ VERSION = "0.1.13"
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.1.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -228,6 +228,7 @@ extra_rdoc_files: []
228
228
  files:
229
229
  - README.md
230
230
  - lib/fastlane/plugin/stream_actions.rb
231
+ - lib/fastlane/plugin/stream_actions/actions/custom_match.rb
231
232
  - lib/fastlane/plugin/stream_actions/actions/is_check_required.rb
232
233
  - lib/fastlane/plugin/stream_actions/actions/pod_push_safely.rb
233
234
  - lib/fastlane/plugin/stream_actions/actions/read_changelog.rb