Skip to content

Commit

Permalink
feat: 同步 Bugly 更新,支持高版本 Java
Browse files Browse the repository at this point in the history
  • Loading branch information
刘波 committed Jul 24, 2023
1 parent 7646cb6 commit 3e8adb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module SharedValues
class UploadDsymToBuglyAction < Action
def self.run(params)

jar_path = File.expand_path('../../jars/buglyqq-upload-symbol-3.3.4.jar', __FILE__)
jar_path = File.expand_path('../../jars/buglyqq-upload-symbol.jar', __FILE__)
UI.message "jar path: #{jar_path}"

file_path = File.expand_path("#{params[:file_path]}")
Expand Down Expand Up @@ -38,14 +38,14 @@ def self.run(params)

begin
sh("#{cmd} > #{log_file}")
last_line = sh("tail -n 1 \"#{log_file}\"")
log_content = File.read("#{log_file}")

success = last_line.include?("retCode: 200") and last_line.include?("\"msg\":\"success\"")
success = log_content.include?("retCode: 200") and log_content.include?("\"msg\":\"所有符号表都已经上传过。\"")
if success
UI.message "dSYM upload successfully 🎉 "
UI.success " 🎉 🎉 🎉 dSYM upload successfully (づ。◕‿‿◕。)づ"
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = true
else
UI.message "dSYM upload failed: #{last_line}"
UI.error "┭┮﹏┭┮ dSYM upload failed ┭┮﹏┭┮"
Actions.lane_context[SharedValues::UPLOAD_DSYM_TO_BUGLY_RESULT] = false
raise if params[:raise_if_error]
end
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/upload_dsym_to_bugly/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module UploadDsymToBugly
VERSION = "2.1.0"
VERSION = "2.2.0"
end
end

0 comments on commit 3e8adb0

Please sign in to comment.