-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
33 lines (26 loc) · 855 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
$:.unshift("~/.rubymotion/rubymotion-templates")
platform = ENV.fetch('platform', 'osx')
testing = true if ARGV.join(' ') =~ /spec/
require "motion/project/template/#{platform}"
require 'rubygems'
require 'motion-benchmark'
begin
require 'bundler'
require 'motion/project/template/gem/gem_tasks'
testing ? Bundler.require(:default, :spec) : Bundler.require
rescue LoadError
end
require 'motion-expect' if testing
Motion::Project::App.setup do |app|
app.name = 'MotionKramdown'
app.identifier = 'com.digitalmoksha.MotionKramdown'
if platform == 'ios'
# must set to the maximum SDK that the open source license supports,
# which is the latest non-beta
app.sdk_version = '13.5'
app.deployment_target = '13.5'
end
DBT.analyze(app)
end