fastlane-plugin-create_simulator_devices 0.0.9 → 0.0.11
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/models/apple_build_version.rb +4 -5
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb +3 -3
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runtime_helper.rb +1 -1
- 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: 97c45d507e589509620dd5bfc35a27ae50948ebcba6c886b056b940b3da84a4a
|
4
|
+
data.tar.gz: cc4c4d2c65c49341a01f28c36df7c99713b78c493ad66272fad69570feaf2b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6e1da7e6f5a89b38f0ae6a180e2a1d9cda9c5bbf7fcdb1bc1bad8e98e947acf7bff35818ec5eb435e676fe486efa5b28ffa6e6c9dd8c1cb59dea8184c1a907
|
7
|
+
data.tar.gz: c0ad977064e5be87a3d0003db5de5ff10592fe40792c1c718209dd61f9df0498a7ac2eda1ed659f5529ebcfa619a04891608c3cab90072f64e43f91a01e71eba
|
@@ -50,16 +50,15 @@ module Fastlane
|
|
50
50
|
def almost_equal?(other)
|
51
51
|
return false if other.nil?
|
52
52
|
|
53
|
-
|
54
|
-
rhs_build_version = other.to_s
|
53
|
+
rhs_build_version = AppleBuildVersion.new(other.to_s)
|
55
54
|
|
56
55
|
lhs_is_beta = beta?
|
57
|
-
rhs_is_beta =
|
56
|
+
rhs_is_beta = rhs_build_version.beta?
|
58
57
|
|
59
|
-
return self == other unless lhs_is_beta && rhs_is_beta &&
|
58
|
+
return self == other unless lhs_is_beta && rhs_is_beta && @build_version.length == rhs_build_version.to_s.length
|
60
59
|
|
61
60
|
# Take only leading chars up to the first letter included e.g. 22C146 -> 22C
|
62
|
-
|
61
|
+
minor_version == rhs_build_version.minor_version
|
63
62
|
end
|
64
63
|
|
65
64
|
def minor_version
|
data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb
CHANGED
@@ -53,7 +53,7 @@ module Fastlane
|
|
53
53
|
available_simulator_devices = matched_devices.map(&:available_device)
|
54
54
|
Actions.lane_context[Actions::SharedValues::AVAILABLE_SIMULATOR_DEVICES] = available_simulator_devices
|
55
55
|
|
56
|
-
|
56
|
+
matched_devices.map(&:description)
|
57
57
|
end
|
58
58
|
|
59
59
|
def log_matched_devices(matched_devices:)
|
@@ -144,14 +144,14 @@ module Fastlane
|
|
144
144
|
available_device_types = shell_helper.available_device_types
|
145
145
|
|
146
146
|
device_os_version = device[/ \(([\d.]*?)\)$/, 1]
|
147
|
-
device_name = device.delete_suffix(" (#{device_os_version})").strip
|
147
|
+
device_name = device_os_version.nil? ? device : device.delete_suffix(" (#{device_os_version})").strip
|
148
148
|
|
149
149
|
device_type = available_device_types.detect do |available_device_type|
|
150
150
|
device_name == available_device_type.name
|
151
151
|
end
|
152
152
|
|
153
153
|
unless device_type
|
154
|
-
UI.important("Device type not found for device #{device}")
|
154
|
+
UI.important("Device type not found for device #{device}. Available device types: #{available_device_types.map(&:name).join(', ')}.")
|
155
155
|
return nil
|
156
156
|
end
|
157
157
|
|
data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runtime_helper.rb
CHANGED
@@ -199,7 +199,7 @@ module Fastlane
|
|
199
199
|
sdk_platform: sdk.platform,
|
200
200
|
os_name: required_device.os_name,
|
201
201
|
product_version: runtime_version || sdk.product_version,
|
202
|
-
product_build_version
|
202
|
+
product_build_version: product_build_version,
|
203
203
|
is_latest: sdk.product_build_version.almost_equal?(product_build_version)
|
204
204
|
)
|
205
205
|
end
|