lib/cocoapods-tj/native/installer.rb in cocoapods-tj-1.0.1 vs lib/cocoapods-tj/native/installer.rb in cocoapods-tj-1.0.2
- old
+ new
@@ -1,20 +1,29 @@
require 'parallel'
require 'cocoapods'
require 'cocoapods-tj/native/pod_source_installer'
+require 'fileutils'
+require 'cocoapods-tj/config/config_builder'
module Pod
class Installer
alias old_create_pod_installer create_pod_installer
def create_pod_installer(pod_name)
installer = old_create_pod_installer(pod_name)
installer.installation_options = installation_options
installer
end
+ alias old_perform_post_install_actions perform_post_install_actions
+ def perform_post_install_actions
+ old_perform_post_install_actions
+ buildTemp = CBin::Config::Builder.instance.root_dir
+ buildTemp.rmtree if buildTemp&.exist?
+ end
+
alias old_install_pod_sources install_pod_sources
def install_pod_sources
if installation_options.install_with_multi_threads
if Pod.match_version?('~> 1.4.0')
install_pod_sources_for_version_in_1_4_0
@@ -39,16 +48,18 @@
previous = sandbox.manifest.version(spec.name)
title = "Installing #{spec.name} #{spec.version} (was #{previous})"
else
title = "Installing #{spec}"
end
- UI.titled_section(title.green, title_options) do
- install_source_of_pod(spec.name)
- end
+ # UI.titled_section(title.green, title_options) do
+ #
+ # end
+ install_source_of_pod(spec.name)
else
- UI.titled_section("Using #{spec}", title_options) do
- create_pod_installer(spec.name)
- end
+ create_pod_installer(spec.name)
+ # UI.titled_section("Using #{spec}", title_options) do
+ #
+ # end
end
end
end
def install_pod_sources_for_version_above_1_5_0