class Motion::Project::App

Public Class Methods

build(platform, opts = {})
Also aliased as: build_without_cocoapods
build_with_cocoapods(platform, opts = {}) click to toggle source
# 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)

  # Install the resource which will be generated after built
  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
Also aliased as: build
build_without_cocoapods(platform, opts = {})
Alias for: build