fastlane-plugin-pgyer_jvtd 0.2.5 → 0.2.6
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: a2351a0b814da7a5f501c3a737deff2eeb000dc8ff65e555da86ced1e0b8079e
|
4
|
+
data.tar.gz: c2c938ca8fca576c96eff9a09e27bab166194392d1d36214e7a3aeffe56a7214
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0ddfe22d4b269e875d61e2f367166afb7055403d0223447a658893a6902b1c5c6a88397864d9947c8a7ed6096e3d0d767392e313cff76a0624da2c3b39fb74
|
7
|
+
data.tar.gz: c7cc4be08ffe555b4e48be5005fec875a0bb9519e2d54481a85ebe15a6da6e7e6ca2c7d8586ad2a1d23e4f874bcee2f8632b8f0ba997b8a84159b2cb924405b0
|
@@ -14,11 +14,16 @@ module Fastlane
|
|
14
14
|
user_key = params[:user_key]
|
15
15
|
access_token = params[:dingtalk_access_token]
|
16
16
|
is_at_all = params[:is_at_all]
|
17
|
+
environment = params[:environment]
|
17
18
|
|
18
19
|
if is_at_all.nil?
|
19
20
|
is_at_all = "0"
|
20
21
|
end
|
21
22
|
|
23
|
+
if environment.nil?
|
24
|
+
environment = "dev"
|
25
|
+
end
|
26
|
+
|
22
27
|
info = nil
|
23
28
|
|
24
29
|
if api_key != "test"
|
@@ -98,6 +103,10 @@ module Fastlane
|
|
98
103
|
appBuildVersion = 1
|
99
104
|
appIcon = ""
|
100
105
|
appUrl = "https://www.pgyer.com"
|
106
|
+
appEnvironment = "测试环境"
|
107
|
+
if environment == "pub"
|
108
|
+
appEnvironment = "正式环境"
|
109
|
+
end
|
101
110
|
if info != nil
|
102
111
|
# 应用类型
|
103
112
|
if info['data']['appType'] == 1 || info['data']['appType'] == "1"
|
@@ -124,8 +133,8 @@ module Fastlane
|
|
124
133
|
params = {
|
125
134
|
"msgtype" => "link",
|
126
135
|
"link" => {
|
127
|
-
"
|
128
|
-
"
|
136
|
+
"title" => "#{appName}#{appType} App发布",
|
137
|
+
"text" => "请下载最新版本#{appVersion}(#{appBuildVersion})\n此版本为#{appEnvironment}",
|
129
138
|
"picUrl" => appIcon,
|
130
139
|
"messageUrl" => appUrl
|
131
140
|
}
|
@@ -146,7 +155,7 @@ module Fastlane
|
|
146
155
|
params = {
|
147
156
|
"msgtype" => "text",
|
148
157
|
"text" => {
|
149
|
-
"content" => "#{appName}#{appType} App
|
158
|
+
"content" => "#{appName}#{appType} App最新#{appEnvironment}版本已发布"
|
150
159
|
},
|
151
160
|
"at" => {
|
152
161
|
"atMobiles" => [],
|
@@ -254,6 +263,11 @@ module Fastlane
|
|
254
263
|
env_name: "DINGTALK_IS_AT_ALL",
|
255
264
|
description: "set is at all for dingtalk (0=not_all, 1=all). Please set as a string",
|
256
265
|
optional: true,
|
266
|
+
type: String),
|
267
|
+
FastlaneCore::ConfigItem.new(key: :environment,
|
268
|
+
env_name: "ENVIRONMENT",
|
269
|
+
description: "set environment (dev, pub). Please set as a string",
|
270
|
+
optional: true,
|
257
271
|
type: String)
|
258
272
|
]
|
259
273
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-pgyer_jvtd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 陈磊的MacBook Pro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|