fastlane-plugin-upload_dsym_to_bugly 2.0.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/upload_dsym_to_bugly/actions/upload_dsym_to_bugly_action.rb +15 -7
- data/lib/fastlane/plugin/upload_dsym_to_bugly/jars/{buglyqq-upload-symbol-3.3.4.jar → buglyqq-upload-symbol.jar} +0 -0
- 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: 56b6c1ae16243dc8d62132b246f37f3e83c328894dadbbd0e807051b40dcc536
|
4
|
+
data.tar.gz: 6bbdce12bca8794a7d4c6db7173a945473fb7b95ae3d84e9860cb288da0da70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feda282ea6961d845cc7c9315169431a7e44179ceb9f7e18a4c4af1eaba39fbd810489e9cc724e1e95fe05fdb6490571d6c497810725e3da64766fc6080d2ea2
|
7
|
+
data.tar.gz: ad01ca189463cdc7a7ba8e885a71227df28afeaba8d0789da3fd224afa75132ff7bbf35b90605ebea3df4213f70cfba99e146bb87fb32f1aec911332052c0366
|
@@ -10,7 +10,7 @@ module Fastlane
|
|
10
10
|
class UploadDsymToBuglyAction < Action
|
11
11
|
def self.run(params)
|
12
12
|
|
13
|
-
jar_path = File.expand_path('../../jars/buglyqq-upload-symbol
|
13
|
+
jar_path = File.expand_path('../../jars/buglyqq-upload-symbol.jar', __FILE__)
|
14
14
|
UI.message "jar path: #{jar_path}"
|
15
15
|
|
16
16
|
file_path = File.expand_path("#{params[:file_path]}")
|
@@ -30,20 +30,22 @@ module Fastlane
|
|
30
30
|
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
31
31
|
raise if params[:raise_if_error]
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
|
+
java_path = params[:java_path] || 'java'
|
35
|
+
cmd = "#{java_path} -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
36
|
|
35
37
|
log_file = "dSYM_upload_result.log"
|
36
38
|
|
37
39
|
begin
|
38
40
|
sh("#{cmd} > #{log_file}")
|
39
|
-
|
41
|
+
log_content = File.read("#{log_file}")
|
40
42
|
|
41
|
-
success =
|
43
|
+
success = log_content.include?("retCode: 200") and log_content.include?("\"msg\":\"所有符号表都已经上传过。\"")
|
42
44
|
if success
|
43
|
-
UI.
|
45
|
+
UI.success " 🎉 🎉 🎉 dSYM upload successfully (づ。◕‿‿◕。)づ"
|
44
46
|
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = true
|
45
47
|
else
|
46
|
-
UI.
|
48
|
+
UI.error "┭┮﹏┭┮ dSYM upload failed ┭┮﹏┭┮"
|
47
49
|
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
|
48
50
|
raise if params[:raise_if_error]
|
49
51
|
end
|
@@ -123,7 +125,13 @@ module Fastlane
|
|
123
125
|
default_value: true,
|
124
126
|
is_string: false,
|
125
127
|
type: Boolean,
|
126
|
-
optional: false)
|
128
|
+
optional: false),
|
129
|
+
FastlaneCore::ConfigItem.new(key: :java_path,
|
130
|
+
env_name: "FL_UPLOAD_DSYM_TO_BUGLY_JAVA_PATH",
|
131
|
+
description: "Use specific Java, instead of system one",
|
132
|
+
default_value: nil,
|
133
|
+
is_string: true,
|
134
|
+
optional: true),
|
127
135
|
]
|
128
136
|
end
|
129
137
|
|
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: 2.0
|
4
|
+
version: 2.2.0
|
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: 2023-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -147,7 +147,7 @@ files:
|
|
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
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
|
150
|
+
- lib/fastlane/plugin/upload_dsym_to_bugly/jars/buglyqq-upload-symbol.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:
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.2.3
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: upload_dsym_to_bugly
|