iosInfoPlistTemplate function

String iosInfoPlistTemplate(
  1. String bundleIdentifier,
  2. String bundleTypeName,
  3. String fileExtension,
  4. String mimeType,
)

Implementation

String iosInfoPlistTemplate(
  String bundleIdentifier,
  String bundleTypeName,
  String fileExtension,
  String mimeType,
) {
  return '''
	<key>CFBundleDocumentTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeName</key>
			<string>$bundleTypeName</string>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>LSHandlerRank</key>
			<string>Owner</string>
			<key>LSItemContentTypes</key>
			<array>
				<string>$bundleIdentifier.ttm</string>
			</array>
		</dict>
	</array>
	<key>UTExportedTypeDeclarations</key>
	<array>
		<dict>
			<key>UTTypeConformsTo</key>
			<array>
				<string>public.data</string>
			</array>
			<key>UTTypeDescription</key>
			<string>$bundleTypeName</string>
			<key>UTTypeIdentifier</key>
			<string>$bundleIdentifier.ttm</string>
			<key>UTTypeSize64IconFile</key>
			<string></string>
			<key>UTTypeTagSpecification</key>
			<dict>
				<key>public.filename-extension</key>
				<array>
					<string>$fileExtension</string>
				</array>
				<key>public.mime-type</key>
				<string>$mimeType</string>
			</dict>
		</dict>
	</array>''';
}