fastlane 2.57.0.beta.20170915010002 → 2.57.0.beta.20170916010003

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
  SHA1:
3
- metadata.gz: 2edb706d1e63f871a9cde1ecd4689ba602c7b864
4
- data.tar.gz: 71bf3395c7763ab06fbeacec59f2805b775722a4
3
+ metadata.gz: f09781554806046053c3f9e7de124253f5fc1357
4
+ data.tar.gz: 80db4c420c8c36127a1c9a9c47d1c45cdab9a4c8
5
5
  SHA512:
6
- metadata.gz: 9d2975ce22b2c3df0481a7875d1f32b48a4a8cdba20721103fa9271c291ed7264e4df09db6c5daaebe64d20a34da9e6b1338c16181a8be1852947196ed9032a0
7
- data.tar.gz: 6961bb33ad1c6f3028a883096f3a01e1c3f2197221e97fc563ddf9a5e1604d12a6421d68d362e35f9b05eab1471371ff9f1c02f0a6fa30188e95a3831794065e
6
+ metadata.gz: 9abd913674e64999a999d87ab64ccd264357856400d6a1b131b7624d65b02486a3f30adc840fbe307b11d74e09462667657ccc67c1ee121e3677701225693e88
7
+ data.tar.gz: f6ea59d77585a9a8c7abcdec5b79f187a13798db91c8f80685c0e33f3209f992240555d96eb5a486bb15928df6487c9b152eb8446bdd6b3bbe64a1f8b1fb135a
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.57.0.beta.20170915010002'.freeze
2
+ VERSION = '2.57.0.beta.20170916010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -180,6 +180,13 @@ module FastlaneCore
180
180
  `xcrun simctl erase #{self.udid}`
181
181
  return
182
182
  end
183
+
184
+ def delete
185
+ UI.message("Deleting #{self}")
186
+ `xcrun simctl shutdown #{self.udid}` unless self.state == "Shutdown"
187
+ `xcrun simctl delete #{self.udid}`
188
+ return
189
+ end
183
190
  end
184
191
  end
185
192
 
@@ -206,6 +213,16 @@ module FastlaneCore
206
213
  match.reset if match
207
214
  end
208
215
 
216
+ # Delete all simulators of this type
217
+ def delete_all
218
+ all.each(&:delete)
219
+ end
220
+
221
+ def delete_all_by_version(os_version: nil)
222
+ return false unless os_version
223
+ all.select { |device| device.os_version == os_version }.each(&:delete)
224
+ end
225
+
209
226
  def clear_cache
210
227
  @devices = nil
211
228
  end
@@ -15,13 +15,18 @@ module Snapshot
15
15
 
16
16
  UI.abort_with_message!("User cancelled action") unless sure
17
17
 
18
- devices.each do |device|
19
- _, name, id = device
20
- puts "Removing device #{name} (#{id})"
21
- `xcrun simctl delete #{id}`
18
+ if ios_versions
19
+ ios_versions.each do |version|
20
+ FastlaneCore::Simulator.delete_all_by_version(os_version: version)
21
+ end
22
+ else
23
+ FastlaneCore::Simulator.delete_all
22
24
  end
23
25
 
24
- all_runtime_type = `xcrun simctl list runtimes`.scan(/(.*)\s\(.*\((.*)\)/)
26
+ FastlaneCore::SimulatorTV.delete_all
27
+ FastlaneCore::SimulatorWatch.delete_all
28
+
29
+ all_runtime_type = runtimes
25
30
  # == Runtimes ==
26
31
  # iOS 9.3 (9.3 - 13E233) (com.apple.CoreSimulator.SimRuntime.iOS-9-3)
27
32
  # iOS 10.0 (10.0 - 14A345) (com.apple.CoreSimulator.SimRuntime.iOS-10-0)
@@ -29,6 +34,12 @@ module Snapshot
29
34
  # iOS 10.2 (10.2 - 14C89) (com.apple.CoreSimulator.SimRuntime.iOS-10-2)
30
35
  # tvOS 10.1 (10.1 - 14U591) (com.apple.CoreSimulator.SimRuntime.tvOS-10-1)
31
36
  # watchOS 3.1 (3.1 - 14S471a) (com.apple.CoreSimulator.SimRuntime.watchOS-3-1)
37
+ #
38
+ # Xcode 9 changed the format
39
+ # == Runtimes ==
40
+ # iOS 11.0 (11.0 - 15A5361a) - com.apple.CoreSimulator.SimRuntime.iOS-11-0
41
+ # tvOS 11.0 (11.0 - 15J5368a) - com.apple.CoreSimulator.SimRuntime.tvOS-11-0
42
+ # watchOS 4.0 (4.0 - 15R5363a) - com.apple.CoreSimulator.SimRuntime.watchOS-4-0
32
43
  ios_versions_ids = filter_runtimes(all_runtime_type, 'iOS', ios_versions)
33
44
  tv_version_ids = filter_runtimes(all_runtime_type, 'tvOS')
34
45
  watch_versions_ids = filter_runtimes(all_runtime_type, 'watchOS')
@@ -80,6 +91,10 @@ module Snapshot
80
91
  result.select { |parsed| parsed.length == 3 } # we don't care about those headers
81
92
  end
82
93
 
94
+ def self.runtimes
95
+ Helper.backticks('xcrun simctl list runtimes', print: FastlaneCore::Globals.verbose?).scan(/(.*)\s\(\d.*(com\.apple[^)\s]*)/)
96
+ end
97
+
83
98
  def self.make_phone_watch_pair
84
99
  phones = []
85
100
  watches = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.57.0.beta.20170915010002
4
+ version: 2.57.0.beta.20170916010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-09-15 00:00:00.000000000 Z
18
+ date: 2017-09-16 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier