-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #14. Updated example to match readme steps.
- Loading branch information
1 parent
b79c1c7
commit a364090
Showing
6 changed files
with
162 additions
and
183 deletions.
There are no files selected for viewing
160 changes: 87 additions & 73 deletions
160
share_handler/example/ios/Runner.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<!-- Add if you want custom group id rather than default. Set it in Build Settings -> User-Defined --> | ||
<key>AppGroupId</key> | ||
<string>$(CUSTOM_GROUP_ID)</string> | ||
<key>CFBundleVersion</key> | ||
<string>$(FLUTTER_BUILD_NUMBER)</string> | ||
<key>NSExtension</key> | ||
<dict> | ||
<key>NSExtensionAttributes</key> | ||
<dict> | ||
<!-- Add supported message intent if you support sharing to a specific conversation - start --> | ||
<key>IntentsSupported</key> | ||
<array> | ||
<string>INSendMessageIntent</string> | ||
</array> | ||
<!-- Add supported message intent if you support sharing to a specific conversation (registered via the recordSentMessage api call) - end --> | ||
<key>NSExtensionActivationRule</key> | ||
<!-- Comment or delete the TRUEPREDICATE NSExtensionActivationRule that only works in development mode --> | ||
<!-- <string>TRUEPREDICATE</string> --> | ||
<!-- Add a new NSExtensionActivationRule. The rule below will allow sharing one or more file of any type, url, or text content, You can modify these rules to your liking for which types of share content, as well as how many your app can handle --> | ||
<string>SUBQUERY ( | ||
extensionItems, | ||
$extensionItem, | ||
SUBQUERY ( | ||
$extensionItem.attachments, | ||
$attachment, | ||
( | ||
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.file-url" | ||
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image" | ||
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.text" | ||
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.movie" | ||
|| ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" | ||
) | ||
).@count > 0 | ||
).@count > 0 | ||
</string> | ||
<key>PHSupportedMediaTypes</key> | ||
<array> | ||
<string>Video</string> | ||
<string>Image</string> | ||
</array> | ||
</dict> | ||
<key>NSExtensionMainStoryboard</key> | ||
<string>MainInterface</string> | ||
<key>NSExtensionPointIdentifier</key> | ||
<string>com.apple.share-services</string> | ||
</dict> | ||
</dict> | ||
</plist> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters