diff --git a/JSONViewer.xcodeproj/project.pbxproj b/JSONViewer.xcodeproj/project.pbxproj index 1b435f9..69957a6 100644 --- a/JSONViewer.xcodeproj/project.pbxproj +++ b/JSONViewer.xcodeproj/project.pbxproj @@ -399,7 +399,8 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"JSONViewer/Preview Content\""; ENABLE_PREVIEWS = YES; - GENERATE_INFOPLIST_FILE = YES; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = JSONViewer/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Prism; INFOPLIST_KEY_CFBundleName = Prism; INFOPLIST_KEY_CFBundleDocumentTypes = ( @@ -407,11 +408,13 @@ CFBundleTypeName = "JSON Document"; CFBundleTypeRole = Viewer; LSItemContentTypes = ( "public.json" ); + CFBundleTypeExtensions = ( "json" ); }, { CFBundleTypeName = "JSON Lines Document"; CFBundleTypeRole = Viewer; LSItemContentTypes = ( "org.jsonlines.jsonl" ); + CFBundleTypeExtensions = ( "jsonl", "ndjson" ); }, ); INFOPLIST_KEY_UTImportedTypeDeclarations = ( @@ -419,7 +422,7 @@ UTTypeIdentifier = "org.jsonlines.jsonl"; UTTypeDescription = "JSON Lines Document"; UTTypeConformsTo = ( "public.plain-text" ); - UTTypeTagSpecification = { "public.filename-extension" = ( "jsonl" ); "public.mime-type" = "application/x-ndjson"; }; + UTTypeTagSpecification = { "public.filename-extension" = ( "jsonl", "ndjson" ); "public.mime-type" = ( "application/x-ndjson", "application/ndjson" ); }; }, ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; @@ -447,7 +450,8 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"JSONViewer/Preview Content\""; ENABLE_PREVIEWS = YES; - GENERATE_INFOPLIST_FILE = YES; + GENERATE_INFOPLIST_FILE = NO; + INFOPLIST_FILE = JSONViewer/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Prism; INFOPLIST_KEY_CFBundleName = Prism; INFOPLIST_KEY_CFBundleDocumentTypes = ( @@ -455,11 +459,13 @@ CFBundleTypeName = "JSON Document"; CFBundleTypeRole = Viewer; LSItemContentTypes = ( "public.json" ); + CFBundleTypeExtensions = ( "json" ); }, { CFBundleTypeName = "JSON Lines Document"; CFBundleTypeRole = Viewer; LSItemContentTypes = ( "org.jsonlines.jsonl" ); + CFBundleTypeExtensions = ( "jsonl", "ndjson" ); }, ); INFOPLIST_KEY_UTImportedTypeDeclarations = ( @@ -467,7 +473,7 @@ UTTypeIdentifier = "org.jsonlines.jsonl"; UTTypeDescription = "JSON Lines Document"; UTTypeConformsTo = ( "public.plain-text" ); - UTTypeTagSpecification = { "public.filename-extension" = ( "jsonl" ); "public.mime-type" = "application/x-ndjson"; }; + UTTypeTagSpecification = { "public.filename-extension" = ( "jsonl", "ndjson" ); "public.mime-type" = ( "application/x-ndjson", "application/ndjson" ); }; }, ); INFOPLIST_KEY_NSHumanReadableCopyright = ""; diff --git a/JSONViewer/Info.plist b/JSONViewer/Info.plist index 28af1f4..edbc85a 100644 --- a/JSONViewer/Info.plist +++ b/JSONViewer/Info.plist @@ -29,6 +29,10 @@ public.json + CFBundleTypeExtensions + + json + CFBundleTypeName @@ -39,6 +43,11 @@ org.jsonlines.jsonl + CFBundleTypeExtensions + + jsonl + ndjson + @@ -59,9 +68,13 @@ public.filename-extension jsonl + ndjson public.mime-type - application/x-ndjson + + application/x-ndjson + application/ndjson +