-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
77 lines (58 loc) · 2.7 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
# -*- coding: utf-8 -*-
$LOAD_PATH.unshift('/Library/RubyMotion/lib')
require 'motion/project/template/ios'
require 'bundler'
Bundler.require
# require 'bubble-wrap'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings
app.name = 'ios-job-list'
app.identifier = 'com.your_domain_here.ios-job-list'
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 - Set this to the lowest version you want to support in the App Store
# 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.files += Dir.glob(File.join(app.project_dir, 'lib/**/*.rb'))
app.info_plist['NSAppTransportSecurity'] = { 'NSAllowsArbitraryLoads' => true } # allow any HTTP request
# 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.pods do
pod 'SDWebImage'
# pod 'JGProgressHUD'
# pod 'SVProgressHUD'
# pod "FontasticIcons"
end
app.development do
app.codesign_certificate = 'iPhone Developer: YOURNAME'
app.provisioning_profile = 'signing/ios-job-list.mobileprovision'
end
app.release do
app.entitlements['get-task-allow'] = false
app.codesign_certificate = 'iPhone Distribution: YOURNAME'
app.provisioning_profile = 'signing/ios-job-list.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
task :"build:simulator" => :"schema:build"