This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Rakefile
147 lines (132 loc) · 4.32 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'
require 'bundler/setup'
Bundler.require :default
require 'sugarcube-attributedstring'
require 'bubble-wrap/reactor'
ENV['args'] ||= "-AppleLanguages '(ja)'"
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'HBFav'
app.version = "2.9.3"
app.short_version = "2.9.3"
app.sdk_version = '10.1'
app.deployment_target = '8.0'
app.device_family = [:iphone, :ipad]
app.identifier = "HBFav"
app.prerendered_icon = true
app.status_bar_style = :light_content
app.my_env.file = './config/environment.yaml'
## Very experimental
app.archs['iPhoneOS'] << 'arm64'
app.archs['iPhoneSimulator'] << 'x86_64'
app.development do
app.provisioning_profile = '/Users/naoya/Dropbox/HBFav/HBFav_with_Push_Notification.mobileprovision'
app.codesign_certificate='iPhone Developer: Naoya Ito (DCUZR42N2P)'
app.entitlements['aps-environment'] = 'development'
end
app.release do
app.provisioning_profile = '/Users/naoya/Dropbox/HBFav/HBFav_with_Push_Notification_for_Production.mobileprovision'
app.codesign_certificate='iPhone Distribution: Naoya Ito (KC9234ZWM8)'
app.entitlements['aps-environment'] = 'production'
end
app.interface_orientations = [:portrait]
app.info_plist['UISupportedInterfaceOrientations~ipad'] = [
'UIInterfaceOrientationPortrait',
'UIInterfaceOrientationPortraitUpsideDown',
'UIInterfaceOrientationLandscapeLeft',
'UIInterfaceOrientationLandscapeRight'
]
app.info_plist['UILaunchStoryboardName'] = 'LaunchScreen'
app.info_plist['NSAppTransportSecurity'] = {
'NSAllowsArbitraryLoads' => true
}
app.info_plist["UILaunchImages"] = [
# for iPhone 6 Plus
{
"UILaunchImageMinimumOSVersion" => "8.0",
"UILaunchImageName" => "Default-736h@3x",
"UILaunchImageOrientation" => "Portrait",
"UILaunchImageSize" => "{414, 736}"
},
# for iPhone 6
{
"UILaunchImageMinimumOSVersion" => "8.0",
"UILaunchImageName" => "Default-667h@2x",
"UILaunchImageOrientation" => "Portrait",
"UILaunchImageSize" => "{375, 667}"
},
# for iPhone 5, iPhone 5s
{
"UILaunchImageMinimumOSVersion" => "6.1",
"UILaunchImageName" => "Default-568h@2x",
"UILaunchImageOrientation" => "Portrait",
"UILaunchImageSize" => "{320, 568}"
}
]
app.info_plist['CFBundleURLTypes'] = [
{
'CFBundleURLName' => 'net.bloghackers.app',
'CFBundleURLSchemes' => ['hbfav']
},
{
'CFBundleURLName' => 'com.getpocket.sdk',
'CFBundleURLSchemes' => ['pocketapp16058']
}
]
app.info_plist['MinimumOSVersion'] = '7.0'
app.info_plist['UIViewControllerBasedStatusBarAppearance'] = false
app.info_plist['UIStatusBarStyle'] = "UIStatusBarStyleLightContent"
app.info_plist['UIBackgroundModes'] = ['fetch', 'remote-notification']
app.pods do
pod 'SFHFKeychainUtils'
pod 'PocketAPI', :git => '[email protected]:naoya/Pocket-ObjC-SDK.git', :branch => 'cocoapods-dependency'
pod 'NSDate+TimeAgo'
pod 'TUSafariActivity'
pod 'SVProgressHUD'
pod 'JASidePanels'
pod 'TTTAttributedLabel', :git => '[email protected]:TTTAttributedLabel/TTTAttributedLabel.git'
pod 'AFNetworking', '~> 1.3'
pod 'ARChromeActivity'
pod 'HatenaBookmarkSDK', :git => '[email protected]:hatena/Hatena-Bookmark-iOS-SDK.git'
pod 'MPNotificationView', :git => 'https://github.com/naoya/MPNotificationView.git', :branch => 'HBFav'
end
app.frameworks += [
'Accounts',
'AVFoundation',
'AudioToolbox',
'CFNetwork',
'CoreData',
'ImageIO',
'MapKit',
'MobileCoreServices',
'QuartzCore',
'Security',
'Social',
'StoreKit',
'SystemConfiguration',
]
app.weak_frameworks += [
'MediaAccessibility',
'WebKit'
]
app.libs += %W(/usr/lib/libz.dylib /usr/lib/libsqlite3.dylib)
app.entitlements['keychain-access-groups'] = [
app.seed_id + '.' + app.identifier
]
## Parse.com
app.vendor_project(
'vendor/Bolts.framework',
:static,
:products => ['Bolts'],
:headers_dir => 'Headers'
)
app.vendor_project(
'vendor/Parse.framework',
:static,
:products => ['Parse'],
:headers_dir => 'Headers'
)
end