fastlane-plugin-upload_dsym_to_bugly 2.0.1 → 2.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b688fde25af37f186763b15245e410a3334265fba920193bbb4d30ec368cba2
4
- data.tar.gz: f986bb43300e8c476a9da3bffa08fa6de4879c8abf9df3a390ec8159c2e6046b
3
+ metadata.gz: 56b6c1ae16243dc8d62132b246f37f3e83c328894dadbbd0e807051b40dcc536
4
+ data.tar.gz: 6bbdce12bca8794a7d4c6db7173a945473fb7b95ae3d84e9860cb288da0da70e
5
5
  SHA512:
6
- metadata.gz: 0f411f834fee0cabd1958edac2ceb580faba48a75916cf5ffdb635ca1ceb6af6f5299876f56a28ac8b696fa0034296a1729ebc2c5fa88604d5d231fe9a264fab
7
- data.tar.gz: e21ec9bf95eed1d556a34a44ef9d4c0e9b0610069505c423fcda3468440e1140ae5bde47356fa10b118f2d80c13c4c4d7eab1ed146f995891113a005c4526364
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-3.3.4.jar', __FILE__)
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
- 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}\""
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
- last_line = sh("tail -n 1 \"#{log_file}\"")
41
+ log_content = File.read("#{log_file}")
40
42
 
41
- success = last_line.include?("retCode: 200") and last_line.include?("\"msg\":\"success\"")
43
+ success = log_content.include?("retCode: 200") and log_content.include?("\"msg\":\"所有符号表都已经上传过。\"")
42
44
  if success
43
- UI.message "dSYM upload successfully 🎉 "
45
+ UI.success " 🎉 🎉 🎉 dSYM upload successfully (づ。◕‿‿◕。)づ"
44
46
  Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = true
45
47
  else
46
- UI.message "dSYM upload failed: #{last_line}"
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UploadDsymToBugly
3
- VERSION = "2.0.1"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
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.1
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: 2021-07-22 00:00:00.000000000 Z
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-3.3.4.jar
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.1.2
171
+ rubygems_version: 3.2.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: upload_dsym_to_bugly