From 8cfb9a83c5e47eb465a89b33d18a847234bb4283 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Mon, 27 Apr 2020 16:33:10 -0400 Subject: [PATCH] mpjson support on iOS. --- .../project.pbxproj | 4 +-- .../Source/iOS/MasterPassword-Info.plist | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/platform-darwin/MasterPassword-iOS.xcodeproj/project.pbxproj b/platform-darwin/MasterPassword-iOS.xcodeproj/project.pbxproj index bfbc21fa..9b047485 100644 --- a/platform-darwin/MasterPassword-iOS.xcodeproj/project.pbxproj +++ b/platform-darwin/MasterPassword-iOS.xcodeproj/project.pbxproj @@ -4004,7 +4004,7 @@ ); OTHER_CFLAGS = ( "-DMPW_SODIUM=1", - "-DMPW_CPERCIVA=0", + "-DMPW_JSON=1", ); PRODUCT_BUNDLE_IDENTIFIER = com.lyndir.lhunath.MasterPassword; PRODUCT_NAME = MasterPassword; @@ -4040,7 +4040,7 @@ ); OTHER_CFLAGS = ( "-DMPW_SODIUM=1", - "-DMPW_CPERCIVA=0", + "-DMPW_JSON=1", ); PRODUCT_BUNDLE_IDENTIFIER = com.lyndir.lhunath.MasterPassword; PRODUCT_NAME = MasterPassword; diff --git a/platform-darwin/Source/iOS/MasterPassword-Info.plist b/platform-darwin/Source/iOS/MasterPassword-Info.plist index 4d5af2af..11e26e89 100644 --- a/platform-darwin/Source/iOS/MasterPassword-Info.plist +++ b/platform-darwin/Source/iOS/MasterPassword-Info.plist @@ -21,6 +21,7 @@ Alternate LSItemContentTypes + com.lyndir.masterpassword.json com.lyndir.masterpassword.sites @@ -125,6 +126,34 @@ UTExportedTypeDeclarations + + UTTypeConformsTo + + public.data + + UTTypeDescription + Master Password JSON export + UTTypeIconFiles + + Icon-Small.png + Icon-64.png + Icon-320.png + + UTTypeIdentifier + com.lyndir.masterpassword.json + UTTypeReferenceURL + https://gitlab.com/MasterPassword/MasterPassword/-/wikis/File-Format + UTTypeTagSpecification + + public.filename-extension + + mpjson + mpsites.json + + public.mime-type + text/plain + + UTTypeConformsTo @@ -145,6 +174,7 @@ public.filename-extension mpsites + mpsites.txt