From 5caf349cb1ece158ea5e2fa0fcd6a87725e95b3b Mon Sep 17 00:00:00 2001 From: Boehrsi Date: Mon, 11 Oct 2021 19:16:54 +0200 Subject: [PATCH 1/2] docu(share_plus): mimeTypes parameter is missing documentation #545 --- packages/share_plus/share_plus/lib/share_plus.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/share_plus/share_plus/lib/share_plus.dart b/packages/share_plus/share_plus/lib/share_plus.dart index 1ec8f7eda5..99776f7476 100644 --- a/packages/share_plus/share_plus/lib/share_plus.dart +++ b/packages/share_plus/share_plus/lib/share_plus.dart @@ -75,6 +75,17 @@ class Share { /// It uses the `ACTION_SEND` Intent on Android and `UIActivityViewController` /// on iOS. /// + /// The optional `mimeTypes` parameter can be used to specify MIME types for + /// the provided files. + /// Android supports all natively available MIME types (wildcards like image/* + /// are also supported) and it's considered best practice to avoid mixing + /// unrelated file types (eg. image/jpg & application/pdf). If MIME types are + /// mixed the plugin attempts to find the lowest common denominator. Even + /// if MIME types are supplied the receiving app decides if those are used + /// or handled. + /// On iOS image/jpg, image/jpeg and image/png are handled as images, while + /// every other MIME type is considered a normal file. + /// /// The optional `sharePositionOrigin` parameter can be used to specify a global /// origin rect for the share sheet to popover from on iPads. It has no effect /// on non-iPads. From 9dd671fba16575731996afb6c04ea663e5c1e808 Mon Sep 17 00:00:00 2001 From: Boehrsi Date: Wed, 13 Oct 2021 08:22:33 +0200 Subject: [PATCH 2/2] bump version + update change log --- packages/share_plus/share_plus/CHANGELOG.md | 4 ++++ packages/share_plus/share_plus/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/CHANGELOG.md b/packages/share_plus/share_plus/CHANGELOG.md index d06e4e890f..ff4284e43c 100644 --- a/packages/share_plus/share_plus/CHANGELOG.md +++ b/packages/share_plus/share_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.3 + +- Improve documentation for `shareFiles` method + ## 3.0.2 - Apply code improvements diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index ada5b7d0d8..d0e1e883d5 100644 --- a/packages/share_plus/share_plus/pubspec.yaml +++ b/packages/share_plus/share_plus/pubspec.yaml @@ -1,6 +1,6 @@ name: share_plus description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. -version: 3.0.2 +version: 3.0.3 homepage: https://plus.fluttercommunity.dev/ repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/