fastlane-plugin-stream_actions 0.3.19 → 0.3.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58829bfc8336082d845a1149c84600297b5f6553a876d4dd8ae373397a072024
4
- data.tar.gz: 79c91900f0b4857b73fedd25bec529babf3241e46687e5b9172638f41c63a91a
3
+ metadata.gz: dcc8ca6b0e93fc72fea6d980559236d56b07c9b1dc638de46f8c11bef4b40868
4
+ data.tar.gz: a2956b90af0c1814e3ac8dd46aa9fd87351d2fedff54e628d17c1d1122547172
5
5
  SHA512:
6
- metadata.gz: 3e2c707eadcd72e6816aba0b99feb0bda51b125a90531de3e26ffa77cc843c9ccb170d824b00042a687cd31c94037728e5ab51a902998ac42faeb0d131bf3c4a
7
- data.tar.gz: 5949908f74180c7b0ebd7e3272393b848216cd51a2fec39b1b76c8bbe501de49c979e310bcbc506c9a20ca177e28cff8c98bfa56164524735511e3d2f7307e6c
6
+ metadata.gz: 52637654a181f0de8f4f7868c01733d69b71a7f088deba13e8fb73f2e8db0038d0ea8a22e1ccfab9a35e419e268722683d105aaa64df47d6b40820a3893d663a
7
+ data.tar.gz: 7b7550bb3f9d0f4c8ac07d114c8db4e8cad4e1c332e774730b87ab9e8cbdd0ccee725b3f563eca32aa927c42e059632e30dc90cb8641a5b7127893c9ac2c9897
@@ -2,7 +2,7 @@ module Fastlane
2
2
  module Actions
3
3
  class IsCheckRequiredAction < Action
4
4
  def self.run(params)
5
- return true if params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
5
+ return true if params[:force_check] || params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
6
6
 
7
7
  UI.message("Checking if check is required for PR ##{params[:github_pr_num]}")
8
8
 
@@ -40,6 +40,12 @@ module Fastlane
40
40
  key: :github_pr_num,
41
41
  description: 'GitHub PR number',
42
42
  optional: true
43
+ ),
44
+ FastlaneCore::ConfigItem.new(
45
+ key: :force_check,
46
+ description: 'GitHub PR number',
47
+ optional: true,
48
+ is_string: false
43
49
  )
44
50
  ]
45
51
  end
@@ -4,16 +4,17 @@ module Fastlane
4
4
  def self.run(params)
5
5
  simulators = FastlaneCore::Simulator.all
6
6
  version_regex = /\((\d+\.)?(\d+\.)?(\*|\d+)\)/
7
- ios_version = params[:device][version_regex]
7
+ ios_version_with_brackets = params[:device][version_regex]
8
8
  device_name = params[:device].sub(version_regex, '').strip
9
9
  udid = nil
10
10
 
11
- if ios_version.nil?
11
+ if ios_version_with_brackets.nil?
12
12
  sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
13
- ios_version = sim.os_version if sim
13
+ ios_version_with_brackets = "(#{sim.os_version})" if sim
14
14
  else
15
+ ios_version = ios_version_with_brackets.delete('()')
15
16
  sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
16
- udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version.delete('()')}'`.to_s.strip if sim.nil?
17
+ udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version}'`.to_s.strip if sim.nil?
17
18
  end
18
19
 
19
20
  udid = sim.udid.to_s.strip unless sim.nil?
@@ -25,7 +26,7 @@ module Fastlane
25
26
 
26
27
  sim.reset if sim && params[:reset]
27
28
  sh("xcrun simctl bootstatus #{udid} -b")
28
- UI.success("Simulator #{device_name} (#{ios_version}) is ready")
29
+ UI.success("Simulator #{device_name} #{ios_version_with_brackets} is ready")
29
30
  udid
30
31
  end
31
32
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.19'
3
+ VERSION = '0.3.20'
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.19
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-11 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list