fastlane_core 0.26.6 → 0.27.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
  SHA1:
3
- metadata.gz: a3abb6f45f9a222130ce0c030e787696fcebd9b6
4
- data.tar.gz: 2cfc51e7a738d926d088c9d66a82a919dc4b1ef5
3
+ metadata.gz: dc557dea70cf4396af531564ea692984811fffd7
4
+ data.tar.gz: a37795ee975fe57868ea1a14d5ec8eb6f6be1c06
5
5
  SHA512:
6
- metadata.gz: 7c238e379dcdf23b0def419e75d0fdb0548161d834c28c0afddcaf3665cc25c32ab4de2e6fa582907fefb0aa8b117e9887cafc57d4f672c2b1e911845b251597
7
- data.tar.gz: ae014f2b1ce7cbbdd80b3067a9f521beea00ac3471cea147e35807d3a4e4368d5e09463498b6a4a8e65b08ecca6b95f696cd7938c85d13afc0f51ef3f901d8e8
6
+ metadata.gz: 15bd67b4b001b149d8b906f8aefa91a75832a3aca9f6f5156451dd4db884629b40c3d17e371135502c9e2d251a86c83b7fab3df2efb292a0b01d6356d2505916
7
+ data.tar.gz: da6c39bb8b52fbc7c436e65377b0289cecc7fbb00ea84547c0e50bb940ac0f4d67a433ce2eba70893b6d6d7aaacfeed1c40afd9bace41c5f82eb41476c736002
@@ -38,17 +38,21 @@ module FastlaneCore
38
38
  parse(path).fetch("UUID")
39
39
  end
40
40
 
41
+ def profiles_path
42
+ path = File.expand_path("~") + "/Library/MobileDevice/Provisioning Profiles/"
43
+ # If the directory doesn't exist, create it first
44
+ unless File.directory?(path)
45
+ FileUtils.mkdir_p(path)
46
+ end
47
+
48
+ return path
49
+ end
50
+
41
51
  # Installs a provisioning profile for Xcode to use
42
52
  def install(path)
43
53
  Helper.log.info "Installing provisioning profile..."
44
- profile_path = File.expand_path("~") + "/Library/MobileDevice/Provisioning Profiles/"
45
54
  profile_filename = uuid(path) + ".mobileprovision"
46
- destination = profile_path + profile_filename
47
-
48
- # If the directory doesn't exist, create it first
49
- unless File.directory?(profile_path)
50
- FileUtils.mkdir_p(profile_path)
51
- end
55
+ destination = File.join(profiles_path, profile_filename)
52
56
 
53
57
  if path != destination
54
58
  # copy to Xcode provisioning profile directory
@@ -39,6 +39,37 @@ module FastlaneCore
39
39
  def clear_cache
40
40
  @devices = nil
41
41
  end
42
+
43
+ # The code below works from Xcode 7 on
44
+ # def all
45
+ # Helper.log.info "Fetching available devices" if $verbose
46
+
47
+ # @devices = []
48
+ # output = ''
49
+ # Open3.popen3('xcrun simctl list devices --json') do |stdin, stdout, stderr, wait_thr|
50
+ # output = stdout.read
51
+ # end
52
+
53
+ # begin
54
+ # data = JSON.parse(output)
55
+ # rescue => ex
56
+ # Helper.log.error ex
57
+ # Helper.log.error "xcrun simctl CLI broken, run `xcrun simctl list devices` and make sure it works".red
58
+ # raise "xcrun simctl not working.".red
59
+ # end
60
+
61
+ # data["devices"].each do |ios_version, l|
62
+ # l.each do |device|
63
+ # next if device['availability'].include?("unavailable")
64
+ # next unless ios_version.include?("iOS")
65
+
66
+ # os = ios_version.gsub("iOS ", "").strip
67
+ # @devices << Device.new(name: device['name'], ios_version: os, udid: device['udid'])
68
+ # end
69
+ # end
70
+
71
+ # return @devices
72
+ # end
42
73
  end
43
74
 
44
75
  # Use the UDID for the given device when setting the destination
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.26.6"
2
+ VERSION = "0.27.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.6
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json