fastlane-plugin-upload_dsym_to_bugly 0.1.0 → 1.1.2
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 +4 -4
- data/README.md +38 -23
- data/lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_app_to_bugly_action.rb +201 -0
- data/lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_dsym_to_bugly_action.rb +114 -58
- data/lib/fastlane/plugin/upload_dsym_to_bugly/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6890daf60a91eca16e505063e9e6e599d79680307e9e23d21a16ede772960c7
|
4
|
+
data.tar.gz: 639cd70717796f3ca31bae1da71fe45fa0fd817d0d6b1edd0833c324aaf26d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1af9141f0defc121b425d75e1d31a67c04d5c653d9445d9c9b912ad34f9a945704b5008aad066c35ccf7382075b9ad1d6b0c5899eb00c047eb94fcd5e24d6585
|
7
|
+
data.tar.gz: 7b5c79bfa3249f5f786b6efd77af7b9390cb59606ecdf80395ca9123ada0495ae49876eeda2ac3d462dc0ca67cea2010d5c84ba7f6e1e6ee0386a7f08752e023
|
data/README.md
CHANGED
@@ -6,34 +6,53 @@
|
|
6
6
|
|
7
7
|
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:
|
8
8
|
|
9
|
-
```
|
10
|
-
fastlane add_plugin upload_dsym_to_bugly
|
9
|
+
```shell
|
10
|
+
$ fastlane add_plugin upload_dsym_to_bugly
|
11
11
|
```
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
add the following to your `fastfile`
|
14
|
+
```ruby
|
15
|
+
lane :upload_dysm do
|
16
|
+
upload_dsym_to_bugly(
|
17
|
+
file_path: "<your dSYM.zip path>/<your dSYM.zip name>",
|
18
|
+
file_name: "<your dSYM.zip name>",
|
19
|
+
app_key: "<your app_key>",
|
20
|
+
app_id:"<your app_id>",
|
21
|
+
api_version: 1,
|
22
|
+
symbol_type: 2, # iOS => 2, Android => 1
|
23
|
+
bundle_id: '<your bundle id>',
|
24
|
+
product_version: get_version_number
|
25
|
+
)
|
26
|
+
end
|
27
|
+
```
|
18
28
|
|
19
|
-
|
29
|
+
if you want to upload your ipa to bugly, add the following to your `fastfile`
|
30
|
+
```ruby
|
31
|
+
lane :upload_app 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
|
43
|
+
)
|
44
|
+
end
|
20
45
|
|
21
|
-
|
46
|
+
```
|
22
47
|
|
23
|
-
|
48
|
+
## About upload_dsym_to_bugly
|
24
49
|
|
25
|
-
|
50
|
+
upload dSYM to bugly
|
26
51
|
|
27
|
-
|
52
|
+
## Using _fastlane_ Plugins
|
28
53
|
|
29
|
-
|
30
|
-
rake
|
31
|
-
```
|
54
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
32
55
|
|
33
|
-
To automatically fix many of the styling issues, use
|
34
|
-
```
|
35
|
-
rubocop -a
|
36
|
-
```
|
37
56
|
|
38
57
|
## Issues and Feedback
|
39
58
|
|
@@ -43,10 +62,6 @@ For any other issues and feedback about this plugin, please submit it to this re
|
|
43
62
|
|
44
63
|
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
45
64
|
|
46
|
-
## Using _fastlane_ Plugins
|
47
|
-
|
48
|
-
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
|
49
|
-
|
50
65
|
## About _fastlane_
|
51
66
|
|
52
67
|
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
@@ -0,0 +1,201 @@
|
|
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
|
+
begin
|
70
|
+
sh(cmd)
|
71
|
+
obj = JSON.parse(File.read(json_file))
|
72
|
+
`rm upload_dsym_to_bugly_result.json`
|
73
|
+
ret = obj["rtcode"]
|
74
|
+
if ret == 0
|
75
|
+
UI.message "upload success"
|
76
|
+
url = obj["data"]["url"]
|
77
|
+
Actions.lane_context[SharedValues::UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL] = url
|
78
|
+
UI.message "upload success, link: #{url}"
|
79
|
+
else
|
80
|
+
UI.message "upload failed,result is #{obj}"
|
81
|
+
raise if params[:raise_if_error]
|
82
|
+
end
|
83
|
+
rescue
|
84
|
+
UI.message "upload failed"
|
85
|
+
raise if params[:raise_if_error]
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
#####################################################
|
90
|
+
# @!group Documentation
|
91
|
+
#####################################################
|
92
|
+
|
93
|
+
def self.description
|
94
|
+
"upload_app_to_bugly"
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.details
|
98
|
+
# Optional:
|
99
|
+
# this is your chance to provide a more detailed description of this action
|
100
|
+
"You can use this action to do cool things..."
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.available_options
|
104
|
+
# Define all options your action supports.
|
105
|
+
|
106
|
+
# Below a few examples
|
107
|
+
[
|
108
|
+
FastlaneCore::ConfigItem.new(key: :file_path,
|
109
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_FILE_PATH",
|
110
|
+
description: "file path for UploadAppToBuglyAction",
|
111
|
+
is_string: true,
|
112
|
+
verify_block: proc do |value|
|
113
|
+
UI.user_error!("No file path for UploadAppToBuglyAction given, pass using `file_path: 'path'`") unless value && !value.empty?
|
114
|
+
UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
115
|
+
end),
|
116
|
+
FastlaneCore::ConfigItem.new(key: :app_key,
|
117
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_APP_KEY",
|
118
|
+
description: "app key for UploadAppToBuglyAction",
|
119
|
+
is_string: true,
|
120
|
+
verify_block: proc do |value|
|
121
|
+
UI.user_error!("NO app_key for UploadAppToBuglyAction given, pass using `app_key: 'app_key'`") unless value && !value.empty?
|
122
|
+
end),
|
123
|
+
FastlaneCore::ConfigItem.new(key: :app_id,
|
124
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_APP_ID",
|
125
|
+
description: "app id for UploadAppToBuglyAction",
|
126
|
+
is_string: true,
|
127
|
+
verify_block: proc do |value|
|
128
|
+
UI.user_error!("No app_id for UploadAppToBuglyAction given, pass using `app_id: 'app_id'`") unless value && !value.empty?
|
129
|
+
end),
|
130
|
+
FastlaneCore::ConfigItem.new(key: :pid,
|
131
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_PID",
|
132
|
+
description: "pid for UploadToBuglyAction",
|
133
|
+
is_string: true,
|
134
|
+
verify_block: proc do |value|
|
135
|
+
UI.user_error!("No pid for UploadAppToBuglyAction given, pass using `pid: 'pid'`") unless value && !value.empty?
|
136
|
+
end),
|
137
|
+
FastlaneCore::ConfigItem.new(key: :title,
|
138
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_TITLE",
|
139
|
+
description: "title for UploadAppToBuglyAction",
|
140
|
+
is_string: true,
|
141
|
+
default_value: "title",
|
142
|
+
verify_block: proc do |value|
|
143
|
+
UI.user_error!("No title for UploadAppToBuglyAction given, pass using `title: 'title'`") unless value && !value.empty?
|
144
|
+
end),
|
145
|
+
FastlaneCore::ConfigItem.new(key: :desc,
|
146
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_DESC",
|
147
|
+
description: "desc for UploadAppToBuglyAction",
|
148
|
+
is_string: true,
|
149
|
+
default_value: "desc"),
|
150
|
+
FastlaneCore::ConfigItem.new(key: :secret,
|
151
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_SECRET",
|
152
|
+
description: "secret for UploadAppToBuglyAction",
|
153
|
+
is_string: true,
|
154
|
+
default_value: ""),
|
155
|
+
FastlaneCore::ConfigItem.new(key: :users,
|
156
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_USERS",
|
157
|
+
description: "users for UploadAppToBuglyAction",
|
158
|
+
is_string: true,
|
159
|
+
default_value: ""),
|
160
|
+
FastlaneCore::ConfigItem.new(key: :password,
|
161
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_PASSWORD",
|
162
|
+
description: "password for UploadAppToBuglyAction",
|
163
|
+
is_string: true,
|
164
|
+
default_value: ""),
|
165
|
+
FastlaneCore::ConfigItem.new(key: :download_limit,
|
166
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_DOWNLOAD_LIMIT",
|
167
|
+
description: "download_limit for UploadAppToBuglyAction",
|
168
|
+
is_string: false, # true: verifies the input is a string, false: every kind of value
|
169
|
+
default_value: 10_000),
|
170
|
+
FastlaneCore::ConfigItem.new(key: :raise_if_error,
|
171
|
+
env_name: "FL_UPLOAD_APP_TO_BUGLY_RAISE_IF_ERROR",
|
172
|
+
description: "Raises an error if fails, so you can fail CI/CD jobs if necessary \(true/false)",
|
173
|
+
default_value: true,
|
174
|
+
is_string: false,
|
175
|
+
type: Boolean,
|
176
|
+
optional: false),
|
177
|
+
]
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.output
|
181
|
+
# Define the shared values you are going to provide
|
182
|
+
[
|
183
|
+
["UPLOAD_APP_TO_BUGLY_DOWNLOAD_URL", "download url"],
|
184
|
+
]
|
185
|
+
end
|
186
|
+
|
187
|
+
def self.return_value
|
188
|
+
# If you method provides a return value, you can describe here what it does
|
189
|
+
end
|
190
|
+
|
191
|
+
def self.authors
|
192
|
+
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
193
|
+
["liubo"]
|
194
|
+
end
|
195
|
+
|
196
|
+
def self.is_supported?(platform)
|
197
|
+
platform == :ios
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
@@ -1,11 +1,58 @@
|
|
1
|
-
require
|
2
|
-
require_relative
|
1
|
+
require "fastlane/action"
|
2
|
+
require_relative "../helper/upload_dsym_to_bugly_helper"
|
3
3
|
|
4
4
|
module Fastlane
|
5
5
|
module Actions
|
6
|
+
module SharedValues
|
7
|
+
UPLOAD_DSYM_TO_BUGLY_RESULT = :UPLOAD_DSYM_TO_BUGLY_RESULT
|
8
|
+
end
|
6
9
|
class UploadDsymToBuglyAction < Action
|
7
10
|
def self.run(params)
|
8
|
-
|
11
|
+
require "json"
|
12
|
+
# fastlane will take care of reading in the parameter and fetching the environment variable:
|
13
|
+
UI.message "file path: #{params[:file_path]}"
|
14
|
+
|
15
|
+
json_file = "upload_dsym_to_bugly_result.json"
|
16
|
+
|
17
|
+
begin
|
18
|
+
api_version = ""
|
19
|
+
if !params[:api_version].nil? && params[:api_version] > 0
|
20
|
+
api_version = " --form \"api_version=#{params[:api_version]}\" "
|
21
|
+
UI.message "api_version: #{api_version}"
|
22
|
+
end
|
23
|
+
rescue Exception => e
|
24
|
+
UI.message "error at checking api version, caused by #{e}"
|
25
|
+
end
|
26
|
+
|
27
|
+
begin
|
28
|
+
channel = ""
|
29
|
+
if !params[:channel].nil? && !params[:channel].empty?
|
30
|
+
channel = " --form \"channel=#{params[:channel]}\" "
|
31
|
+
UI.message "channel: #{channel}"
|
32
|
+
end
|
33
|
+
rescue Exception => e
|
34
|
+
UI.message "error at checking api version, caused by #{e}"
|
35
|
+
end
|
36
|
+
|
37
|
+
cmd = "curl -k \"https://api.bugly.qq.com/openapi/file/upload/symbol?app_key=#{params[:app_key]}&app_id=#{params[:app_id]}\"" + api_version + " --form \"app_id=#{params[:app_id]}\"" + " --form \"app_key=#{params[:app_key]}\"" + " --form \"symbolType=#{params[:symbol_type]}\"" + " --form \"bundleId=#{params[:bundle_id]}\"" + " --form \"productVersion=#{params[:product_version]}\"" + channel + " --form \"fileName=#{params[:file_name]}\"" + " --form \"file=@#{params[:file_path]}\"" + " -o " + json_file
|
38
|
+
begin
|
39
|
+
sh(cmd)
|
40
|
+
obj = JSON.parse(File.read(json_file))
|
41
|
+
`rm upload_dsym_to_bugly_result.json`
|
42
|
+
ret = obj["rtcode"]
|
43
|
+
if ret == 0
|
44
|
+
UI.message "dSYM upload success"
|
45
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = true
|
46
|
+
else
|
47
|
+
UI.message "dSYM upload failed, result is #{obj}"
|
48
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
49
|
+
raise if params[:raise_if_error]
|
50
|
+
end
|
51
|
+
rescue
|
52
|
+
UI.message "dSYM upload failed"
|
53
|
+
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
54
|
+
raise if params[:raise_if_error]
|
55
|
+
end
|
9
56
|
end
|
10
57
|
|
11
58
|
def self.description
|
@@ -27,70 +74,79 @@ module Fastlane
|
|
27
74
|
|
28
75
|
def self.available_options
|
29
76
|
[
|
30
|
-
# FastlaneCore::ConfigItem.new(key: :your_option,
|
31
|
-
# env_name: "UPLOAD_DSYM_TO_BUGLY_YOUR_OPTION",
|
32
|
-
# description: "A description of your option",
|
33
|
-
# optional: false,
|
34
|
-
# type: String)
|
35
77
|
FastlaneCore::ConfigItem.new(key: :api_version,
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
78
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_API_VERSION",
|
79
|
+
description: "api version for UploadDsymToBuglyAction",
|
80
|
+
is_string: false,
|
81
|
+
default_value: 1),
|
40
82
|
FastlaneCore::ConfigItem.new(key: :app_id,
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
83
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_APP_ID",
|
84
|
+
description: "app id for UploadDsymToBuglyAction",
|
85
|
+
is_string: true,
|
86
|
+
verify_block: proc do |value|
|
87
|
+
UI.user_error!("No APP id for UploadDsymToBuglyAction given, pass using `app_id: 'app_id'`") unless (value and not value.empty?)
|
88
|
+
end),
|
47
89
|
FastlaneCore::ConfigItem.new(key: :app_key,
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
90
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_APP_KEY",
|
91
|
+
description: "app key for UploadDsymToBuglyAction",
|
92
|
+
is_string: true,
|
93
|
+
verify_block: proc do |value|
|
94
|
+
UI.user_error!("No APP key for UploadDsymToBuglyAction given, pass using `api_key: 'app_key'`") unless (value and not value.empty?)
|
95
|
+
end),
|
54
96
|
FastlaneCore::ConfigItem.new(key: :symbol_type,
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
97
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_SYMBOL_TYPE",
|
98
|
+
description: "symbol type for UploadDsymToBuglyAction",
|
99
|
+
is_string: false,
|
100
|
+
verify_block: proc do |value|
|
101
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `symbol_type: 'symbol_type'`") unless (value and not value.to_s.empty?)
|
102
|
+
end),
|
61
103
|
FastlaneCore::ConfigItem.new(key: :bundle_id,
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
104
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_BUNDLE_ID",
|
105
|
+
description: "bundle id for UploadDsymToBuglyAction",
|
106
|
+
is_string: true,
|
107
|
+
verify_block: proc do |value|
|
108
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `bundle_id: 'bundle_id'`") unless (value and not value.empty?)
|
109
|
+
end),
|
68
110
|
FastlaneCore::ConfigItem.new(key: :product_version,
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
111
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_PRODEUCT_VERSION",
|
112
|
+
description: "product version for UploadDsymToBuglyAction",
|
113
|
+
is_string: true,
|
114
|
+
verify_block: proc do |value|
|
115
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `product_version: 'product_version'`") unless (value and not value.empty?)
|
116
|
+
end),
|
75
117
|
FastlaneCore::ConfigItem.new(key: :channel,
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
118
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_CHANNEL",
|
119
|
+
description: "channel for UploadDsymToBuglyAction",
|
120
|
+
is_string: true,
|
121
|
+
default_value: "fastlane"),
|
80
122
|
FastlaneCore::ConfigItem.new(key: :file_name,
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
123
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_FILE_NAME",
|
124
|
+
description: "file name for UploadDsymToBuglyAction",
|
125
|
+
is_string: true,
|
126
|
+
verify_block: proc do |value|
|
127
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `file_name: 'file_name'`") unless (value and not value.empty?)
|
128
|
+
end),
|
87
129
|
FastlaneCore::ConfigItem.new(key: :file_path,
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
130
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_FILE",
|
131
|
+
description: "file for UploadDsymToBuglyAction",
|
132
|
+
is_string: true,
|
133
|
+
verify_block: proc do |value|
|
134
|
+
UI.user_error!("No symbol type for UploadDsymToBuglyAction given, pass using `file_path: 'file_path'`") unless (value and not value.empty?)
|
135
|
+
end),
|
136
|
+
FastlaneCore::ConfigItem.new(key: :raise_if_error,
|
137
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_RAISE_IF_ERROR",
|
138
|
+
description: "Raises an error if fails, so you can fail CI/CD jobs if necessary \(true/false)",
|
139
|
+
default_value: true,
|
140
|
+
is_string: false,
|
141
|
+
type: Boolean,
|
142
|
+
optional: false),
|
143
|
+
]
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.output
|
147
|
+
# Define the shared values you are going to provide
|
148
|
+
[
|
149
|
+
["UPLOAD_DSYM_TO_BUGLY_RESULT", "upload result"],
|
94
150
|
]
|
95
151
|
end
|
96
152
|
|
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: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- liubo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- LICENSE
|
146
146
|
- README.md
|
147
147
|
- lib/fastlane/plugin/upload_dsym_to_bugly.rb
|
148
|
+
- lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_app_to_bugly_action.rb
|
148
149
|
- lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_dsym_to_bugly_action.rb
|
149
150
|
- lib/fastlane/plugin/upload_dsym_to_bugly/helper/upload_dsym_to_bugly_helper.rb
|
150
151
|
- lib/fastlane/plugin/upload_dsym_to_bugly/version.rb
|
@@ -167,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
- !ruby/object:Gem::Version
|
168
169
|
version: '0'
|
169
170
|
requirements: []
|
170
|
-
|
171
|
-
rubygems_version: 2.7.7
|
171
|
+
rubygems_version: 3.1.2
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: upload_dsym_to_bugly
|