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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e17a57f2e1b0ff1083d58d23717995d26796843c633231ba41430b877116fb02
4
- data.tar.gz: '017846203dca650cb4d1d70f6da80c81f2aef1369b08e3b9443d6f4479ea1a79'
3
+ metadata.gz: 90a9e367b6c4f8fdebf950f90e2c8a5132e84f70b8e29e7f1fd9f7e0d35ff844
4
+ data.tar.gz: 1798f2157c42c4c0d127205b911f5bc8b4ed11216c68385d7f22156f6a1253e9
5
5
  SHA512:
6
- metadata.gz: 6566a4d2f8837546c119bdb90e4f2013bd4d8b1f499342a6330c4e032b9a9c8099af321ce97c5b601a5ef2b35aa52f33dd74f2475df8ace7290cf66781c5481d
7
- data.tar.gz: b9966803a099e1678eb635a4c0f6bca4b211b5147e3e268443a022124d6c673c9423e6e27d81f93fefda79f3986111cd8f1dc9de10521e615356ffda4a346d1a
6
+ metadata.gz: d9ef8d640a6385c091b2a4829bd45f8826bdf4ad142f496a2b19a5d18c4e878a4427d3e02f452a975ae2b63dc38dca89cf78ee6c34140fa56172597e145eb556
7
+ data.tar.gz: b2af15e0226b095f38b6af3c8c77be9453756c816db65980fb0abf20fcc0c0793e8b30302ceb8f848c6a4390eee09e87230565323a914fedfc7b01a8eacd6104
@@ -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, remove_unused_runtimes: delete_unused_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)
@@ -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:, remove_unused_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 remove_unused_runtimes
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 remove_unused_runtimes
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module CreateSimulatorDevices
5
- VERSION = '0.0.19'
5
+ VERSION = '0.0.20'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-create_simulator_devices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitalii Budnik