unless defined?(Motion::Project::Config)
  raise "This file must be required within a RubyMotion project Rakefile."
end

Motion::Project::App.setup do |app|
  app.development do
    if File.exist? ('/Applications/Reveal.app')
      app.vendor_project('/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/Reveal.framework', :static, :products => ['Reveal'], :cflags => '-ObjC')
      app.frameworks << 'CFNetwork'
      app.frameworks << 'QuartzCore'

    else
      puts "[warning] Reveal.app not found - Download beta from http://www.revealapp.com"
    end
  end
end

unless defined?(Motion::Project::Config)
  raise "This file must be required within a RubyMotion project Rakefile."
end

Motion::Project::App.setup do |app|
  app.development do
    if File.exist? ('/Applications/Reveal.app')
      # Fixes build issues with Reveal 1.5
      app.libs += ['/usr/lib/libz.dylib', '/usr/lib/libc++.dylib']
      app.vendor_project('/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/Reveal.framework', :static, :products => ['Reveal'], :cflags => '-ObjC')
      app.frameworks << 'CFNetwork'
      app.frameworks << 'QuartzCore'

    else
      puts "[warning] Reveal.app not found - Download beta from http://www.revealapp.com"
    end
  end
end

Fix Reveal 1.5 'Undefined symbols' build error
Fix Reveal 1.5 'Undefined symbols' build error
