Class: Confetti::Template::IosInfo
- Inherits:
-
Base
- Object
- Mustache
- Base
- Confetti::Template::IosInfo
show all
- Defined in:
- lib/confetti/templates/ios_info.rb
Constant Summary
collapse
- ORIENTATIONS_MAP =
{
:landscape => [
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight"
],
:portrait => [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationPortraitUpsideDown"
],
:default => [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationPortraitUpsideDown",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight"
]
}
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#app_orientations ⇒ Object
49
50
51
|
# File 'lib/confetti/templates/ios_info.rb', line 49
def app_orientations
ORIENTATIONS_MAP[@config.orientation]
end
|
#bundle_identifier ⇒ Object
25
26
27
|
# File 'lib/confetti/templates/ios_info.rb', line 25
def bundle_identifier
@config.package
end
|
#bundle_version ⇒ Object
29
30
31
|
# File 'lib/confetti/templates/ios_info.rb', line 29
def bundle_version
@config.version_string
end
|
#devices ⇒ Object
41
42
43
44
45
46
47
|
# File 'lib/confetti/templates/ios_info.rb', line 41
def devices
nibs = ["NSMainNibFile"]
@config.preference_set.each do |preference|
nibs << "NSMainNibFile~ipad" if preference.name.match /^universal$/
end
nibs
end
|
#fullscreen? ⇒ Boolean
53
54
55
|
# File 'lib/confetti/templates/ios_info.rb', line 53
def fullscreen?
@config.preference(:fullscreen) == :true
end
|
#icons ⇒ Object
21
22
23
|
# File 'lib/confetti/templates/ios_info.rb', line 21
def icons
@config.plist_icon_set
end
|
#output_filename ⇒ Object
37
38
39
|
# File 'lib/confetti/templates/ios_info.rb', line 37
def output_filename
"Info.plist"
end
|
#prerendered_icon? ⇒ Boolean
57
58
59
|
# File 'lib/confetti/templates/ios_info.rb', line 57
def prerendered_icon?
@config.preference("prerendered-icon") == :true
end
|
#product_name ⇒ Object
33
34
35
|
# File 'lib/confetti/templates/ios_info.rb', line 33
def product_name
@config.name.name
end
|