fastlane_core 0.58.0 → 0.59.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e2ff1e344143708003bc03e69a450a30ad102c2
|
4
|
+
data.tar.gz: 6cac75551090b34558637a7c3e482a26e045ff97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdf6070b64167505a82f546845831a25d77e5ea6af9484e867f2c9c1cb75a9553085e198c2708c50d7eb17b69933f3589551bd8465df12e912cf1f99c709207
|
7
|
+
data.tar.gz: 2204538ec1e2856a4276f1c4c3efca5d11e7e85472c57b0f801f9045203d34dbff5776ecfa6d0a6b58ce2f0090e03bff6b417365027a5ee88ad48803adbe50cf
|
data/lib/fastlane_core/helper.rb
CHANGED
@@ -43,7 +43,22 @@ module FastlaneCore
|
|
43
43
|
# Usually this means the fastlane directory is ~/.fastlane/bin/
|
44
44
|
# We set this value via the environment variable `FASTLANE_SELF_CONTAINED`
|
45
45
|
def self.contained_fastlane?
|
46
|
-
ENV["FASTLANE_SELF_CONTAINED"].to_s == "true"
|
46
|
+
ENV["FASTLANE_SELF_CONTAINED"].to_s == "true" && !self.homebrew?
|
47
|
+
end
|
48
|
+
|
49
|
+
# returns true if fastlane was installed from the Fabric Mac app
|
50
|
+
def self.mac_app?
|
51
|
+
ENV["FASTLANE_SELF_CONTAINED"].to_s == "false"
|
52
|
+
end
|
53
|
+
|
54
|
+
# returns true if fastlane was installed via Homebrew
|
55
|
+
def self.homebrew?
|
56
|
+
ENV["FASTLANE_INSTALLED_VIA_HOMEBREW"].to_s == "true"
|
57
|
+
end
|
58
|
+
|
59
|
+
# returns true if fastlane was installed via RubyGems
|
60
|
+
def self.rubygems?
|
61
|
+
!self.bundler? && !self.contained_fastlane? && !self.homebrew? && !self.mac_app?
|
47
62
|
end
|
48
63
|
|
49
64
|
# @return [boolean] true if building in a known CI environment
|
@@ -165,13 +180,23 @@ module FastlaneCore
|
|
165
180
|
# has changed for some users: https://github.com/fastlane/fastlane/issues/5649
|
166
181
|
#
|
167
182
|
|
168
|
-
|
183
|
+
# Remove the ".keychain" at the end of the name
|
184
|
+
name.sub!(/\.keychain$/, "")
|
185
|
+
|
186
|
+
possible_locations = [
|
169
187
|
File.join(Dir.home, 'Library', 'Keychains', name),
|
170
|
-
|
171
|
-
name,
|
172
|
-
"#{name}-db"
|
188
|
+
name
|
173
189
|
].map { |path| File.expand_path(path) }
|
174
190
|
|
191
|
+
# Transforms ["thing"] to ["thing", "thing-db", "thing.keychain", "thing.keychain-db"]
|
192
|
+
keychain_paths = []
|
193
|
+
possible_locations.each do |location|
|
194
|
+
keychain_paths << location
|
195
|
+
keychain_paths << "#{location}-db"
|
196
|
+
keychain_paths << "#{location}.keychain"
|
197
|
+
keychain_paths << "#{location}.keychain-db"
|
198
|
+
end
|
199
|
+
|
175
200
|
keychain_path = keychain_paths.find { |path| File.exist?(path) }
|
176
201
|
UI.user_error!("Could not locate the provided keychain. Tried:\n\t#{keychain_paths.join("\n\t")}") unless keychain_path
|
177
202
|
keychain_path
|
@@ -172,6 +172,62 @@ module FastlaneCore
|
|
172
172
|
return "App" # default value
|
173
173
|
end
|
174
174
|
|
175
|
+
def dynamic_library?
|
176
|
+
(build_settings(key: "PRODUCT_TYPE") == "com.apple.product-type.library.dynamic")
|
177
|
+
end
|
178
|
+
|
179
|
+
def static_library?
|
180
|
+
(build_settings(key: "PRODUCT_TYPE") == "com.apple.product-type.library.static")
|
181
|
+
end
|
182
|
+
|
183
|
+
def library?
|
184
|
+
(static_library? || dynamic_library?)
|
185
|
+
end
|
186
|
+
|
187
|
+
def framework?
|
188
|
+
(build_settings(key: "PRODUCT_TYPE") == "com.apple.product-type.framework")
|
189
|
+
end
|
190
|
+
|
191
|
+
def application?
|
192
|
+
(build_settings(key: "PRODUCT_TYPE") == "com.apple.product-type.application")
|
193
|
+
end
|
194
|
+
|
195
|
+
def ios_library?
|
196
|
+
((static_library? or dynamic_library?) && build_settings(key: "PLATFORM_NAME") == "iphoneos")
|
197
|
+
end
|
198
|
+
|
199
|
+
def ios_tvos_app?
|
200
|
+
(ios? || tvos?)
|
201
|
+
end
|
202
|
+
|
203
|
+
def ios_framework?
|
204
|
+
(framework? && build_settings(key: "PLATFORM_NAME") == "iphoneos")
|
205
|
+
end
|
206
|
+
|
207
|
+
def ios_app?
|
208
|
+
(application? && build_settings(key: "PLATFORM_NAME") == "iphoneos")
|
209
|
+
end
|
210
|
+
|
211
|
+
def produces_archive?
|
212
|
+
!(framework? || static_library? || dynamic_library?)
|
213
|
+
end
|
214
|
+
|
215
|
+
def mac_app?
|
216
|
+
(application? && build_settings(key: "PLATFORM_NAME") == "macosx")
|
217
|
+
end
|
218
|
+
|
219
|
+
def mac_library?
|
220
|
+
((dynamic_library? or static_library?) && build_settings(key: "PLATFORM_NAME") == "macosx")
|
221
|
+
end
|
222
|
+
|
223
|
+
def mac_framework?
|
224
|
+
(framework? && build_settings(key: "PLATFORM_NAME") == "macosx")
|
225
|
+
end
|
226
|
+
|
227
|
+
def command_line_tool?
|
228
|
+
(build_settings(key: "PRODUCT_TYPE") == "com.apple.product-type.tool")
|
229
|
+
end
|
230
|
+
|
175
231
|
def mac?
|
176
232
|
supported_platforms.include?(:macOS)
|
177
233
|
end
|
@@ -103,11 +103,18 @@ module FastlaneCore
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def self.finished_running(gem_name)
|
106
|
-
|
106
|
+
return if ENV["FASTLANE_OPT_OUT_USAGE"]
|
107
107
|
|
108
|
+
time = (Time.now - @start_time).to_i
|
108
109
|
url = UPDATE_URL + "time/#{gem_name}"
|
109
110
|
url += "?time=#{time}"
|
110
|
-
url += "&ci=1" if Helper.
|
111
|
+
url += "&ci=1" if Helper.ci?
|
112
|
+
url += "&gem=1" if Helper.rubygems?
|
113
|
+
url += "&bundler=1" if Helper.bundler?
|
114
|
+
url += "&mac_app=1" if Helper.mac_app?
|
115
|
+
url += "&standalone=1" if Helper.contained_fastlane?
|
116
|
+
url += "&homebrew=1" if Helper.homebrew?
|
117
|
+
|
111
118
|
Excon.post(url)
|
112
119
|
end
|
113
120
|
|
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.59.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-12-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -420,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
420
420
|
version: '0'
|
421
421
|
requirements: []
|
422
422
|
rubyforge_project:
|
423
|
-
rubygems_version: 2.
|
423
|
+
rubygems_version: 2.4.5
|
424
424
|
signing_key:
|
425
425
|
specification_version: 4
|
426
426
|
summary: Contains all shared code/dependencies of the fastlane.tools
|