# -*- 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 << 'MobileCoreServices'
  app.info_plist['NSExtension'] = {
    'NSExtensionAttributes' => {
      'NSExtensionActivationRule' => {
        'NSExtensionActivationSupportsFileWithMaxCount' => 0,
        'NSExtensionActivationSupportsImageWithMaxCount' => 1,
        'NSExtensionActivationSupportsMovieWithMaxCount' => 0,
        'NSExtensionActivationSupportsText' => false, 
        'NSExtensionActivationSupportsWebURLWithMaxCount' => 0
      },
    },
    # Use 'NSExtensionPrincipalClass' if you want to setup the UI in code
    # 'NSExtensionPrincipalClass' => 'ActionViewController',
    'NSExtensionMainStoryboard' => 'MainInterface',
    'NSExtensionPointIdentifier' => 'com.apple.ui-services'
  }
end