Skip to content

Commit

Permalink
v3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mzsoliman committed Aug 7, 2014
1 parent 89fa24e commit ce52cf9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Instabug.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Instabug"
s.version = "3.4.2"
s.version = "3.4.3"
s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com"
s.homepage = "http://instabug.com"
s.license = {
Expand All @@ -23,7 +23,7 @@ Pod::Spec.new do |s|
}
s.author = { "Instabug" => "contactus@instabug.com" }
s.platform = :ios, '5.0'
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.2" }
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => "3.4.3" }
s.source_files = 'Instabug.framework/Versions/A/Headers/*.{h}'
s.resources = 'Instabug.bundle', 'add_instabug_build_script.rb'
s.preserve_paths = 'Instabug.framework/*', 'Instabug.bundle', 'add_instabug_build_script.rb'
Expand Down
27 changes: 17 additions & 10 deletions add_instabug_build_script.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'xcodeproj'
require 'logger'
$LOG = Logger.new('./log_file.log', 'monthly')

INSTABUG_PHASE_NAME = "Upload Instabug dSYM"
INSTABUG_PHASE_SCRIPT = <<-SCRIPTEND
Expand All @@ -12,11 +10,20 @@
fi
source "${SCRIPT_SRC}"
SCRIPTEND

$LOG.debug("env: #{ENV["PWD"]}")
project_path = Dir.glob("#{ENV["PWD"]}/*.xcodeproj")
project = Xcodeproj::Project.open(project_path.first)
main_target = project.targets.first
phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
phase.shell_script = INSTABUG_PHASE_SCRIPT
project.save()
current_dir = Dir.pwd
while true
Dir.chdir("..")
if current_dir != Dir.pwd
current_dir = Dir.pwd
else
break
end
project_path = Dir.glob("#{current_dir}/*.xcodeproj")
unless project_path.first.nil?
project = Xcodeproj::Project.open(project_path.first)
main_target = project.targets.first
phase = main_target.new_shell_script_build_phase(INSTABUG_PHASE_NAME)
phase.shell_script = INSTABUG_PHASE_SCRIPT
project.save()
end
end
18 changes: 0 additions & 18 deletions log_file.log

This file was deleted.

0 comments on commit ce52cf9

Please sign in to comment.