-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
82 lines (74 loc) · 2.18 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
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'bundler/setup'
Bundler.require :default
require 'yaml'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'RubyFriendsCamera'
app.version = '1.1.0'
app.short_version = app.version
app.deployment_target = '5.1'
app.interface_orientations = [:portrait]
app.prerendered_icon = true
app.frameworks += [
'Accelerate',
'AssetsLibrary',
'ImageIO',
'MobileCoreServices',
'QuartzCore',
'CoreImage'
]
app.weak_frameworks += [
'Social', 'Twitter'
]
conf_file = './config.yml'
if File.exists?(conf_file)
config = YAML::load_file(conf_file)
app.testflight.sdk = 'vendor/TestFlightSDK2.0.0'
app.testflight.api_token = config['testflight']['api_token']
app.testflight.team_token = config['testflight']['team_token']
app.testflight.notify = true
app.testflight.distribution_lists = config['testflight']['distribution_lists']
app.pixate.user = config['pixate']['user']
app.pixate.key = config['pixate']['key']
app.pixate.framework = 'vendor/Pixate.framework'
app.identifier = config['identifier']
app.info_plist['CFBundleURLTypes'] = [
{ 'CFBundleURLName' => config['identifier'],
'CFBundleURLSchemes' => ['ruby-friends-camera'] }
]
env = ENV['ENV'] || 'development'
app.codesign_certificate = config[env]['certificate']
app.provisioning_profile = config[env]['provisioning']
end
app.pods do
pod 'NanoStore', '~> 2.6.0'
pod 'NYXImagesKit'
pod 'NSData+MD5Digest'
pod 'SVWebViewController'
pod 'SVProgressHUD'
pod 'PSTCollectionView'
end
app.libs << '-fobjc-arc'
app.info_plist['UIRequiredDeviceCapabilities'] = [
'still-camera'
]
app.development do
app.entitlements['get-task-allow'] = true
end
app.release do
app.entitlements['get-task-allow'] = false
end
end
desc "Set the env to 'adhoc'"
task :set_adhoc do
ENV['ENV'] = 'adhoc'
end
desc "Run Testflight with the adhoc provisioning profile"
# e.g. rake tf notes="My release notes"
task :tf => [
:set_adhoc,
:testflight
]