fastlane-plugin-create_simulator_devices 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 +4 -4
- data/lib/fastlane/plugin/create_simulator_devices/actions/create_simulator_devices_action.rb +1 -9
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb +12 -4
- data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/shared_values.rb +11 -0
- data/lib/fastlane/plugin/create_simulator_devices/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064deb16024b762c3de5f9e3d2ca6076b17a63aecc54c2b70bd7b774f97df4e1
|
4
|
+
data.tar.gz: 12d51b6fd42f35557394c4f200a88dd9eab1ad482630d3bfd31c2a28253d0e8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f41c9b2e598d0e7a0c6a8e34c2f911dd1f4338e6ad878ab07e9cd4dedd3380e75c3f4f9c04fa0396d5fdc173681922f6eb981756fb9340fc09ff99698f5ea52f
|
7
|
+
data.tar.gz: 7fc86e17255fdd33f378ab5a80b788ae44279114b1bb215ab7ebb75b691ce3e91357c2e34eac0e18013d7734390a7ac290a47bc99fa24a68938b3a90d97b07d8
|
data/lib/fastlane/plugin/create_simulator_devices/actions/create_simulator_devices_action.rb
CHANGED
@@ -7,10 +7,6 @@ require_relative '../helpers/create_simulator_devices/models'
|
|
7
7
|
|
8
8
|
module Fastlane
|
9
9
|
module Actions
|
10
|
-
module SharedValues
|
11
|
-
AVAILABLE_SIMULATOR_DEVICES = :AVAILABLE_SIMULATOR_DEVICES
|
12
|
-
end
|
13
|
-
|
14
10
|
CreateSimulatorDevices = ::Fastlane::CreateSimulatorDevices
|
15
11
|
|
16
12
|
# Create simulator devices.
|
@@ -34,11 +30,7 @@ module Fastlane
|
|
34
30
|
verbose: verbose
|
35
31
|
)
|
36
32
|
|
37
|
-
|
38
|
-
|
39
|
-
Actions.lane_context[SharedValues::AVAILABLE_SIMULATOR_DEVICES] = available_simulator_devices
|
40
|
-
|
41
|
-
available_simulator_devices
|
33
|
+
runner.run(required_devices)
|
42
34
|
end
|
43
35
|
|
44
36
|
#####################################################
|
data/lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'runtime_helper'
|
4
|
+
require 'fastlane'
|
5
|
+
require_relative 'shared_values'
|
4
6
|
|
5
7
|
module Fastlane
|
6
8
|
# Create simulator devices.
|
@@ -48,14 +50,15 @@ module Fastlane
|
|
48
50
|
|
49
51
|
log_matched_devices(matched_devices: matched_devices)
|
50
52
|
|
51
|
-
matched_devices.map
|
53
|
+
available_simulator_devices = matched_devices.map(&:available_device)
|
54
|
+
Actions.lane_context[Actions::SharedValues::AVAILABLE_SIMULATOR_DEVICES] = available_simulator_devices
|
52
55
|
|
53
|
-
|
54
|
-
|
55
|
-
matched_devices
|
56
|
+
available_simulator_devices.map(&:name)
|
56
57
|
end
|
57
58
|
|
58
59
|
def log_matched_devices(matched_devices:)
|
60
|
+
UI.user_error!('No available devices found') if matched_devices.empty?
|
61
|
+
|
59
62
|
UI.message('Matched devices:')
|
60
63
|
matched_devices.each do |matched_device|
|
61
64
|
device_info = ''
|
@@ -65,6 +68,11 @@ module Fastlane
|
|
65
68
|
end
|
66
69
|
UI.message(" #{matched_device.description}: #{matched_device.available_device.description}#{device_info}")
|
67
70
|
end
|
71
|
+
|
72
|
+
matched_devices_names = matched_devices
|
73
|
+
.map { |matched_device| matched_device.available_device.name }
|
74
|
+
.join(', ')
|
75
|
+
UI.message("Available simulator devices: #{matched_devices_names}")
|
68
76
|
end
|
69
77
|
|
70
78
|
def delete_unavailable_devices
|
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.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitalii Budnik
|
@@ -31,6 +31,7 @@ files:
|
|
31
31
|
- lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/models/xcodebuild/sdk.rb
|
32
32
|
- lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runner.rb
|
33
33
|
- lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/runtime_helper.rb
|
34
|
+
- lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/shared_values.rb
|
34
35
|
- lib/fastlane/plugin/create_simulator_devices/helpers/create_simulator_devices/shell_helper.rb
|
35
36
|
- lib/fastlane/plugin/create_simulator_devices/version.rb
|
36
37
|
homepage:
|