Skip to content

Releases: KasemJaffer/receive_sharing_intent

receive_sharing_intent-v1.9.0

Choose a tag to compare

@KasemJaffer KasemJaffer released this 24 Jun 22:08

Breaking changes

  • Requires Flutter 3.38 or newer.
  • iOS: Apps must now adopt a SceneDelegate for the new UIScene lifecycle — 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-manager and link the receive-sharing-intent product in your Share Extension.
  • iOS: The Share Extension compose UI was rebuilt (see below). presentationAnimationDidFinish(), navigationTitle and characterLimit were removed — use the new override hooks instead.
  • iOS: Minimum deployment target raised to iOS 13.0.

iOS — new Share Extension compose UI

  • RSIShareViewController no longer subclasses the deprecated SLComposeServiceViewController; it's now a plain UIViewController following 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() or saveAndRedirect(message:).

iOS — other

  • Adopted Apple's UIScene lifecycle: the plugin conforms to FlutterSceneLifeCycleDelegate, registers via addSceneDelegate, and handles shared URLs through the scene delegate.
  • Consolidated into a single ReceiveSharingIntentPlugin Swift class (the Objective-C bridge is gone). SwiftReceiveSharingIntentPlugin remains 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-android automatically. 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 compileSdk to 37, raised minSdk to 21 and migrated to the modern Kotlin compilerOptions DSL (JVM target 17).

Full Changelog: 1.8.1...1.9.0

What's Changed

New Contributors

Full Changelog: 1.8.1...1.9.0

receive_sharing_intent-v1.8.1

Choose a tag to compare

@KasemJaffer KasemJaffer released this 21 Oct 17:43

What's Changed

New Contributors

Full Changelog: 1.8.0...1.8.1

receive_sharing_intent-v1.8.0

Choose a tag to compare

@KasemJaffer KasemJaffer released this 29 Apr 17:53
  • Added support for cached images on iOS such as shared images from a Screenshot.

receive_sharing_intent-v1.7.0

Choose a tag to compare

@KasemJaffer KasemJaffer released this 09 Apr 16:29
  • Added ReceiveSharingIntent.setMockValues method to set mock values for testing purposes.
ReceiveSharingIntent.setMockValues(
      initialMedia: [],
      mediaStream: Stream.empty(),
    );

Breaking change

  • Use instance getter i.e. ReceiveSharingIntent.instance.getInitialMedia() instead of ReceiveSharingIntent.getInitialMedia()

receive_sharing_intent-v1.6.8

Choose a tag to compare

@KasemJaffer KasemJaffer released this 01 Apr 18:58
85fd308
  • Fix sometimes file doesn't exist error on iOS

receive_sharing_intent-v1.6.7

Choose a tag to compare

@KasemJaffer KasemJaffer released this 02 Feb 16:46
fc727fd

Fix: received sharing url in ios not working on the version 1.6.6

#276

receive_sharing_intent-v1.6.5

Choose a tag to compare

@KasemJaffer KasemJaffer released this 29 Jan 17:36
1190be7

Update deprecated API usage in Android

receive_sharing_intent-v1.6.4

Choose a tag to compare

@KasemJaffer KasemJaffer released this 26 Jan 23:00
c58cc13
  • 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.

receive_sharing_intent-v1.6.3

Choose a tag to compare

@KasemJaffer KasemJaffer released this 26 Jan 20:33
f92195a
  • Updated readme iOS section, rearranged the steps to properly setup the plugin and added a new step #7

receive_sharing_intent-v1.6.2

Choose a tag to compare

@KasemJaffer KasemJaffer released this 26 Jan 18:11
a9a232e

Requires Swift 5.0
Fix backward compatibility down to iOS 8.0
Use UTType for iOS 14.0 and above