# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios-extension'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = '<%= name %>'
  app.frameworks << "Photos"
  app.frameworks << "PhotosUI"
  app.info_plist['NSExtension'] = {
    'NSExtensionAttributes' => {
      "PHSupportedMediaTypes" => ["Image"]
    },
    'NSExtensionPrincipalClass' => 'PhotoEditingViewController',
    'NSExtensionPointIdentifier' => 'com.apple.photo-editing'
  }
end