fastlane-plugin-stream_actions 0.3.18 → 0.3.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc8ca6b0e93fc72fea6d980559236d56b07c9b1dc638de46f8c11bef4b40868
|
4
|
+
data.tar.gz: a2956b90af0c1814e3ac8dd46aa9fd87351d2fedff54e628d17c1d1122547172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,19 +4,20 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
simulators = FastlaneCore::Simulator.all
|
6
6
|
version_regex = /\((\d+\.)?(\d+\.)?(\*|\d+)\)/
|
7
|
-
|
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
|
11
|
+
if ios_version_with_brackets.nil?
|
12
12
|
sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
|
13
|
-
|
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
|
17
|
+
udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version}'`.to_s.strip if sim.nil?
|
17
18
|
end
|
18
19
|
|
19
|
-
udid = sim.udid unless sim.nil?
|
20
|
+
udid = sim.udid.to_s.strip unless sim.nil?
|
20
21
|
|
21
22
|
if sim.nil? && (udid.nil? || udid.empty?)
|
22
23
|
simulators.map! { |d| "#{d.name} (#{d.os_version})" }.join("\n")
|
@@ -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}
|
29
|
+
UI.success("Simulator #{device_name} #{ios_version_with_brackets} is ready")
|
29
30
|
udid
|
30
31
|
end
|
31
32
|
|
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.
|
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-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xctest_list
|