-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
37 lines (32 loc) · 956 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
34
35
36
37
$:.unshift("/Library/RubyMotion/lib")
if ENV['osx']
require 'motion/project/template/osx'
else
require 'motion/project/template/ios'
end
require 'bundler'
Bundler.require(:development)
require 'motion-momentum'
module Motion
module Project
class Config
def spec_files=(spec_files)
@spec_files = spec_files
end
end
end
end
Motion::Project::App.setup do |app|
app.name = 'MomentumTest'
app.identifier = 'tv.motioninmotion.MomentumTest'
app.version = Momentum::VERSION
app.redgreen_style = :full
app.detect_dependencies = true
# Get correct files for iOS or OS X
app.files -= Dir.glob('./app/**/*.rb')
app.files += Dir.glob("./app/#{app.template}/**/*.rb")
app.spec_files -= Dir.glob('./spec/**/*.rb')
app.spec_files += Dir.glob('./spec/motion-momentum/**/*.rb')
app.spec_files += Dir.glob("./spec/motion-momentum-#{app.template}/**/*.rb")
app.resources_dirs = ["resources/#{app.template}"]
end