fastlane-plugin-stream_actions 0.3.42 → 0.3.44

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: 374b135474111aaf84a321bdb82a6f96105b7db75bbf2ac3793b588a61c42728
4
- data.tar.gz: df090e406e1ba7d1c36b5ee8875faec2212808f3683a58f37fc4edb1f90cf2c8
3
+ metadata.gz: b39fdd032145ea7316d3d612583d9564076c7af241ff0ad8c39fcd3691a11c1f
4
+ data.tar.gz: 17872027046fff57de18d711c7de280b3f57a95c663937b026b2ce1037a534fd
5
5
  SHA512:
6
- metadata.gz: a6feab6e28f7c8734a6361b94a9d90e38c44cde0b8526f3e2821491211472bea19b5cdadfa6a5321bb5cb716858675fa6bc67a54ebb986f738f441dca9b52e0f
7
- data.tar.gz: f55efa6df99c473b300ceaf7dec15867cd2e457ddb5afbfe9caa9a92d173cf295fc80b623c1400a2bf09bc7343622bd7a8f111042f2dfeacc79508f35cfea0a4
6
+ metadata.gz: a6bb99fd501151e0fa4b2d40d080aa5077fa1cdc283a15e6d28b1710761ab16a1ac76ed8be4cc13c48a3b51bd9f398753489097dfc15197b161b5d59e97e2e25
7
+ data.tar.gz: a399d4c99402195e5a89073a5ec0b0658f2cd74c1261c29546736f3ff0d6bfd9dfba248332bdd7eae268db0b7d1b44c2165d52612f7b34f8a967da6861ffc262
@@ -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
@@ -10,7 +10,7 @@ module Fastlane
10
10
  metrics_dir = 'metrics'
11
11
  FileUtils.remove_dir(metrics_dir, force: true)
12
12
  sdk_size_path = "#{metrics_dir}/#{params[:github_repo].split('/').last}-size.json"
13
- sh("git clone git@github.com:GetStream/apple-internal-metrics.git #{metrics_dir}/")
13
+ sh("git clone git@github.com:GetStream/stream-internal-metrics.git #{metrics_dir}/")
14
14
  is_release = other_action.current_branch.include?('release/')
15
15
  benchmark_config = JSON.parse(File.read(sdk_size_path))
16
16
  benchmark_key = is_release ? 'release' : 'develop'
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.42'
3
+ VERSION = '0.3.44'
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.44
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