class Motion::Project::App
Public Class Methods
build(platform, options = {})
click to toggle source
# File lib/acknowledgements/resources.rb, line 8 def build platform, options = {} acknowledgements = MotionAcknowledgements::Settings.new root_path = acknowledgements.plist_file unless File.exist? root_path warn 'Please run: `rake acknowledgements:generate` in order to create a Settings.bundle or remove the motion-acknowledgements gem from your project.' abort end # Run the normal build process. build_before_copy_acknowledgements(platform, options) # Now the app is built, but not codesigned yet. destination = File.join(config.app_bundle(platform), 'Settings.bundle/Acknowledgements.plist') pods_path = 'vendor/Pods/Pods-acknowledgements.plist' pods_alt_path = 'vendor/Pods/Target Support Files/Pods-RubyMotion/Pods-RubyMotion-acknowledgements.plist' if File.exist? pods_path info 'Copy', destination FileUtils.cp_r(pods_path, destination, :remove_destination => true) else if File.exist? pods_alt_path info 'Copy', destination FileUtils.cp_r(pods_alt_path, destination, :remove_destination => true) else warn 'Could not find CocoaPods Acknowledgement file.' end end end
Also aliased as: build_before_copy_acknowledgements
build_before_copy_acknowledgements(platform, options = {})
The original `build' method can be found here: github.com/HipByte/RubyMotion/blob/master/lib/motion/project/app.rb#L75-L77
Alias for: build