fastlane-plugin-create_simulator_devices 0.0.19 → 0.0.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 +4 -4
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb +1 -1
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runtime_helper.rb +5 -3
- data/lib/fastlane/plugin/create_simulator_devices/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90a9e367b6c4f8fdebf950f90e2c8a5132e84f70b8e29e7f1fd9f7e0d35ff844
|
|
4
|
+
data.tar.gz: 1798f2157c42c4c0d127205b911f5bc8b4ed11216c68385d7f22156f6a1253e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9ef8d640a6385c091b2a4829bd45f8826bdf4ad142f496a2b19a5d18c4e878a4427d3e02f452a975ae2b63dc38dca89cf78ee6c34140fa56172597e145eb556
|
|
7
|
+
data.tar.gz: b2af15e0226b095f38b6af3c8c77be9453756c816db65980fb0abf20fcc0c0793e8b30302ceb8f848c6a4390eee09e87230565323a914fedfc7b01a8eacd6104
|
data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb
CHANGED
|
@@ -46,7 +46,7 @@ module Fastlane
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# Install missing runtimes if needed.
|
|
49
|
-
runtime_helper.install_missing_runtimes(required_devices, remove_cached_runtimes: remove_cached_runtimes,
|
|
49
|
+
runtime_helper.install_missing_runtimes(required_devices, remove_cached_runtimes: remove_cached_runtimes, delete_unused_runtimes: delete_unused_runtimes)
|
|
50
50
|
|
|
51
51
|
# Create missing devices for required devices.
|
|
52
52
|
create_missing_devices(required_devices)
|
data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runtime_helper.rb
CHANGED
|
@@ -46,14 +46,14 @@ module Fastlane
|
|
|
46
46
|
shell_helper.simctl_devices_for_runtimes(force: true)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
def install_missing_runtimes(required_devices, remove_cached_runtimes:,
|
|
49
|
+
def install_missing_runtimes(required_devices, remove_cached_runtimes:, delete_unused_runtimes:)
|
|
50
50
|
needed_runtimes = required_devices.filter_map(&:required_runtime).uniq
|
|
51
51
|
|
|
52
52
|
missing_runtimes = missing_runtimes(needed_runtimes)
|
|
53
53
|
|
|
54
54
|
if missing_runtimes.empty?
|
|
55
55
|
UI.message('All required runtimes are present. Skipping runtime installation...') if verbose
|
|
56
|
-
delete_unused_runtimes(needed_runtimes) if
|
|
56
|
+
delete_unused_runtimes(needed_runtimes) if delete_unused_runtimes
|
|
57
57
|
return
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -62,6 +62,7 @@ module Fastlane
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Update simctl_runtimes after installing the runtimes.
|
|
65
|
+
shell_helper.stop_core_simulator_services
|
|
65
66
|
shell_helper.installed_runtimes_with_state
|
|
66
67
|
shell_helper.simctl_runtimes(force: true)
|
|
67
68
|
shell_helper.simctl_devices_for_runtimes(force: true)
|
|
@@ -75,7 +76,7 @@ module Fastlane
|
|
|
75
76
|
UI.important("Failed to find/download/install runtime #{missing_runtime.runtime_name}")
|
|
76
77
|
end
|
|
77
78
|
|
|
78
|
-
delete_unused_runtimes(needed_runtimes) if
|
|
79
|
+
delete_unused_runtimes(needed_runtimes) if delete_unused_runtimes
|
|
79
80
|
end
|
|
80
81
|
|
|
81
82
|
def delete_unused_runtimes(needed_runtimes)
|
|
@@ -106,6 +107,7 @@ module Fastlane
|
|
|
106
107
|
shell_helper.simctl_delete_runtime(identifier: unused_simctl_runtime.identifier)
|
|
107
108
|
end
|
|
108
109
|
|
|
110
|
+
shell_helper.stop_core_simulator_services
|
|
109
111
|
shell_helper.installed_runtimes_with_state
|
|
110
112
|
shell_helper.simctl_runtimes(force: true)
|
|
111
113
|
shell_helper.simctl_devices_for_runtimes(force: true)
|