49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/motion/project/cocoapods.rb', line 49
def build_with_cocoapods(platform, opts = {})
unless File.exist?(CocoaPods::PODS_ROOT)
$stderr.puts "[!] No CocoaPods dependencies found in #{CocoaPods::PODS_ROOT}, run the `[bundle exec] rake pod:install` task."
exit 1
end
build_without_cocoapods(platform, opts)
installed_resources = App.config.pods.install_resources
unless installed_resources.empty?
app_resources_dir = config.app_resources_dir(platform)
installed_resources.each do |path|
App.builder.copy_resource(path.to_s, File.join(app_resources_dir, path.basename.to_s))
end
end
end
|