fastlane_core 0.56.0 → 0.57.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/helper.rb +28 -2
- data/lib/fastlane_core/project.rb +16 -9
- data/lib/fastlane_core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc2a968c27a615a4297d0f237179a993c0cff197
|
4
|
+
data.tar.gz: 41dfae26455a772ffc135daf191036578b4806f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c94e21d69029ca79435960f5d8e5eb05b9e0ba95804acdc1a72510943f8309103cc84fd32de37e639213122ed61195b422b31090ee0f427e0bdf6bdb9436eed4
|
7
|
+
data.tar.gz: e411703427f991b513ae3599ecfc30946a76067af340c46f624b8b5ab7172df723f2a58a1c5c8821a1765caf00ff2c4b927d9ca14faaea038f361a70a44c177d
|
data/lib/fastlane_core/helper.rb
CHANGED
@@ -41,9 +41,9 @@ module FastlaneCore
|
|
41
41
|
|
42
42
|
# Do we run from a bundled fastlane, which contains Ruby and OpenSSL?
|
43
43
|
# Usually this means the fastlane directory is ~/.fastlane/bin/
|
44
|
-
# We set this value via the environment variable `
|
44
|
+
# We set this value via the environment variable `FASTLANE_SELF_CONTAINED`
|
45
45
|
def self.contained_fastlane?
|
46
|
-
ENV["
|
46
|
+
ENV["FASTLANE_SELF_CONTAINED"].to_s == "true"
|
47
47
|
end
|
48
48
|
|
49
49
|
# @return [boolean] true if building in a known CI environment
|
@@ -151,6 +151,32 @@ module FastlaneCore
|
|
151
151
|
return File.join(self.itms_path, 'bin', 'iTMSTransporter')
|
152
152
|
end
|
153
153
|
|
154
|
+
def self.keychain_path(name)
|
155
|
+
# Existing code expects that a keychain name will be expanded into a default path to Libary/Keychains
|
156
|
+
# in the user's home directory. However, this will not allow the user to pass an absolute path
|
157
|
+
# for the keychain value
|
158
|
+
#
|
159
|
+
# So, if the passed value can't be resolved as a file in Library/Keychains, just use it as-is
|
160
|
+
# as the keychain path.
|
161
|
+
#
|
162
|
+
# We need to expand each path because File.exist? won't handle directories including ~ properly
|
163
|
+
#
|
164
|
+
# We also try to append `-db` at the end of the file path, as with Sierra the default Keychain name
|
165
|
+
# has changed for some users: https://github.com/fastlane/fastlane/issues/5649
|
166
|
+
#
|
167
|
+
|
168
|
+
keychain_paths = [
|
169
|
+
File.join(Dir.home, 'Library', 'Keychains', name),
|
170
|
+
File.join(Dir.home, 'Library', 'Keychains', "#{name}-db"),
|
171
|
+
name,
|
172
|
+
"#{name}-db"
|
173
|
+
].map { |path| File.expand_path(path) }
|
174
|
+
|
175
|
+
keychain_path = keychain_paths.find { |path| File.exist?(path) }
|
176
|
+
UI.user_error!("Could not locate the provided keychain. Tried:\n\t#{keychain_paths.join("\n\t")}") unless keychain_path
|
177
|
+
keychain_path
|
178
|
+
end
|
179
|
+
|
154
180
|
# @return the full path to the iTMSTransporter executable
|
155
181
|
def self.itms_path
|
156
182
|
return ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"] if ENV["FASTLANE_ITUNES_TRANSPORTER_PATH"]
|
@@ -173,21 +173,27 @@ module FastlaneCore
|
|
173
173
|
end
|
174
174
|
|
175
175
|
def mac?
|
176
|
-
|
177
|
-
return true if build_settings(key: "PLATFORM_NAME") == "macosx"
|
178
|
-
return true if build_settings(key: "PLATFORM_DISPLAY_NAME") == "macOS"
|
179
|
-
return true if build_settings(key: "PLATFORM_DISPLAY_NAME") == "OS X"
|
180
|
-
false
|
176
|
+
supported_platforms.include?(:macOS)
|
181
177
|
end
|
182
178
|
|
183
179
|
def tvos?
|
184
|
-
|
185
|
-
return true if build_settings(key: "PLATFORM_DISPLAY_NAME").to_s.include? "tvOS"
|
186
|
-
false
|
180
|
+
supported_platforms.include?(:tvOS)
|
187
181
|
end
|
188
182
|
|
189
183
|
def ios?
|
190
|
-
|
184
|
+
supported_platforms.include?(:iOS)
|
185
|
+
end
|
186
|
+
|
187
|
+
def supported_platforms
|
188
|
+
supported_platforms = build_settings(key: "SUPPORTED_PLATFORMS").split
|
189
|
+
supported_platforms.map do |platform|
|
190
|
+
case platform
|
191
|
+
when "macosx" then :macOS
|
192
|
+
when "iphonesimulator", "iphoneos" then :iOS
|
193
|
+
when "watchsimulator", "watchos" then :watchOS
|
194
|
+
when "appletvsimulator", "appletvos" then :tvOS
|
195
|
+
end
|
196
|
+
end.uniq.compact
|
191
197
|
end
|
192
198
|
|
193
199
|
def xcodebuild_parameters
|
@@ -195,6 +201,7 @@ module FastlaneCore
|
|
195
201
|
proj << "-workspace #{options[:workspace].shellescape}" if options[:workspace]
|
196
202
|
proj << "-scheme #{options[:scheme].shellescape}" if options[:scheme]
|
197
203
|
proj << "-project #{options[:project].shellescape}" if options[:project]
|
204
|
+
proj << "-configuration #{options[:configuration].shellescape}" if options[:configuration]
|
198
205
|
|
199
206
|
return proj
|
200
207
|
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.57.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: 2016-11-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -434,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
434
434
|
version: '0'
|
435
435
|
requirements: []
|
436
436
|
rubyforge_project:
|
437
|
-
rubygems_version: 2.
|
437
|
+
rubygems_version: 2.2.2
|
438
438
|
signing_key:
|
439
439
|
specification_version: 4
|
440
440
|
summary: Contains all shared code/dependencies of the fastlane.tools
|