fastlane-plugin-stream_actions 0.1.26 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd3a8bb84374fa2dabfec452d061c770a0914634d0a50a3fe61ca6f45bf7de1d
|
4
|
+
data.tar.gz: e6ff6403ce64a6883bbf12656e1f96075dd323416368c5ec5693e3c28612ce1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b33bbb15853a3890ca9871e7b4dbc5417a08476932816e69cf89063599e4bb7d40d065a8d00f643654981d9cd7494b86087f4f395f31a3be68f8d17f2687ff7d
|
7
|
+
data.tar.gz: 656fdb0fab34a8c6d4d5783415d5f942313fb1ea47aebc0fef97d52e308006f4cc9c8289a38bffbe3d548b6b54a0219f99a10660090adfe52cb93bc61b100eb5
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class PrepareSimulatorAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
version_set = params[:device].include?('(')
|
6
|
+
sim = FastlaneCore::Simulator.all.detect do |d|
|
7
|
+
params[:device] == (version_set ? "#{d.name} (#{d.os_version})" : d.name)
|
8
|
+
end
|
9
|
+
sim.reset if params[:reset]
|
10
|
+
sh("xcrun simctl bootstatus #{sim.udid} -b")
|
11
|
+
end
|
12
|
+
|
13
|
+
#####################################################
|
14
|
+
# @!group Documentation
|
15
|
+
#####################################################
|
16
|
+
|
17
|
+
def self.description
|
18
|
+
'Prepares simulator for tests'
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.available_options
|
22
|
+
[
|
23
|
+
FastlaneCore::ConfigItem.new(
|
24
|
+
key: :device,
|
25
|
+
description: 'Simulator name or name with version',
|
26
|
+
is_string: false
|
27
|
+
),
|
28
|
+
FastlaneCore::ConfigItem.new(
|
29
|
+
key: :reset,
|
30
|
+
description: 'Reset simulator contents',
|
31
|
+
optional: true,
|
32
|
+
is_string: false
|
33
|
+
)
|
34
|
+
]
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.supported?(_platform)
|
38
|
+
true
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-stream_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -235,6 +235,7 @@ files:
|
|
235
235
|
- lib/fastlane/plugin/stream_actions/actions/custom_match.rb
|
236
236
|
- lib/fastlane/plugin/stream_actions/actions/is_check_required.rb
|
237
237
|
- lib/fastlane/plugin/stream_actions/actions/pod_push_safely.rb
|
238
|
+
- lib/fastlane/plugin/stream_actions/actions/prepare_simulator.rb
|
238
239
|
- lib/fastlane/plugin/stream_actions/actions/read_changelog.rb
|
239
240
|
- lib/fastlane/plugin/stream_actions/actions/release_ios_sdk.rb
|
240
241
|
- lib/fastlane/plugin/stream_actions/actions/retrieve_xctest_names.rb
|