-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (29 loc) · 1.05 KB
/
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
34
35
36
37
38
# frozen_string_literal: true
$LOAD_PATH.unshift('/Library/RubyMotion/lib')
$LOAD_PATH.unshift('~/.rubymotion/rubymotion-templates')
platform = ENV.fetch('platform', 'osx')
testing = true if ARGV.join(' ') =~ /spec/
require "motion/project/template/#{platform}"
require 'rubygems'
raise 'export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES' unless ENV['OBJC_DISABLE_INITIALIZE_FORK_SAFETY'] == 'YES'
begin
require 'bundler'
testing ? Bundler.require(:default, :spec) : Bundler.require
require 'motion/project/template/gem/gem_tasks'
rescue LoadError
end
require 'motion-expect' if testing
Motion::Project::App.setup do |app|
app.name = 'motion-html-pipeline'
app.identifier = 'com.motion-gemtest.motion-html-pipeline'
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'
else
app.sdk_version = '11.0'
app.deployment_target = '11.0'
end
app.detect_dependencies = true
end