Releases: KasemJaffer/receive_sharing_intent
Releases · KasemJaffer/receive_sharing_intent
Release list
receive_sharing_intent-v1.9.0
Breaking changes
- Requires Flutter 3.38 or newer.
- iOS: Apps must now adopt a
SceneDelegatefor the newUIScenelifecycle — see the README and the official guide. - iOS: Now uses Swift Package Manager only (the CocoaPods podspec was removed). Enable it with
flutter config --enable-swift-package-managerand link thereceive-sharing-intentproduct in your Share Extension. - iOS: The Share Extension compose UI was rebuilt (see below).
presentationAnimationDidFinish(),navigationTitleandcharacterLimitwere removed — use the new override hooks instead. - iOS: Minimum deployment target raised to iOS 13.0.
iOS — new Share Extension compose UI
RSIShareViewControllerno longer subclasses the deprecatedSLComposeServiceViewController; it's now a plainUIViewControllerfollowing Apple's modern model.shouldAutoRedirect() == true(default): no UI is shown — the old flash of the dimmed white system sheet is gone and the extension redirects straight into the host app.shouldAutoRedirect() == false: a built-in compose sheet (RSIComposeView) is shown — a bottom card with a grabber, circular close button, "Send" button, an auto-focused message field and a thumbnail preview of the first shared item. Tapping the dimmed backdrop cancels.- Customise it by overriding
placeholder,sendButtonTitle,contentText,isContentValid(),didSelectPost(),didSelectCancel(),cancel()orsaveAndRedirect(message:).
iOS — other
- Adopted Apple's
UIScenelifecycle: the plugin conforms toFlutterSceneLifeCycleDelegate, registers viaaddSceneDelegate, and handles shared URLs through the scene delegate. - Consolidated into a single
ReceiveSharingIntentPluginSwift class (the Objective-C bridge is gone).SwiftReceiveSharingIntentPluginremains as a backward-compatible type alias.
Android
- Migrated to Flutter's Built-in Kotlin: the plugin no longer applies the Kotlin Gradle Plugin (KGP) itself — Flutter's Gradle plugin applies
kotlin-androidautomatically. This silences the upcoming KGP deprecation warning and keeps the plugin building on future Flutter versions. - Upgraded Android Gradle Plugin to 9.2.1, Gradle to 9.4.1 and Kotlin to 2.4.0.
- Bumped
compileSdkto 37, raisedminSdkto 21 and migrated to the modern KotlincompilerOptionsDSL (JVM target 17).
Full Changelog: 1.8.1...1.9.0
What's Changed
- Fix Inconsistent JVM-target compatibility by @ad-angelo in #333
New Contributors
- @ad-angelo made their first contribution in #333
Full Changelog: 1.8.1...1.9.0
receive_sharing_intent-v1.8.1
What's Changed
- Fix iOS18 open URL by @dmitry-kotorov in #328
New Contributors
- @dmitry-kotorov made their first contribution in #328
Full Changelog: 1.8.0...1.8.1
receive_sharing_intent-v1.8.0
- Added support for cached images on iOS such as shared images from a Screenshot.
receive_sharing_intent-v1.7.0
- Added
ReceiveSharingIntent.setMockValuesmethod to set mock values for testing purposes.
ReceiveSharingIntent.setMockValues(
initialMedia: [],
mediaStream: Stream.empty(),
);Breaking change
- Use instance getter i.e.
ReceiveSharingIntent.instance.getInitialMedia()instead ofReceiveSharingIntent.getInitialMedia()
receive_sharing_intent-v1.6.8
- Fix sometimes file doesn't exist error on iOS
receive_sharing_intent-v1.6.7
Fix: received sharing url in ios not working on the version 1.6.6
receive_sharing_intent-v1.6.5
Update deprecated API usage in Android
receive_sharing_intent-v1.6.4
- 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
messageto the SharedMediaFile class.
receive_sharing_intent-v1.6.3
- Updated readme iOS section, rearranged the steps to properly setup the plugin and added a new step #7
receive_sharing_intent-v1.6.2
Requires Swift 5.0
Fix backward compatibility down to iOS 8.0
Use UTType for iOS 14.0 and above