nitc :: PlistTemplate :: _bundle_identifier
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: _bundle_version
Value of CFBundleVersion, often a revision numbernitc :: PlistTemplate :: _product_name
Value of CFBundleName, pretty name of the applicationnitc :: PlistTemplate :: _short_version
Value of CFBundleShortVersionString, human readable versionnitc :: PlistTemplate :: bundle_identifier
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: bundle_identifier=
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: bundle_version
Value of CFBundleVersion, often a revision numbernitc :: PlistTemplate :: bundle_version=
Value of CFBundleVersion, often a revision numbernitc :: PlistTemplate :: defaultinit
nitc :: PlistTemplate :: product_name
Value of CFBundleName, pretty name of the applicationnitc :: PlistTemplate :: product_name=
Value of CFBundleName, pretty name of the applicationnitc :: PlistTemplate :: short_version
Value of CFBundleShortVersionString, human readable versionnitc :: PlistTemplate :: short_version=
Value of CFBundleShortVersionString, human readable versionnitc $ PlistTemplate :: SELF
Type of this instance, automatically specialized in every classnitc $ PlistTemplate :: rendering
Service used to render the content of the template.nitc :: PlistTemplate :: _bundle_identifier
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: _bundle_version
Value of CFBundleVersion, often a revision numbertemplate :: Template :: _is_frozen
Is the template allowing more modification (add
)
template :: Template :: _is_writing
Flag to avoid infinite recursivity if a template contains itselfnitc :: PlistTemplate :: _product_name
Value of CFBundleName, pretty name of the applicationtemplate :: Template :: _render_done
Flag to avoid multiple renderingnitc :: PlistTemplate :: _short_version
Value of CFBundleShortVersionString, human readable versionnitc :: PlistTemplate :: bundle_identifier
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: bundle_identifier=
Value of CFBundleIdentifier, namespace of the appnitc :: PlistTemplate :: bundle_version
Value of CFBundleVersion, often a revision numbernitc :: PlistTemplate :: bundle_version=
Value of CFBundleVersion, often a revision numbercore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Writable :: defaultinit
core :: Object :: defaultinit
template :: Template :: defaultinit
nitc :: PlistTemplate :: defaultinit
template :: Template :: is_frozen=
Is the template allowing more modification (add
)
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
template :: Template :: is_writing
Flag to avoid infinite recursivity if a template contains itselftemplate :: Template :: is_writing=
Flag to avoid infinite recursivity if a template contains itselfcore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: PlistTemplate :: product_name
Value of CFBundleName, pretty name of the applicationnitc :: PlistTemplate :: product_name=
Value of CFBundleName, pretty name of the applicationtemplate :: Template :: render_done=
Flag to avoid multiple renderingnitc :: PlistTemplate :: short_version
Value of CFBundleShortVersionString, human readable versionnitc :: PlistTemplate :: short_version=
Value of CFBundleShortVersionString, human readable versioncore :: Writable :: write_to_bytes
Likewrite_to
but return a new Bytes (may be quite large)
core :: Writable :: write_to_file
Likewrite_to
but take care of creating the file
core :: Writable :: write_to_string
Likewrite_to
but return a new String (may be quite large).
# Template for a property list used by XCode for iOS projects
class PlistTemplate
super Template
# Value of CFBundleName, pretty name of the application
var product_name: String
# Value of CFBundleIdentifier, namespace of the app
var bundle_identifier: String
# Value of CFBundleShortVersionString, human readable version
var short_version: String
# Value of CFBundleVersion, often a revision number
var bundle_version: String
redef fun rendering
do
add """
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>{{{bundle_identifier}}}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>{{{product_name}}}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>{{{short_version}}}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>{{{bundle_version}}}</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
</dict>
</plist>
"""
end
end
src/platform/xcode_templates.nit:478,1--550,3