fastlane_core 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane_core.rb +1 -0
- data/lib/fastlane_core/provisioning_profile.rb +65 -0
- data/lib/fastlane_core/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0011ee01a95219c1499b3aa939d022c704135857
|
4
|
+
data.tar.gz: 80d7947e7d0b5bbb1cc01c324ba6ef8f619bcb41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 062536d714a3075457181888db0899382d0c557321ff9192f3552f571b5321a1d42fa82493676e97a183f766d1cf188fc3752598cf9b00d8b68018ba442f7d06
|
7
|
+
data.tar.gz: e170508572acede0f0bd43264150a7427cf2042cfb60d8a265830aaec47fd4350f5e578f25b46326b37e7300072675d1595be1bcd41890d2f37ae00d5e7c8a62
|
data/lib/fastlane_core.rb
CHANGED
@@ -0,0 +1,65 @@
|
|
1
|
+
module FastlaneCore
|
2
|
+
class ProvisioningProfile
|
3
|
+
class << self
|
4
|
+
# @return (Hash) The hash with the data of the provisioning profile
|
5
|
+
# @example
|
6
|
+
# {"AppIDName"=>"My App Name",
|
7
|
+
# "ApplicationIdentifierPrefix"=>["5A997XSAAA"],
|
8
|
+
# "CreationDate"=>#<DateTime: 2015-05-24T20:38:03+00:00 ((2457167j,74283s,0n),+0s,2299161j)>,
|
9
|
+
# "DeveloperCertificates"=>[#<StringIO:0x007f944b9666f8>],
|
10
|
+
# "Entitlements"=>
|
11
|
+
# {"keychain-access-groups"=>["5A997XSAAA.*"],
|
12
|
+
# "get-task-allow"=>false,
|
13
|
+
# "application-identifier"=>"5A997XAAA.net.sunapps.192",
|
14
|
+
# "com.apple.developer.team-identifier"=>"5A997XAAAA",
|
15
|
+
# "aps-environment"=>"production",
|
16
|
+
# "beta-reports-active"=>true},
|
17
|
+
# "ExpirationDate"=>#<DateTime: 2015-11-25T22:45:50+00:00 ((2457352j,81950s,0n),+0s,2299161j)>,
|
18
|
+
# "Name"=>"net.sunapps.192 AppStore",
|
19
|
+
# "TeamIdentifier"=>["5A997XSAAA"],
|
20
|
+
# "TeamName"=>"SunApps GmbH",
|
21
|
+
# "TimeToLive"=>185,
|
22
|
+
# "UUID"=>"1752e382-53bd-4910-a393-aaa7de0005ad",
|
23
|
+
# "Version"=>1}
|
24
|
+
def parse(path)
|
25
|
+
require 'plist'
|
26
|
+
|
27
|
+
plist = Plist::parse_xml(`security cms -D -i '#{path}'`)
|
28
|
+
if (plist || []).count > 5
|
29
|
+
Helper.log.info("Provisioning profile of app '#{plist['AppIDName']}' with the name '#{plist['Name']}' successfully analysed.".green)
|
30
|
+
plist
|
31
|
+
else
|
32
|
+
Helper.log.error("Error parsing provisioning profile at path '#{path}'".red)
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# @return [String] The UUID of the given provisioning profile
|
38
|
+
def uuid(path)
|
39
|
+
parse(path).fetch("UUID")
|
40
|
+
end
|
41
|
+
|
42
|
+
# Installs a provisioning profile for Xcode to use
|
43
|
+
def install(path)
|
44
|
+
Helper.log.info "Installing provisioning profile..."
|
45
|
+
profile_path = File.expand_path("~") + "/Library/MobileDevice/Provisioning Profiles/"
|
46
|
+
profile_filename = uuid(path) + ".mobileprovision"
|
47
|
+
destination = profile_path + profile_filename
|
48
|
+
|
49
|
+
# If the directory doesn't exist, create it first
|
50
|
+
unless File.directory?(profile_path)
|
51
|
+
FileUtils.mkdir_p(profile_path)
|
52
|
+
end
|
53
|
+
|
54
|
+
# copy to Xcode provisioning profile directory
|
55
|
+
FileUtils.copy(path, destination)
|
56
|
+
|
57
|
+
if File.exists?(destination)
|
58
|
+
return true
|
59
|
+
else
|
60
|
+
raise "Failed installation of provisioning profile at location: #{destination}".red
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
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.
|
4
|
+
version: 0.13.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-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.3.
|
75
|
+
version: 4.3.5
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.3.
|
82
|
+
version: 4.3.5
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: babosa
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.7.
|
131
|
+
version: 0.7.1
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.7.
|
138
|
+
version: 0.7.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: phantomjs
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -303,6 +303,7 @@ files:
|
|
303
303
|
- lib/fastlane_core/itunes_search_api.rb
|
304
304
|
- lib/fastlane_core/itunes_transporter.rb
|
305
305
|
- lib/fastlane_core/languages.rb
|
306
|
+
- lib/fastlane_core/provisioning_profile.rb
|
306
307
|
- lib/fastlane_core/update_checker.rb
|
307
308
|
- lib/fastlane_core/version.rb
|
308
309
|
homepage: https://fastlane.tools
|