Skip to content

Commit

Permalink
Fix missing dsyms in test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsmartin committed Apr 16, 2021
1 parent d6a9c13 commit 9b234a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions lib/fastlane/plugin/emerge/actions/emerge_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ def self.run(params)
FileUtils.mkdir_p application_folder
FileUtils.mkdir_p dsym_folder
FileUtils.cp_r(file_path, application_folder)
Dir.glob("#{absolute_path.dirname}/*/*.dsym") do |filename|
UI.message("Found dSYM: #{Pathname.new(filename).basename}")
FileUtils.cp_r(filename, dsym_folder)
end
copy_dsyms("#{absolute_path.dirname}/*.dsym", dsym_folder)
copy_dsyms("#{absolute_path.dirname}/*/*.dsym", dsym_folder)
Xcodeproj::Plist.write_to_path({"NAME" => "Emerge Upload"}, "#{d}/archive.xcarchive/Info.plist")
file_path = "#{absolute_path.dirname}/archive.xcarchive.zip"
ZipAction.run(
Expand Down Expand Up @@ -102,6 +100,13 @@ def self.run(params)
end
end

def self.copy_dsyms(from, to)
Dir.glob(from) do |filename|
UI.message("Found dSYM: #{Pathname.new(filename).basename}")
FileUtils.cp_r(filename, to)
end
end

def self.description
"Fastlane plugin for Emerge"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/emerge/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module Emerge
VERSION = "0.3.0"
VERSION = "0.3.1"
end
end

0 comments on commit 9b234a4

Please sign in to comment.