fastlane-plugin-upload_dsym_to_bugly 1.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -24
- data/lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_dsym_to_bugly_action.rb +95 -86
- data/lib/fastlane/plugin/upload_dsym_to_bugly/jars/buglyqq-upload-symbol-3.3.4.jar +0 -0
- data/lib/fastlane/plugin/upload_dsym_to_bugly/version.rb +1 -1
- metadata +8 -9
- data/lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_ipa_to_bugly_action.rb +0 -186
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b688fde25af37f186763b15245e410a3334265fba920193bbb4d30ec368cba2
|
4
|
+
data.tar.gz: f986bb43300e8c476a9da3bffa08fa6de4879c8abf9df3a390ec8159c2e6046b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f411f834fee0cabd1958edac2ceb580faba48a75916cf5ffdb635ca1ceb6af6f5299876f56a28ac8b696fa0034296a1729ebc2c5fa88604d5d231fe9a264fab
|
7
|
+
data.tar.gz: e21ec9bf95eed1d556a34a44ef9d4c0e9b0610069505c423fcda3468440e1140ae5bde47356fa10b118f2d80c13c4c4d7eab1ed146f995891113a005c4526364
|
data/README.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-upload_dsym_to_bugly)
|
4
4
|
|
5
|
+
|
6
|
+
## Note
|
7
|
+
2021 年 6 月 28 日 开始,bugly 不再支持使用 openApi 的方式上传符号表,需要使用官方提供的命令行上传工具进行上传。
|
8
|
+
本插件当前使用的工具版本为:__3.3.4__
|
9
|
+
|
10
|
+
另
|
11
|
+
- upload_dsym_to_bugly action 的方法参数有变化,请注意。请参照 Getting Start 部分
|
12
|
+
- 去除了上传 ipa 到 bugly 的 action。
|
13
|
+
|
14
|
+
|
15
|
+
|
5
16
|
## Getting Started
|
6
17
|
|
7
18
|
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-upload_dsym_to_bugly`, add it to your project by running:
|
@@ -14,35 +25,14 @@ add the following to your `fastfile`
|
|
14
25
|
```ruby
|
15
26
|
lane :upload_dysm do
|
16
27
|
upload_dsym_to_bugly(
|
17
|
-
file_path: "<your
|
18
|
-
file_name: "<your dSYM.zip name>",
|
28
|
+
file_path: "<path/to/your/x.app.dSYM.zip",
|
19
29
|
app_key: "<your app_key>",
|
20
30
|
app_id:"<your app_id>",
|
21
|
-
api_version: 1,
|
22
|
-
symbol_type: 2, # iOS => 2, Android => 1
|
23
31
|
bundle_id: '<your bundle id>',
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
```
|
28
|
-
|
29
|
-
if you want to upload your ipa to bugly, add the following to your `fastfile`
|
30
|
-
```ruby
|
31
|
-
lane :upload_ipa do
|
32
|
-
upload_app_to_bugly(
|
33
|
-
file_path:"<your *.ipa filepath>",
|
34
|
-
app_key:"<your app_key>",
|
35
|
-
app_id:"<your app_id>",
|
36
|
-
pid:"2",
|
37
|
-
title:"<title>",
|
38
|
-
desc:"<description>",
|
39
|
-
secret:"<secret>",
|
40
|
-
users:"<users>",
|
41
|
-
password:"<password>",
|
42
|
-
download_limit:download_limit
|
32
|
+
version: get_version_number,
|
33
|
+
raise_if_error: false
|
43
34
|
)
|
44
35
|
end
|
45
|
-
|
46
36
|
```
|
47
37
|
|
48
38
|
## About upload_dsym_to_bugly
|
@@ -1,46 +1,58 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require "fastlane/action"
|
2
|
+
require_relative "../helper/upload_dsym_to_bugly_helper"
|
3
|
+
require 'fileutils'
|
3
4
|
|
4
5
|
module Fastlane
|
5
6
|
module Actions
|
7
|
+
module SharedValues
|
8
|
+
UPLOAD_DSYM_TO_BUGLY_RESULT = :UPLOAD_DSYM_TO_BUGLY_RESULT
|
9
|
+
end
|
6
10
|
class UploadDsymToBuglyAction < Action
|
7
11
|
def self.run(params)
|
8
|
-
require 'json'
|
9
|
-
# fastlane will take care of reading in the parameter and fetching the environment variable:
|
10
|
-
UI.message "file path: #{params[:file_path]}"
|
11
12
|
|
12
|
-
|
13
|
+
jar_path = File.expand_path('../../jars/buglyqq-upload-symbol-3.3.4.jar', __FILE__)
|
14
|
+
UI.message "jar path: #{jar_path}"
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
file_path = File.expand_path("#{params[:file_path]}")
|
17
|
+
UI.message "file path: #{file_path}"
|
18
|
+
|
19
|
+
unzip_path = File.expand_path(".upload_dsym_to_bugly_tmp", "#{File.dirname("#{file_path}")}")
|
20
|
+
UI.message "unzip path: #{unzip_path}"
|
21
|
+
|
22
|
+
if Dir.exist?(unzip_path)
|
23
|
+
FileUtils.rm_r(unzip_path, force: true)
|
24
|
+
end
|
25
|
+
|
26
|
+
if !Dir.glob(file_path).empty?
|
27
|
+
sh("unzip -o \"#{file_path}\" -d \"#{unzip_path}\"")
|
28
|
+
else
|
29
|
+
UI.message "dSYM zip File don't exist"
|
30
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
31
|
+
raise if params[:raise_if_error]
|
22
32
|
end
|
23
|
-
|
33
|
+
cmd = "java -jar \"#{jar_path}\" -appid \"#{params[:app_id]}\" -appkey \"#{params[:app_key]}\" -bundleid \"#{params[:bundle_id]}\" -version \"#{params[:version]}\" -platform \"#{params[:platform]}\" -inputSymbol \"#{unzip_path}\""
|
34
|
+
|
35
|
+
log_file = "dSYM_upload_result.log"
|
36
|
+
|
24
37
|
begin
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
38
|
+
sh("#{cmd} > #{log_file}")
|
39
|
+
last_line = sh("tail -n 1 \"#{log_file}\"")
|
40
|
+
|
41
|
+
success = last_line.include?("retCode: 200") and last_line.include?("\"msg\":\"success\"")
|
42
|
+
if success
|
43
|
+
UI.message "dSYM upload successfully 🎉 "
|
44
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = true
|
45
|
+
else
|
46
|
+
UI.message "dSYM upload failed: #{last_line}"
|
47
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
48
|
+
raise if params[:raise_if_error]
|
29
49
|
end
|
30
|
-
rescue Exception => e
|
31
|
-
UI.message "error at checking api version, caused by #{e}"
|
32
|
-
end
|
33
50
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if ret == 0
|
39
|
-
UI.message "upload success"
|
40
|
-
else
|
41
|
-
UI.message "upload failed, result is #{obj}"
|
51
|
+
rescue => exception
|
52
|
+
UI.message "dSYM upload failed, See log output above"
|
53
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
54
|
+
raise if params[:raise_if_error]
|
42
55
|
end
|
43
|
-
`rm upload_dsym_to_bugly_result.json`
|
44
56
|
end
|
45
57
|
|
46
58
|
def self.description
|
@@ -62,65 +74,62 @@ module Fastlane
|
|
62
74
|
|
63
75
|
def self.available_options
|
64
76
|
[
|
65
|
-
FastlaneCore::ConfigItem.new(key: :api_version,
|
66
|
-
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_API_VERSION",
|
67
|
-
description: "api version for UploadDsymToBuglyAction",
|
68
|
-
is_string: false,
|
69
|
-
default_value: 1),
|
70
77
|
FastlaneCore::ConfigItem.new(key: :app_id,
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
78
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_APP_ID",
|
79
|
+
description: "app id",
|
80
|
+
is_string: true,
|
81
|
+
verify_block: proc do |value|
|
82
|
+
UI.user_error!("No APP id for UploadDsymToBuglyAction given, pass using `app_id: 'app_id'`") unless (value and not value.empty?)
|
83
|
+
end),
|
77
84
|
FastlaneCore::ConfigItem.new(key: :app_key,
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
FastlaneCore::ConfigItem.new(key: :symbol_type,
|
85
|
-
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_SYMBOL_TYPE",
|
86
|
-
description: "symbol type for UploadDsymToBuglyAction",
|
87
|
-
is_string: false,
|
88
|
-
verify_block: proc do |value|
|
89
|
-
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `symbol_type: 'symbol_type'`") unless (value and not value.to_s.empty?)
|
90
|
-
end),
|
85
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_APP_KEY",
|
86
|
+
description: "app key",
|
87
|
+
is_string: true,
|
88
|
+
verify_block: proc do |value|
|
89
|
+
UI.user_error!("No APP key for UploadDsymToBuglyAction given, pass using `api_key: 'app_key'`") unless (value and not value.empty?)
|
90
|
+
end),
|
91
91
|
FastlaneCore::ConfigItem.new(key: :bundle_id,
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
FastlaneCore::ConfigItem.new(key: :
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
FastlaneCore::ConfigItem.new(key: :channel,
|
106
|
-
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_CHANNEL",
|
107
|
-
description: "channel for UploadDsymToBuglyAction",
|
108
|
-
is_string: true,
|
109
|
-
default_value: "fastlane"),
|
110
|
-
FastlaneCore::ConfigItem.new(key: :file_name,
|
111
|
-
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_FILE_NAME",
|
112
|
-
description: "file name for UploadDsymToBuglyAction",
|
113
|
-
is_string: true,
|
114
|
-
verify_block: proc do |value|
|
115
|
-
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `file_name: 'file_name'`") unless (value and not value.empty?)
|
116
|
-
end),
|
92
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_BUNDLE_ID",
|
93
|
+
description: "bundle id",
|
94
|
+
is_string: true,
|
95
|
+
verify_block: proc do |value|
|
96
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `bundle_id: 'bundle_id'`") unless (value and not value.empty?)
|
97
|
+
end),
|
98
|
+
FastlaneCore::ConfigItem.new(key: :version,
|
99
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_VERSION",
|
100
|
+
description: "app version",
|
101
|
+
is_string: true,
|
102
|
+
verify_block: proc do |value|
|
103
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `version: 'version'`") unless (value and not value.empty?)
|
104
|
+
end),
|
117
105
|
FastlaneCore::ConfigItem.new(key: :file_path,
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
106
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_FILE",
|
107
|
+
description: "file path",
|
108
|
+
is_string: true,
|
109
|
+
verify_block: proc do |value|
|
110
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `file_path: 'file_path'`") unless (value and not value.empty?)
|
111
|
+
end),
|
112
|
+
FastlaneCore::ConfigItem.new(key: :platform,
|
113
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_FILE",
|
114
|
+
description: "platform",
|
115
|
+
is_string: true,
|
116
|
+
default_value: "IOS",
|
117
|
+
verify_block: proc do |value|
|
118
|
+
UI.user_error!("platform value error, available values: IOS, Android") unless (value == "IOS" or value == "Android")
|
119
|
+
end),
|
120
|
+
FastlaneCore::ConfigItem.new(key: :raise_if_error,
|
121
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_RAISE_IF_ERROR",
|
122
|
+
description: "Raises an error if fails, so you can fail CI/CD jobs if necessary \(true/false)",
|
123
|
+
default_value: true,
|
124
|
+
is_string: false,
|
125
|
+
type: Boolean,
|
126
|
+
optional: false)
|
127
|
+
]
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.output
|
131
|
+
[
|
132
|
+
["UPLOAD_DSYM_TO_BUGLY_RESULT", "upload result"],
|
124
133
|
]
|
125
134
|
end
|
126
135
|
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-upload_dsym_to_bugly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- liubo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.108.0
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: liubo004@126.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
@@ -146,14 +146,14 @@ files:
|
|
146
146
|
- README.md
|
147
147
|
- lib/fastlane/plugin/upload_dsym_to_bugly.rb
|
148
148
|
- lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_dsym_to_bugly_action.rb
|
149
|
-
- lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_ipa_to_bugly_action.rb
|
150
149
|
- lib/fastlane/plugin/upload_dsym_to_bugly/helper/upload_dsym_to_bugly_helper.rb
|
150
|
+
- lib/fastlane/plugin/upload_dsym_to_bugly/jars/buglyqq-upload-symbol-3.3.4.jar
|
151
151
|
- lib/fastlane/plugin/upload_dsym_to_bugly/version.rb
|
152
152
|
homepage: https://github.com/srv7/fastlane-plugin-upload_dsym_to_bugly
|
153
153
|
licenses:
|
154
154
|
- MIT
|
155
155
|
metadata: {}
|
156
|
-
post_install_message:
|
156
|
+
post_install_message:
|
157
157
|
rdoc_options: []
|
158
158
|
require_paths:
|
159
159
|
- lib
|
@@ -168,9 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
|
172
|
-
|
173
|
-
signing_key:
|
171
|
+
rubygems_version: 3.1.2
|
172
|
+
signing_key:
|
174
173
|
specification_version: 4
|
175
174
|
summary: upload_dsym_to_bugly
|
176
175
|
test_files: []
|
@@ -1,186 +0,0 @@
|
|
1
|
-
require 'fastlane/action'
|
2
|
-
require_relative '../helper/upload_dsym_to_bugly_helper'
|
3
|
-
|
4
|
-
module Fastlane
|
5
|
-
module Actions
|
6
|
-
module SharedValues
|
7
|
-
UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL = :UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL
|
8
|
-
end
|
9
|
-
|
10
|
-
# To share this integration with the other fastlane users:
|
11
|
-
# - Fork https://github.com/fastlane/fastlane/tree/master/fastlane
|
12
|
-
# - Clone the forked repository
|
13
|
-
# - Move this integration into lib/fastlane/actions
|
14
|
-
# - Commit, push and submit the pull request
|
15
|
-
|
16
|
-
class UploadAppToBuglyAction < Action
|
17
|
-
def self.run(params)
|
18
|
-
require 'json'
|
19
|
-
# fastlane will take care of reading in the parameter and fetching the environment variable:
|
20
|
-
UI.message "file path: #{params[:file_path]}"
|
21
|
-
|
22
|
-
json_file = 'upload_app_to_bugly_result.json'
|
23
|
-
|
24
|
-
begin
|
25
|
-
secret = ''
|
26
|
-
if !params[:secret].to_s.nil? && !params[:secret].empty?
|
27
|
-
secret = " -F \"secret=#{params[:secret]}\" "
|
28
|
-
UI.message "secret:#{secret}"
|
29
|
-
end
|
30
|
-
rescue Exception => e
|
31
|
-
UI.message "error at checking secret,caused by #{e}"
|
32
|
-
return
|
33
|
-
end
|
34
|
-
|
35
|
-
begin
|
36
|
-
users = ''
|
37
|
-
if !params[:users].nil? && !params[:users].empty?
|
38
|
-
users = " -F \"users=#{params[:users]}\" "
|
39
|
-
UI.message "users:#{users}"
|
40
|
-
end
|
41
|
-
rescue Exception => e
|
42
|
-
UI.message "error at checking users,caused by #{e}"
|
43
|
-
return
|
44
|
-
end
|
45
|
-
|
46
|
-
begin
|
47
|
-
password = ''
|
48
|
-
if !params[:password].nil? && !params[:password].empty?
|
49
|
-
password = " -F \"password=#{params[:password]}\" "
|
50
|
-
UI.message "password:#{password}"
|
51
|
-
end
|
52
|
-
rescue Exception => e
|
53
|
-
UI.message "error at checking password,caused by #{e}"
|
54
|
-
return
|
55
|
-
end
|
56
|
-
|
57
|
-
begin
|
58
|
-
download_limit = ''
|
59
|
-
if !params[:download_limit].nil? && params[:download_limit] > 0
|
60
|
-
download_limit = " -F \"download_limit=#{params[:download_limit]}\" "
|
61
|
-
UI.message "download_limit:#{download_limit}"
|
62
|
-
end
|
63
|
-
rescue Exception => e
|
64
|
-
UI.message "error at checking download_limit,caused by #{e}"
|
65
|
-
return
|
66
|
-
end
|
67
|
-
|
68
|
-
cmd = "curl --insecure -F \"file=@#{params[:file_path]}\" -F \"app_id=#{params[:app_id]}\" -F \"pid=#{params[:pid]}\" -F \"title=#{params[:title]}\" -F \"description=#{params[:desc]}\"" + secret + users + password + download_limit + " https://api.bugly.qq.com/beta/apiv1/exp?app_key=#{params[:app_key]} -o " + json_file
|
69
|
-
sh(cmd)
|
70
|
-
obj = JSON.parse(File.read(json_file))
|
71
|
-
ret = obj['rtcode']
|
72
|
-
if ret == 0
|
73
|
-
UI.message "upload success"
|
74
|
-
url = obj['data']['url']
|
75
|
-
Actions.lane_context[SharedValues::UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL] = url
|
76
|
-
else
|
77
|
-
UI.message "upload failed,result is #{obj}"
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
#####################################################
|
82
|
-
# @!group Documentation
|
83
|
-
#####################################################
|
84
|
-
|
85
|
-
def self.description
|
86
|
-
'A short description with <= 80 characters of what this action does'
|
87
|
-
end
|
88
|
-
|
89
|
-
def self.details
|
90
|
-
# Optional:
|
91
|
-
# this is your chance to provide a more detailed description of this action
|
92
|
-
'You can use this action to do cool things...'
|
93
|
-
end
|
94
|
-
|
95
|
-
def self.available_options
|
96
|
-
# Define all options your action supports.
|
97
|
-
|
98
|
-
# Below a few examples
|
99
|
-
[
|
100
|
-
FastlaneCore::ConfigItem.new(key: :file_path,
|
101
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_FILE_PATH',
|
102
|
-
description: 'file path for UploadAppToBuglyAction',
|
103
|
-
is_string: true,
|
104
|
-
verify_block: proc do |value|
|
105
|
-
UI.user_error!("No file path for UploadAppToBuglyAction given, pass using `file_path: 'path'`") unless value && !value.empty?
|
106
|
-
UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
107
|
-
end),
|
108
|
-
FastlaneCore::ConfigItem.new(key: :app_key,
|
109
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_APP_KEY',
|
110
|
-
description: 'app key for UploadAppToBuglyAction',
|
111
|
-
is_string: true,
|
112
|
-
verify_block: proc do |value|
|
113
|
-
UI.user_error!("NO app_key for UploadAppToBuglyAction given, pass using `app_key: 'app_key'`") unless value && !value.empty?
|
114
|
-
end),
|
115
|
-
FastlaneCore::ConfigItem.new(key: :app_id,
|
116
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_APP_ID',
|
117
|
-
description: 'app id for UploadAppToBuglyAction',
|
118
|
-
is_string: true,
|
119
|
-
verify_block: proc do |value|
|
120
|
-
UI.user_error!("No app_id for UploadAppToBuglyAction given, pass using `app_id: 'app_id'`") unless value && !value.empty?
|
121
|
-
end),
|
122
|
-
FastlaneCore::ConfigItem.new(key: :pid,
|
123
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_PID',
|
124
|
-
description: 'pid for UploadToBuglyAction',
|
125
|
-
is_string: true,
|
126
|
-
verify_block: proc do |value|
|
127
|
-
UI.user_error!("No pid for UploadAppToBuglyAction given, pass using `pid: 'pid'`") unless value && !value.empty?
|
128
|
-
end),
|
129
|
-
FastlaneCore::ConfigItem.new(key: :title,
|
130
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_TITLE',
|
131
|
-
description: 'title for UploadAppToBuglyAction',
|
132
|
-
is_string: true,
|
133
|
-
default_value: 'title',
|
134
|
-
verify_block: proc do |value|
|
135
|
-
UI.user_error!("No title for UploadAppToBuglyAction given, pass using `title: 'title'`") unless value && !value.empty?
|
136
|
-
end),
|
137
|
-
FastlaneCore::ConfigItem.new(key: :desc,
|
138
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_DESC',
|
139
|
-
description: 'desc for UploadAppToBuglyAction',
|
140
|
-
is_string: true,
|
141
|
-
default_value: 'desc'),
|
142
|
-
FastlaneCore::ConfigItem.new(key: :secret,
|
143
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_DESCRIPTION',
|
144
|
-
description: 'secret for UploadAppToBuglyAction',
|
145
|
-
is_string: true,
|
146
|
-
default_value: ''),
|
147
|
-
FastlaneCore::ConfigItem.new(key: :users,
|
148
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_DESCRIPTION',
|
149
|
-
description: 'users for UploadAppToBuglyAction',
|
150
|
-
is_string: true,
|
151
|
-
default_value: ''),
|
152
|
-
FastlaneCore::ConfigItem.new(key: :password,
|
153
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_DESCRIPTION',
|
154
|
-
description: 'password for UploadAppToBuglyAction',
|
155
|
-
is_string: true,
|
156
|
-
default_value: ''),
|
157
|
-
FastlaneCore::ConfigItem.new(key: :download_limit,
|
158
|
-
env_name: 'FL_UPLOAD_APP_TO_BUGLY_DESCRIPTION',
|
159
|
-
description: 'download_limit for UploadAppToBuglyAction',
|
160
|
-
is_string: false, # true: verifies the input is a string, false: every kind of value
|
161
|
-
default_value: 10_000)
|
162
|
-
]
|
163
|
-
end
|
164
|
-
|
165
|
-
def self.output
|
166
|
-
# Define the shared values you are going to provide
|
167
|
-
[
|
168
|
-
['UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL', 'download url']
|
169
|
-
]
|
170
|
-
end
|
171
|
-
|
172
|
-
def self.return_value
|
173
|
-
# If you method provides a return value, you can describe here what it does
|
174
|
-
end
|
175
|
-
|
176
|
-
def self.authors
|
177
|
-
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
178
|
-
["liubo"]
|
179
|
-
end
|
180
|
-
|
181
|
-
def self.is_supported?(platform)
|
182
|
-
platform == :ios
|
183
|
-
end
|
184
|
-
end
|
185
|
-
end
|
186
|
-
end
|