fastlane-plugin-maestro 0.0.8 → 0.0.9
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: 879f6017ea772da52bf9e047674cb50f63c344e106db0f2115f8f15b0bfa099c
|
4
|
+
data.tar.gz: 33c6c7a9992458f04a55702d6fb13d36decdfed839fa5ba371bc5fbc408808a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679dfa79d51817872dc09bc270c29fee1dd127d012de8efa8e2728305e9959c7be7bcfdb65d3b01d8b5973e8f62041f0ee00c0de4d7c28cabe8c64219cad5d6e
|
7
|
+
data.tar.gz: c6568182717e929857ec9d6a3b95d5cd65c8b405cb81ccb985fb4d47a39d29c99a9906af44378c338cc86e737981a21e9f94061d3d16bf1ce7ed10fa8a9bc780
|
@@ -23,16 +23,16 @@ module Fastlane
|
|
23
23
|
# Manually filter devices
|
24
24
|
existing_device = available_devices.find { |d| d.name == device_name && d.os == runtime.identifier }
|
25
25
|
if existing_device
|
26
|
-
if existing_device.state == :
|
27
|
-
UI.message("Device #{device_name} is
|
26
|
+
if existing_device.state == :shutdown
|
27
|
+
UI.message("Device #{device_name} is shutdown. Booting device…")
|
28
|
+
existing_device.boot
|
29
|
+
existing_device.wait { |d| d.state == :booted }
|
28
30
|
patch_device_settings(existing_device, params)
|
29
31
|
UI.message("Installing app #{params[:app_path]} on the simulator")
|
30
32
|
existing_device.install(params[:app_path])
|
31
33
|
return existing_device
|
32
|
-
elsif
|
33
|
-
UI.message("Device #{device_name} is
|
34
|
-
existing_device.boot
|
35
|
-
existing_device.wait { |d| d.state == :booted }
|
34
|
+
elsif existing_device.state == :booted
|
35
|
+
UI.message("Device #{device_name} is already running. Patching settings…")
|
36
36
|
patch_device_settings(existing_device, params)
|
37
37
|
UI.message("Installing app #{params[:app_path]} on the simulator")
|
38
38
|
existing_device.install(params[:app_path])
|
@@ -6,12 +6,19 @@ module Fastlane
|
|
6
6
|
class Runner
|
7
7
|
|
8
8
|
def self.run(options)
|
9
|
-
|
9
|
+
# Check if maestro is installed
|
10
|
+
if command?("maestro")
|
11
|
+
# Get path to maestro binary
|
12
|
+
maestro_path = `which maestro | xargs`.strip
|
13
|
+
else
|
14
|
+
UI.error("Maestro is not installed. Please run `bundle exec fastlane run maestro command:'install'`")
|
15
|
+
return
|
16
|
+
end
|
10
17
|
command = [maestro_path]
|
11
18
|
|
12
19
|
unless options[:device].empty? || options[:device].nil?
|
13
20
|
command.push("--device", options[:device])
|
14
|
-
|
21
|
+
end
|
15
22
|
|
16
23
|
command.push("test")
|
17
24
|
|