-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
111 lines (94 loc) · 5.12 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
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
$:.unshift("~/.rubymotion/rubymotion-templates")
# ===========================================================================================
# 1. Be sure to read `readme.md`.
# ===========================================================================================
require 'motion/project/template/ios'
begin
require 'bundler'
Bundler.require
rescue LoadError
end
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
define_icon_defaults!(app)
# ===========================================================================================
# 2. Set your app name (this is what will show up under the icon when your app is installed).
# ===========================================================================================
app.name = 'episode-38'
# version for your app
app.version = '1.0'
# ===========================================================================================
# 3. Set your deployment target (it's recommended that you at least target 10.0 and above).
# If you're using RubyMotion Starter Edition. You cannot set this value (the latest
# version of iOS will be used).
# ===========================================================================================
# app.deployment_target = '10.0'
# ===========================================================================================
# 4. Your app identifier is needed to deploy to an actual device. You do not need to set this
# if you are using the simulator. You can create an app identifier at:
# https://developer.apple.com/account/ios/identifier/bundle. You must enroll into Apple's
# Developer program to get access to this screen (there is an annual fee of $99).
# ===========================================================================================
# app.identifier = ''
# ===========================================================================================
# 5. If you need to reference any additional iOS libraries, use the config array below.
# Default libraries: UIKit, Foundation, CoreGraphics, CoreFoundation, CFNetwork, CoreAudio
# ===========================================================================================
# app.frameworks << "StoreKit"
# reasonable defaults
app.device_family = [:iphone, :ipad]
app.interface_orientations = [:portrait]
app.info_plist['UIRequiresFullScreen'] = true
app.info_plist['ITSAppUsesNonExemptEncryption'] = false
# ===========================================================================================
# 6. To deploy to an actual device, you will need to create a developer certificate at:
# https://developer.apple.com/account/ios/certificate/development
# The name of the certificate will be accessible via Keychain Access. Set the value you
# see there below.
# ===========================================================================================
# app.codesign_certificate = ''
# ===========================================================================================
# 7. To deploy to an actual device, you will need to create a provisioning profile. First:
# register your device at:
# https://developer.apple.com/account/ios/device/
#
# Then create a development provisioning profile at:
# https://developer.apple.com/account/ios/profile/limited
#
# Download the profile and set the path to the download location below.
# ===========================================================================================
# app.provisioning_profile = ''
# ===========================================================================================
# 8. Similar to Step 7. Production, create a production certificate at:
# https://developer.apple.com/account/ios/certificate/distribution.
# These values will need to be set to before you can deploy to the App Store. Compile
# using `rake clean archive:distribution` and upload the .ipa under ./build using
# Application Loader.
# ===========================================================================================
# app.codesign_certificate = ''
# app.provisioning_profile = ''
# ===========================================================================================
# 9. If you want to create a beta build. Uncomment the line below and set your profile to
# point to your production provisions (Step 8).
# ===========================================================================================
# app.entitlements['beta-reports-active'] = true
end
def define_icon_defaults!(app)
# This is required as of iOS 11.0 (you must use asset catalogs to
# define icons or your app will be rejected. More information in
# located in the readme.
app.info_plist['CFBundleIcons'] = {
'CFBundlePrimaryIcon' => {
'CFBundleIconName' => 'AppIcon',
'CFBundleIconFiles' => ['AppIcon60x60']
}
}
app.info_plist['CFBundleIcons~ipad'] = {
'CFBundlePrimaryIcon' => {
'CFBundleIconName' => 'AppIcon',
'CFBundleIconFiles' => ['AppIcon60x60', 'AppIcon76x76']
}
}
end