fastlane_core 0.26.6 → 0.27.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 +4 -4
- data/lib/fastlane_core/provisioning_profile.rb +11 -7
- data/lib/fastlane_core/simulator.rb +31 -0
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc557dea70cf4396af531564ea692984811fffd7
|
4
|
+
data.tar.gz: a37795ee975fe57868ea1a14d5ec8eb6f6be1c06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
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.
|
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
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|