fastlane-plugin-stream_actions 0.2.2 → 0.2.4
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: 61cac1bdd8a97e86a9b3d61aab4f150b7de21a54c2e011b19f2ceb051cdfcf95
|
4
|
+
data.tar.gz: 8b898121704fcfc80e79f798ebea18d611fa9354b307d2bcc149a315a18b4844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76d69854c1f4ea9243430b204acaea7946846879908d7324facc8f2e1ab6fba1243d85a0a430fc87abf2351ce51de3a4168f5b669e205b417fba1634b8b454d
|
7
|
+
data.tar.gz: 338b500a79c0a649dcf8f1837cc93b8f6572278f6525b1553e84bb7e43aeeca51e99d093de020b84826f6b4d98340018d8acd3e0f9385a8465dc9e6d5c7284a5
|
@@ -5,26 +5,26 @@ module Fastlane
|
|
5
5
|
simulators = FastlaneCore::Simulator.all
|
6
6
|
version_regex = /\((\d+\.)?(\d+\.)?(\*|\d+)\)/
|
7
7
|
ios_version = params[:device][version_regex]
|
8
|
+
device_name = params[:device].sub(version_regex, '').strip
|
9
|
+
udid = nil
|
8
10
|
|
9
11
|
if ios_version.nil?
|
10
12
|
sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
|
11
13
|
else
|
12
14
|
sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
|
13
|
-
if sim.nil?
|
14
|
-
device_name = params[:device].sub(version_regex, '').strip
|
15
|
-
sh("xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version.delete('()')}'")
|
16
|
-
sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
|
17
|
-
end
|
15
|
+
udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version.delete('()')}'` if sim.nil?
|
18
16
|
end
|
19
17
|
|
20
|
-
|
18
|
+
udid = sim.udid unless sim.nil?
|
19
|
+
|
20
|
+
if sim.nil? && (udid.nil? || udid.empty?)
|
21
21
|
simulators.map! { |d| "#{d.name} (#{d.os_version})" }.join("\n")
|
22
22
|
UI.user_error!("Simulator #{params[:device]} not found \nAvailable simulators: \n#{simulators}")
|
23
23
|
end
|
24
24
|
|
25
|
-
sim.reset if params[:reset]
|
26
|
-
sh("xcrun simctl bootstatus #{
|
27
|
-
UI.success("Simulator #{
|
25
|
+
sim.reset if sim && params[:reset]
|
26
|
+
sh("xcrun simctl bootstatus #{udid} -b")
|
27
|
+
UI.success("Simulator #{device_name} (#{ios_version}) is ready")
|
28
28
|
end
|
29
29
|
|
30
30
|
#####################################################
|
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.2.
|
4
|
+
version: 0.2.4
|
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-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|