-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
121 lines (103 loc) · 3.93 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# -*- coding: utf-8 -*-
$:.unshift('/Library/RubyMotion/lib')
require 'motion/project/template/ios'
require 'bundler'
Bundler.require
# require 'bubble-wrap'
require 'motion-plot'
# $:.unshift("./lib/")
# require './lib/motion-plot'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings
app.name = "PeopleCounter"
app.identifier = 'com.your_domain_here.iosflextronics'
app.short_version = '0.1.0'
# Get version from git
#app.version = (`git rev-list HEAD --count`.strip.to_i).to_s
app.version = app.short_version
# RubyMotion by default selects the latest SDK you have installed,
# if you would like to specify the SDK to assure consistency across multiple machines,
# you can do so like the following examples
# app.sdk_version = '8.3'
# app.sdk_version = '7.1'
# Target OS
app.deployment_target = '7.1'
# app.deployment_target = '8.0'
app.icons = Dir.glob("resources/icon*.png").map{|icon| icon.split("/").last}
app.device_family = [:iphone, :ipad]
app.interface_orientations = [:portrait, :landscape_left, :landscape_right, :portrait_upside_down]
app.archs['iPhoneOS'] |= ['arm64']
app.files += Dir.glob(File.join(app.project_dir, 'lib/**/*.rb'))
# app.fonts = ['Oswald-Regular.ttf', 'FontAwesome.otf'] # These go in /resources
# Or use all *.ttf fonts in the /resources/fonts directory:
# app.fonts = Dir.glob("resources/fonts/*.ttf").map{|font| "fonts/#{font.split('/').last}"}
# app.frameworks += %w(QuartzCore CoreGraphics MediaPlayer MessageUI CoreData)
# app.vendor_project('vendor/Flurry', :static)
# app.vendor_project('vendor/DSLCalendarView', :static, :cflags => '-fobjc-arc') # Using arc
app.info_plist["UIViewControllerBasedStatusBarAppearance"] = false
app.status_bar_style = :light_content
app.info_plist['UILaunchImages'] = [
# iphone
{
'UILaunchImageName' => 'Default',
'UILaunchImageOrientation' => 'Portrait',
'UILaunchImageMinimumOSVersion' => '7.0',
'UILaunchImageSize' => '{320, 480}'
},
{
'UILaunchImageName' => 'Default-568h',
'UILaunchImageOrientation' => 'Portrait',
'UILaunchImageMinimumOSVersion' => '7.0',
'UILaunchImageSize' => '{320, 568}'
},
{
'UILaunchImageName' => 'Default-667h',
'UILaunchImageOrientation' => 'Portrait',
'UILaunchImageMinimumOSVersion' => '8.0',
'UILaunchImageSize' => '{375, 667}'
},
{
'UILaunchImageName' => 'Default-736h',
'UILaunchImageOrientation' => 'Portrait',
'UILaunchImageMinimumOSVersion' => '8.0',
'UILaunchImageSize' => '{414, 736}'
},
# ipad
{
'UILaunchImageName' => 'Default-Portrait',
'UILaunchImageOrientation' => 'Portrait',
'UILaunchImageMinimumOSVersion' => '7.0',
'UILaunchImageSize' => '{768, 1024}'
},
{
'UILaunchImageName' => 'Default-Landscape',
'UILaunchImageOrientation' => 'Landscape',
'UILaunchImageMinimumOSVersion' => '7.0',
'UILaunchImageSize' => '{768, 1024}'
}
]
app.pods do
pod 'JMImageCache'
# pod "SDWebImage"
# pod 'JGProgressHUD'
# pod 'SVProgressHUD'
# pod "FontasticIcons"
end
app.development do
app.codesign_certificate = "iPhone Developer: YOURNAME"
app.provisioning_profile = "signing/iosflextronics.mobileprovision"
end
app.release do
app.entitlements['get-task-allow'] = false
app.codesign_certificate = 'iPhone Distribution: YOURNAME'
app.provisioning_profile = "signing/iosflextronics.mobileprovision"
app.entitlements['beta-reports-active'] = true # For TestFlight
app.seed_id = "YOUR_SEED_ID"
app.entitlements['application-identifier'] = app.seed_id + '.' + app.identifier
app.entitlements['keychain-access-groups'] = [ app.seed_id + '.' + app.identifier ]
end
puts "Name: #{app.name}"
puts "Using profile: #{app.provisioning_profile}"
puts "Using certificate: #{app.codesign_certificate}"
end
# Remove this if you aren't using CDQ