fastlane-plugin-pgyer_jvtd 0.2.2 → 0.2.3

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: f69f63659f3a7781ed14d5f0e880384d7df64842bff2f9c878cfe3d94bd5f3a4
4
- data.tar.gz: 4c098adffbb66ea75c4491ba5ed74847133f13acf750934e0ba8b2f191555f24
3
+ metadata.gz: f37bc6e5c06f2d530cfb9e3fd77659143a7b2815d9739ad0c02ff2fbaae4720c
4
+ data.tar.gz: 9a08a65d33589b1d152f0032aa2a63936d3321a028548a217db46514c748f3c7
5
5
  SHA512:
6
- metadata.gz: bad3701f7ad3059e2ef69793df262169887fcd8467c2f14b557ca99095da8d5556229908fbe18191b627dba8f84bcb28534a4127030615759e43b5ebbc95a51c
7
- data.tar.gz: 1a1240c8459748dc078c3fb6cfd26716204006405b6f3cd6deb20676c4ce9448d8033a85ded1a4a758a37f188b55302ec1345eefcd4fbba8b62da07c8a136f2d
6
+ metadata.gz: 5866cb5412f7d3c78178cd4f474ca5e794dcbd11d76a07c9b36afb09f984ba2dc47d0db58fb99a050dc753274931630301cead247f6d547dc5f40506d9d3032d
7
+ data.tar.gz: 9b692a48292e87e0d121bac459746aff61761eaf81306b60d9f745752a6c77fae67474af71b56fa7a622c65623c08deb736840b1d7c80095d5d8068636f8d6e1
@@ -17,7 +17,7 @@ module Fastlane
17
17
  is_at_all = "0"
18
18
  end
19
19
 
20
- info = {}
20
+ info = nil
21
21
 
22
22
  if api_key != "test"
23
23
  build_file = [
@@ -89,36 +89,28 @@ module Fastlane
89
89
  UI.success "Upload success. Visit this URL to see: https://www.pgyer.com/#{info['data']['appShortcutUrl']}"
90
90
  else
91
91
  end
92
- # 应用类型
93
- appType = "Android";
94
- if info['data']['appType'] == 1
95
- appType = "iOS"
96
- end
97
92
 
98
- # 应用名称
99
- appName = info['data']['appName']
100
- if appName.nil?
101
- appName = "测试应用"
102
- end
103
- # 应用版本信息
104
- appVersion = info['data']['appVersion']
105
- if appVersion.nil?
106
- appVersion = "1.0.0"
107
- end
108
- # 应用蒲公英版本
109
- appBuildVersion = info['data']['appBuildVersion']
110
- if appBuildVersion.nil?
111
- appBuildVersion = 1
112
- end
113
- # 图标
114
- appIcon = "https://appicon.pgyer.com/image/view/app_icons/#{info['data']['appIcon']}"
115
- if appIcon.nil?
116
- appIcon = ""
117
- end
118
- # 地址
119
- appUrl = "https://www.pgyer.com/#{info['data']['appShortcutUrl']}"
120
- if appUrl.nil?
121
- appUrl = "https://www.pgyer.com"
93
+ appType = "Android";
94
+ appName = "测试应用"
95
+ appVersion = "1.0.0"
96
+ appBuildVersion = 1
97
+ appIcon = ""
98
+ appUrl = "https://www.pgyer.com"
99
+ if info != nil
100
+ # 应用类型
101
+ if info['data']['appType'] == 1
102
+ appType = "iOS"
103
+ end
104
+ # 应用名称
105
+ appName = info['data']['appName']
106
+ # 应用版本信息
107
+ appVersion = info['data']['appVersion']
108
+ # 应用蒲公英版本
109
+ appBuildVersion = info['data']['appBuildVersion']
110
+ # 图标
111
+ appIcon = "https://appicon.pgyer.com/image/view/app_icons/#{info['data']['appIcon']}"
112
+ # 地址
113
+ appUrl = "https://www.pgyer.com/#{info['data']['appShortcutUrl']}"
122
114
  end
123
115
 
124
116
  unless access_token.nil?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module PgyerJvtd
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-pgyer_jvtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 陈磊的MacBook Pro