Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ios handle custom activation rule #114

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

achorein
Copy link
Owner

@achorein achorein commented Sep 23, 2024

Summary

    "plugins": [
      [
        "expo-share-intent",
        {
              "iosActivationRules": "SUBQUERY (\nextensionItems,\n$extensionItem,\nSUBQUERY (\n$extensionItem.attachments,\n$attachment,\nANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO \"com.adobe.pdf\"\n|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO \"public.file-url\"\n|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO \"public.url\"\n|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO \"public.jpeg\"\n|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO \"public.png\"\n).@count == $extensionItem.attachments.@count\n).@count >= 1",
         ...
        }
      ],

image

image

Todo

  • Handle custom activation rule in plugin
  • Map custom type identifier for pdf in ShareExtensionViewController
  • Update README.md

Issue

Fixes #104

@achorein achorein marked this pull request as ready for review September 23, 2024 13:20
@achorein achorein force-pushed the feat/ios-custom-activation-rule branch from 12d70bb to 312baba Compare October 2, 2024 18:48
@achorein achorein force-pushed the feat/ios-custom-activation-rule branch from ebd0375 to 2f3f1a4 Compare October 8, 2024 15:15
@achorein achorein merged commit f44bc9c into main Oct 8, 2024
4 checks passed
@achorein achorein deleted the feat/ios-custom-activation-rule branch October 8, 2024 15:19
achorein added a commit that referenced this pull request Oct 13, 2024
* feat: ios handle custom activation rule

* handle pdf content type

* fix xcode compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot share file from Safari
1 participant