fastlane-plugin-stream_actions 0.1.26 → 0.2.0

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: 0beeb883953224938534a7915ab9d09fc2ea3910734441ce85ba30cf5a1176a3
4
- data.tar.gz: 6a0b15ecbca915810ce149000e94accd287ba38350cf503f8af70d2cb2966fe3
3
+ metadata.gz: bd3a8bb84374fa2dabfec452d061c770a0914634d0a50a3fe61ca6f45bf7de1d
4
+ data.tar.gz: e6ff6403ce64a6883bbf12656e1f96075dd323416368c5ec5693e3c28612ce1d
5
5
  SHA512:
6
- metadata.gz: 5e3521ceb6a20beda876d92c22ab41354d7f7348f3ae9d1a68bde0a57e08c4d150d223f96f802b59ee751ba023c7c541ccb32f7793bc2e2ed34319b41f534c8c
7
- data.tar.gz: b5790112fc6149e11f00878a0ae0f84ba319acabd28189fecb9cd0580e70d1567ecfb4d4241b4c39981080c5b847b0f191edbaf94a35d2b08c785eb42136da56
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.26"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  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.1.26
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: 2022-12-16 00:00:00.000000000 Z
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