fastlane-plugin-validate_app 0.2.0 → 0.2.1
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: b8d3e8ef9b50f594618caeb2ca5d1a5bccafacb4
|
4
|
+
data.tar.gz: 0440afb4eb950734887b220d7b3485cfe407cc5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e968f314c198c645a7d92544df4420fa839cbbb0e53ca15e1598920b9ea433ab47b60a9648832e4befab5dbddc94463fef083df7ef7366e25ac9a4338a353c7a
|
7
|
+
data.tar.gz: 76145fa0cae4012f3d0c0d0dbf6e05022871665b80e551a264e9eab3d6587f4ec58942b848a31175bdb9540bcc95fbd292ca969c9bbb9115c3c414fee34481f9
|
@@ -10,7 +10,9 @@ module Fastlane
|
|
10
10
|
xcode_contents_path = `dirname "$(xcode-select --print-path)"`.strip
|
11
11
|
altool = "#{xcode_contents_path}/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool".shellescape
|
12
12
|
|
13
|
-
|
13
|
+
ipa = params[:ipa].to_s.shellescape
|
14
|
+
|
15
|
+
UI.message("Validating #{ipa}. This may take a while.")
|
14
16
|
|
15
17
|
password = "@env:DELIVER_PASSWORD" if ENV["DELIVER_PASSWORD"].to_s.length > 0
|
16
18
|
password = "@env:FASTLANE_PASSWORD" if ENV["FASTLANE_PASSWORD"].to_s.length > 0
|
@@ -22,7 +24,7 @@ module Fastlane
|
|
22
24
|
command = [altool]
|
23
25
|
command << "--validate-app"
|
24
26
|
command << "--file"
|
25
|
-
command <<
|
27
|
+
command << ipa
|
26
28
|
command << "--username #{params[:username]}"
|
27
29
|
command << "--password"
|
28
30
|
command << password
|
@@ -31,8 +33,8 @@ module Fastlane
|
|
31
33
|
plist = Plist.parse_xml(`#{command.join(' ')}`)
|
32
34
|
errors = plist["product-errors"]
|
33
35
|
|
34
|
-
if errors.
|
35
|
-
UI.success("
|
36
|
+
if errors.nil?
|
37
|
+
UI.success("IPA file is valid. Ready to be uploaded to iTunes Connect!")
|
36
38
|
return nil
|
37
39
|
end
|
38
40
|
|