fastlane-plugin-create_simulator_devices 0.0.2 → 0.0.3

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: 4503cde1b1fa249acb89e95512569c44328ddf78b4351553c7f19adfbc87c340
4
- data.tar.gz: 101c638d175f6c745476f8e352be9e85c3159037e87b427fcdb75dd3036d9a5c
3
+ metadata.gz: 183e9be16f150879580a4fcae13f04400bc208ec53ae82a65e0f3382ea3768b3
4
+ data.tar.gz: 6a2f393b2870443adb652849f3388bda17aab200843b9aeb915c846fad9c78ab
5
5
  SHA512:
6
- metadata.gz: daba564bbe2ca199f503b4219b1049999a687b6294c669176e2554fa78757cd41387f99d2d379c30c831a6111f6fbd49725b3485c10d91a380e4934d04d39f42
7
- data.tar.gz: 0f9c5aa1a972feb31812672cdcae916385f9e8ec9c9d17dc8b2c683db2fb5880a3e8061ef16b0f337848f55a7dee85674bd0aad2d0bff9bc764a431dec177f19
6
+ metadata.gz: 12c5864ee150a6b6da8bb0b704319c273bcd55e30cae3aac91e6de8264bc7bc90074f9e270fea51a1da3f219c11f2f37c67b62d51faf00201d044ea90fbfcf8e
7
+ data.tar.gz: 4e69bb53c759c507c9ea546e6ce4a12b1669f55ee731385764df17026f259b07cb5af5a9b102633c05ff99af6a682a33ee643b23e37f7b472197497d2a207e76
@@ -58,6 +58,8 @@ module Fastlane
58
58
 
59
59
  available_devices = shell_helper.available_devices_for_runtimes[required_device.available_runtime.identifier.to_sym]
60
60
 
61
+ return [] if available_devices.nil?
62
+
61
63
  available_devices.detect { |device| device.device_type_identifier == required_device.device_type.identifier }
62
64
  end
63
65
 
@@ -35,6 +35,7 @@ module Fastlane
35
35
  end
36
36
 
37
37
  shell_helper.available_runtimes(force: true)
38
+ shell_helper.available_devices_for_runtimes(force: true)
38
39
  end
39
40
 
40
41
  def install_missing_runtimes(required_devices)
@@ -51,6 +52,7 @@ module Fastlane
51
52
  # Update available_runtimes after installing the runtimes.
52
53
  shell_helper.installed_runtimes_with_state
53
54
  shell_helper.available_runtimes(force: true)
55
+ shell_helper.available_devices_for_runtimes(force: true)
54
56
 
55
57
  # Check if missing runtimes are available after installing
56
58
  missing_runtimes = missing_runtimes(missing_runtimes)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module CreateSimulatorDevices
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitalii Budnik