Skip to content

Conversation

@remcoanker
Copy link
Member

No description provided.

MagTuxGit and others added 30 commits December 15, 2023 16:57
This PR improves the `getFileName` function to properly handle situations where multiple files with the same name are shared. The enhancement ensures unique filenames by appending a counter to duplicate names.

Changes made:
- Modified the `getFileName` function to use a `fileNameCounter` dictionary to track filename occurrences
- Implemented logic to append a counter to filenames when duplicates are detected

Key improvements:
- Prevents overwriting of files with the same name
- Maintains the original file extension
- Generates unique filenames by appending a counter (e.g., "file_1.jpg", "file_2.jpg")

Testing:
- Verified the function generates unique names for files with identical names
- Tested with various file types and naming scenarios

This change resolves issues related to handling multiple shared files with the same filename, ensuring each shared file is saved with a unique name.
- Modify handleIntent function to allow sharing both URL and files in the same intent
- Update text extraction logic to handle both ACTION_SEND and ACTION_VIEW intents
- Ensure attachments and text content are properly processed together
- Improve overall flexibility of shared content handling
Quick fix to resolve: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).
… migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).
Bump compileSdkVersion to 34
Fix getFileName function to handle duplicate filenames
fix: UIApplication.openURL is deprecated
Fix sharing not working on iOS 18
karabanovbs and others added 15 commits April 9, 2025 15:12
ACTION_VIEW is not meant for sharing: it's meant for deep links.
The documentation for receiving share intents [1] only mentions
ACTION_SEND and ACTION_SEND_MULTIPLE.

share_handler should only handle share intents, to avoid conflicts
with other packages handling deep links (e.g. app_links).

[1]: https://developer.android.com/training/sharing/receive

Closes: #86
Starting app from 'recent applications' starts it with the last intent
Remove Intent.ACTION_VIEW handling
Upgrade Android dependencies and tools
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.

10 participants