fastlane-plugin-zhuixi_build_app 0.1.9 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 529bdf9e85e5e3d03ae548d237eb467e4519ea27176df36df46f6f574ef6e7e7
4
- data.tar.gz: df7ddc010651f6ebbb44f6fd91cbf1fe65f53aabbcc3636784846e35bdd358c6
3
+ metadata.gz: c7d5e5c609cf6c0c3d3596716799dc7731c9d408f542d055f4ca32eb9c90e79f
4
+ data.tar.gz: 7b04a1b0fd903050933a762814fd6d30634e71f2d8ed7586a34fda9c4c942560
5
5
  SHA512:
6
- metadata.gz: 7c5e809eb35175040c07b4bc623963e4e1eafeca9fd242c8c6612001e74907e2617a013a0c0dcf99dc8cc0a95e624542e125e7a4eefbf163f873662e19e8a5ec
7
- data.tar.gz: c178d4fbc23bf881b7f69c1ce4da6edd91b01a800930a52e3a9fd7cb2efe50cb4ec65162ed9850450680462af73529196840df9c5e44a7cfae7421f4d5020c63
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 "登陆成功:platform:" + platforms.to_s
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 "登录失败:#{result["msg"]}"
36
+ puts "ZHUIXI---登录失败:#{result["msg"]}"
37
37
  end
38
38
  else
39
- puts "登录失败:HTTP #{response.code}"
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: String),
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("读取配置成功!app_file_path:#{app_file_path}")
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module ZhuixiBuildApp
3
- VERSION = "0.1.9"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-zhuixi_build_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedSevenMale