fastlane-plugin-stream_actions 0.3.42 → 0.3.43

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: 374b135474111aaf84a321bdb82a6f96105b7db75bbf2ac3793b588a61c42728
4
- data.tar.gz: df090e406e1ba7d1c36b5ee8875faec2212808f3683a58f37fc4edb1f90cf2c8
3
+ metadata.gz: 2c2d6f09374fa39e0829509406f8dda6c9ed0e036fb01dba0a353cd78829c721
4
+ data.tar.gz: 269a574b41262d9c91fdefd499c95752a8b02bc713d4a12b79f9e05dfbba5bdd
5
5
  SHA512:
6
- metadata.gz: a6feab6e28f7c8734a6361b94a9d90e38c44cde0b8526f3e2821491211472bea19b5cdadfa6a5321bb5cb716858675fa6bc67a54ebb986f738f441dca9b52e0f
7
- data.tar.gz: f55efa6df99c473b300ceaf7dec15867cd2e457ddb5afbfe9caa9a92d173cf295fc80b623c1400a2bf09bc7343622bd7a8f111042f2dfeacc79508f35cfea0a4
6
+ metadata.gz: 6ad5c9b54c1e1f6c1b8b97408a01749cc5285c896a6ad4e6dcf7ae5633c0e3f6d34f7be2c289ed402fe3f00f9989799b872c3a72ce2be35fbadedd116a7a1941
7
+ data.tar.gz: 4c49626b2bd0f897d49a877cb1ede5887cc71c60bc8179b57c4a1340b11a29bb7e303d218aebf477c29029da905e9fc26c7f6b3673727aa03d9180ecd2afd030
@@ -0,0 +1,44 @@
1
+ module Fastlane
2
+ module Actions
3
+ class InstallIosRuntimeAction < Action
4
+ def self.run(params)
5
+ runtimes = `xcrun simctl runtime list -j`
6
+ UI.message("👉 Runtime list:\n#{runtimes}")
7
+ simulators = JSON.parse(runtimes).select do |_, sim|
8
+ sim['platformIdentifier'].end_with?('iphonesimulator') && sim['version'] == params[:version] && sim['state'] == 'Ready'
9
+ end
10
+
11
+ if simulators.empty?
12
+ Dir.chdir('..') do
13
+ sh("echo 'iOS #{params[:version]} Simulator' | ipsw download xcode --sim") if Dir['*.dmg'].first.nil?
14
+ sh("./Scripts/install_ios_runtime.sh #{Dir['*.dmg'].first}")
15
+ UI.success("iOS #{params[:version]} Runtime successfuly installed")
16
+ end
17
+ else
18
+ UI.important("iOS #{params[:version]} Runtime already exists")
19
+ end
20
+ end
21
+
22
+ #####################################################
23
+ # @!group Documentation
24
+ #####################################################
25
+
26
+ def self.description
27
+ 'Install iOS Runtime'
28
+ end
29
+
30
+ def self.available_options
31
+ [
32
+ FastlaneCore::ConfigItem.new(
33
+ key: :version,
34
+ description: 'iOS Version'
35
+ )
36
+ ]
37
+ end
38
+
39
+ def self.is_supported?(platform)
40
+ [:ios].include?(platform)
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.42'
3
+ VERSION = '0.3.43'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.42
4
+ version: 0.3.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
@@ -236,6 +236,7 @@ files:
236
236
  - lib/fastlane/plugin/stream_actions/actions/current_branch.rb
237
237
  - lib/fastlane/plugin/stream_actions/actions/custom_match.rb
238
238
  - lib/fastlane/plugin/stream_actions/actions/git_status.rb
239
+ - lib/fastlane/plugin/stream_actions/actions/install_ios_runtime.rb
239
240
  - lib/fastlane/plugin/stream_actions/actions/is_check_required.rb
240
241
  - lib/fastlane/plugin/stream_actions/actions/pod_push_safely.rb
241
242
  - lib/fastlane/plugin/stream_actions/actions/pr_comment.rb