fastlane-plugin-zhuixi_build_app 0.1.9 → 0.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7d5e5c609cf6c0c3d3596716799dc7731c9d408f542d055f4ca32eb9c90e79f
|
4
|
+
data.tar.gz: 7b04a1b0fd903050933a762814fd6d30634e71f2d8ed7586a34fda9c4c942560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2425d6bf63870d8029d343da3156e871c808976edf844bc08dc3853bc05a568324b01b0022ac3091d7908549e64c1bf504944bf9836d96e7e893bc2c4dfc5c1c
|
7
|
+
data.tar.gz: 1a554534b1e449cb43763aa6aba04062448037a98bb8df4f1d0e1e0a029f511119a253afe5775f7d7ee8c95de8d21276b939975b821279531788936246310815
|
@@ -5,7 +5,7 @@ module Fastlane
|
|
5
5
|
login_and_get_user_id_and_token(params[:credentials][:account], params[:credentials][:password], "2")
|
6
6
|
end
|
7
7
|
|
8
|
-
def login_and_get_user_id_and_token(account, password, packet_os)
|
8
|
+
def self.login_and_get_user_id_and_token(account, password, packet_os)
|
9
9
|
uri = URI.parse("http://xg.yutennet.com/issuesy/pack/user_login")
|
10
10
|
request = Net::HTTP::Post.new(uri)
|
11
11
|
request.content_type = "application/json"
|
@@ -25,7 +25,7 @@ module Fastlane
|
|
25
25
|
user_id = result["data"]["user_id"]
|
26
26
|
token = result["data"]["token"]
|
27
27
|
platforms = result["data"]["platform_lists"]
|
28
|
-
puts "
|
28
|
+
puts "ZHUIXI---登陆成功!platform:\n" + platforms.to_s
|
29
29
|
for platform in platforms
|
30
30
|
if @selectPlatformName == platform["platform_name"]
|
31
31
|
platformId = platform["platform_id"]
|
@@ -33,10 +33,10 @@ module Fastlane
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
else
|
36
|
-
puts "
|
36
|
+
puts "ZHUIXI---登录失败:#{result["msg"]}"
|
37
37
|
end
|
38
38
|
else
|
39
|
-
puts "
|
39
|
+
puts "ZHUIXI---登录失败:HTTP #{response.code}"
|
40
40
|
end
|
41
41
|
|
42
42
|
return nil, nil
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
env_name: "ZHUIXI_BUILD_APP_YOUR_OPTION",
|
49
49
|
description: "LoginAction",
|
50
50
|
optional: false,
|
51
|
-
type:
|
51
|
+
type: Hash),
|
52
52
|
]
|
53
53
|
end
|
54
54
|
def self.is_supported?(platform)
|
@@ -12,7 +12,7 @@ module Fastlane
|
|
12
12
|
@selectGameName = app_file_config[:selectGameName]
|
13
13
|
@selectPlatformName = app_file_config[:platform]
|
14
14
|
@ori_xcodeproj_path = app_file_config[:ori_xcodeproj_path]
|
15
|
-
UI.message("
|
15
|
+
UI.message("ZHUIXI---读取配置成功!app_file_path:\n#{app_file_path}")
|
16
16
|
# 返回 account 和 password
|
17
17
|
return { account: account, password: password }
|
18
18
|
end
|