From 9b234a4e394b769037700eed4ddb2d60870c89e5 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Thu, 15 Apr 2021 20:45:00 -0700 Subject: [PATCH] Fix missing dsyms in test builds --- lib/fastlane/plugin/emerge/actions/emerge_action.rb | 13 +++++++++---- lib/fastlane/plugin/emerge/version.rb | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/fastlane/plugin/emerge/actions/emerge_action.rb b/lib/fastlane/plugin/emerge/actions/emerge_action.rb index ea9dec2..a172552 100644 --- a/lib/fastlane/plugin/emerge/actions/emerge_action.rb +++ b/lib/fastlane/plugin/emerge/actions/emerge_action.rb @@ -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( @@ -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 diff --git a/lib/fastlane/plugin/emerge/version.rb b/lib/fastlane/plugin/emerge/version.rb index a890ea9..67dc101 100644 --- a/lib/fastlane/plugin/emerge/version.rb +++ b/lib/fastlane/plugin/emerge/version.rb @@ -1,5 +1,5 @@ module Fastlane module Emerge - VERSION = "0.3.0" + VERSION = "0.3.1" end end