-
Notifications
You must be signed in to change notification settings - Fork 14
/
Rakefile
38 lines (29 loc) · 883 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
38
$:.unshift("/Library/RubyMotion/lib")
begin
if ENV['osx']
require 'motion/project/template/osx'
else
require 'motion/project/template/ios'
end
rescue LoadError
require 'motion/project'
end
require 'bundler/setup'
Bundler.setup
Bundler.require
require 'rubygems/tasks'
Gem::Tasks.new
Motion::Project::App.setup do |app|
gemspec = Dir.glob(File.join(File.dirname(__FILE__), "*.gemspec")).first
gem_name = File.basename(gemspec).gsub("\.gemspec", "")
app.development do
app.files += Dir.glob(File.join(File.dirname(__FILE__), "lib/#{gem_name}/**/*.rb"))
app.files << File.join(File.dirname(__FILE__), "lib/spec/spec_delegate.rb")
app.delegate_class = "SpecDelegate"
app.resources_dirs = %w(spec/resources/images)
app.info_plist['NSAppTransportSecurity'] = {
'NSAllowsArbitraryLoads' => true
}
end
app.name = gem_name
end