- Fixed sharing not working on iOS 18
- Added support for cached images on iOS such as shared images from a Screenshot.
- Added
ReceiveSharingIntent.setMockValues
method to set mock values for testing purposes.
ReceiveSharingIntent.setMockValues(
initialMedia: [],
mediaStream: Stream.empty(),
);
- Use instance getter i.e.
ReceiveSharingIntent.instance.getInitialMedia()
instead ofReceiveSharingIntent.getInitialMedia()
- Fix sometimes file doesn't exist error on iOS
- Fix sharing url not working on iOS
- Fix compatibility issue with Android SDK <33
- Update deprecated API usage in Android
- Added a flag to disable the automatic closing of the share extension after sharing.
class ShareViewController: RSIShareViewController {
// Use this method to return false if you don't want to redirect to host app automatically.
// Default is true
override func shouldAutoRedirect() -> Bool {
return false
}
}
- Added new field
message
to the SharedMediaFile class.
- Updated readme iOS section, rearranged the steps to properly setup the plugin and added a new step #7
- Requires Swift 5.0
- Fix backward compatibility down to iOS 8.0
- Use UTType for iOS 14.0 and above
- Stop using UTType because it doesn't exist prior to iOS 14.0
- All files types now come through
getInitialMedia
andgetMediaStream
- Your
ShareViewController
class should now inherit fromRSIShareViewController
. Eliminating the need to copy the whole class again. Please check the example project for more details. - Removed
getInitialText
,getInitialTextAsUri
,getTextStream
andgetTextStreamAsUri
methods. Please usegetInitialMedia
andgetMediaStream
instead.
- Fix broken links in readme
- Update readme
- Code refactor, remove unnecessary semicolon and initialization of optional fields
- Fix wrong file path on iOS
- Update plugin's iOS build version
- Add support for custom group ID for iOS
- Update android gradle build tools to 7.3.1
- Replace deprecated jcenter with mavenCentral
- Update android to use compileSdkVersion 34
- Update android to use compileSdkVersion 30
- Enabled null safety
- Fix frozen app after sharing. Fix requires you to update your Sharing Extension Class (Check example project)
- Fix regression regarding link propagation
- Fix suppressed link propagation to other modules on iOS
- Migrate to flutter android embedding v2
- Fix crash while getting raw files path on Android
- Preserve original file name
Note. Updating your Sharing Extension Class is required (please check that in the example project)
- Added support for sharing any type of file
- In your project
ios/Runner/Info.plist
please change 'SharePhotos' to 'ShareMedia' as follows
<key>CFBundleURLSchemes</key>
<array>
<string>ShareMedia</string>
- Fixed the >= 4.2 Swift compiler parsing errors
- Fix Some photos and videos have wrong extension names
- Fix sharing dialog doesn't close properly
Note. Both fixes require you to update your Sharing Extension Class (please check that in the example project)
- Remove unnecessary code
- Fixed iOS 13 bugs
- Video support.
ShareViewController.swift
Please copy the whole class again as there are many code changes.getInitialImage
changed togetInitialMedia
for images and videosgetImageStream
changed togetMediaStream
for images and videos- both
getInitialMedia
andgetMediaStream
now return video duration and thumbnail along with the shared file path
getInitialImageAsUri
getImageStreamAsUri
- New method added to reset the already consumed callbacks
- Example project updated. Check the method [handleImages] in example/Sharing Extension/ShareViewController.swift
- Fix some images are not successfully shared on iOS
- Add screen recorded demo
- Fix sharing image does not work sometimes on iOS and on Android when sharing from google photos (cloud)
- Return absolute path for images instead of a reference that can be used directly with File.dart
- Refactor code
- Bug fixes and updated api name
- Add support for urls
- Remove un-necessary jar libraries
- Fix issue where sharing in iOS simulator does not work