-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
58 lines (43 loc) · 1.46 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'bundler'
if ARGV.join(' ') =~ /spec/
Bundler.require :default, :spec
else
Bundler.require
end
Motion::Project::App.setup do |app|
app.identifier = 'org.argosity.lb.sales'
app.name = 'LB Sales'
app.files = (app.files - Dir.glob('./app/**/*.rb')) +
Dir.glob("./lib/**/*.rb") +
Dir.glob("./config/**/*.rb") +
["./app/models/ledger_buddy_model.rb"] +
Dir.glob("./app/**/*.rb")
app.vendor_project('vendor/Reachability', :static)
app.vendor_project('vendor/TVNavigationController', :static)
app.vendor_project('vendor/iCarousel', :static)
app.vendor_project('vendor/SVProgressHUD', :static, cflags: '-fobjc-arc')
app.detect_dependencies = false
app.frameworks = %w{ MapKit ImageIO QuartzCore }
app.pods do
pod 'NSData+MD5Digest'
pod 'ViewDeck'
pod 'SDWebImage'
end
end
# Track and specify files and their mutual dependencies within the :motion
# Bundler group
#MotionBundler.setup do |app|
# app.require "hashie/mash"
# app.require 'set'
#end
task :resources do
icons = %w(success failure offline)
icons += (0..5).to_a.collect { |i| "weather-#{i}" }
icons.each do |icon|
sh "convert -resize 88x88 app/assets/#{icon}.png resources/#{icon}@2x.png"
sh "convert -resize 44x44 app/assets/#{icon}.png resources/#{icon}.png"
end
end