aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile
diff options
context:
space:
mode:
authorCode Love <codelove77@proton.me>2025-06-01 06:47:51 -0400
committerGitHub <noreply@github.com>2025-06-01 11:47:51 +0100
commit5f473401d67de6e366ef1b74805ed82c56d9682e (patch)
treed0414ac92e17a184fbc80a86fdfe1476f893f246 /apps/mobile
parent9695bba2e993b48ae333da622fa459dbaacb9349 (diff)
downloadkarakeep-5f473401d67de6e366ef1b74805ed82c56d9682e.tar.zst
feat(mobile): Add PDF support to share extension (#1494)
Enable the mobile app to receive PDF files from other apps via the iOS/Android share sheet. PDFs can now be shared from Files app, email clients, and other apps that support document sharing. - Add PDF UTI (com.adobe.pdf) to iOS share extension activation rules - Add application/pdf to Android intent filters Known limitation: PDFs viewed in Safari cannot be shared directly as Safari shares the PDF URL rather than the file itself. Users can share the URL instead, and Karakeep will fetch the PDF from that URL. Addresses issue #284 for file attachment support
Diffstat (limited to 'apps/mobile')
-rw-r--r--apps/mobile/app.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index 159319d2..6b3ab543 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -62,9 +62,11 @@
"NSExtensionActivationSupportsWebPageWithMaxCount": 1,
"NSExtensionActivationSupportsImageWithMaxCount": 1,
"NSExtensionActivationSupportsMovieWithMaxCount": 0,
- "NSExtensionActivationSupportsText": true
+ "NSExtensionActivationSupportsText": true,
+ "NSExtensionActivationSupportsFileWithMaxCount": 10,
+ "NSExtensionActivationRule": "SUBQUERY (extensionItems, $extensionItem, SUBQUERY ($extensionItem.attachments, $attachment, SUBQUERY ($attachment.registeredTypeIdentifiers, $uti, $uti UTI-CONFORMS-TO \"com.adobe.pdf\" || $uti UTI-CONFORMS-TO \"public.image\" || $uti UTI-CONFORMS-TO \"public.url\" || $uti UTI-CONFORMS-TO \"public.plain-text\").@count >= 1).@count >= 1).@count >= 1"
},
- "androidIntentFilters": ["text/*", "image/*"]
+ "androidIntentFilters": ["text/*", "image/*", "application/pdf"]
}
],
"expo-secure-store",