From 3d5102e80d6070200d3c8c9ee52f2c81264d813a Mon Sep 17 00:00:00 2001 From: Anton Duzenko Date: Fri, 17 Sep 2021 19:05:21 +0300 Subject: [PATCH 1/4] Use NSURL for web links --- packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m b/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m index 1caf92d5f7..7fd4ee986a 100644 --- a/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m +++ b/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m @@ -210,7 +210,7 @@ + (void)shareText:(NSString *)shareText subject:(NSString *)subject withController:(UIViewController *)controller atSource:(CGRect)origin { - SharePlusData *data = [[SharePlusData alloc] initWithSubject:subject text:shareText]; + NSObject *data = [shareText hasPrefix:@"https://"] ? [[NSURL alloc] initWithString:shareText] : [[SharePlusData alloc] initWithSubject:subject text:shareText]; [self share:@[ data ] withController:controller atSource:origin]; } From 8a87c6bac15104f5f3cd98fd2b85a3831fab7cfe Mon Sep 17 00:00:00 2001 From: Anton Duzenko Date: Wed, 29 Sep 2021 12:25:14 +0300 Subject: [PATCH 2/4] formatting --- .../share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m b/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m index 7fd4ee986a..a45dce97ec 100644 --- a/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m +++ b/packages/share_plus/share_plus/ios/Classes/FLTSharePlusPlugin.m @@ -210,7 +210,9 @@ + (void)shareText:(NSString *)shareText subject:(NSString *)subject withController:(UIViewController *)controller atSource:(CGRect)origin { - NSObject *data = [shareText hasPrefix:@"https://"] ? [[NSURL alloc] initWithString:shareText] : [[SharePlusData alloc] initWithSubject:subject text:shareText]; + NSObject *data = [shareText hasPrefix:@"https://"] + ? [[NSURL alloc] initWithString:shareText] + : [[SharePlusData alloc] initWithSubject:subject text:shareText]; [self share:@[ data ] withController:controller atSource:origin]; } From 6bacc9261553d56d8e4801c4155aa9424a1b0b50 Mon Sep 17 00:00:00 2001 From: Majid Date: Fri, 1 Oct 2021 20:13:56 +0200 Subject: [PATCH 3/4] add changelog --- packages/share_plus/share_plus/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/share_plus/share_plus/CHANGELOG.md b/packages/share_plus/share_plus/CHANGELOG.md index bbcb89f3cd..a6cb414fbd 100644 --- a/packages/share_plus/share_plus/CHANGELOG.md +++ b/packages/share_plus/share_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.5 + +- Fixed: Use NSURL for web links (iOS) + ## 2.1.4 - Android: migrate to mavenCentral From 171e73cf134bc5a668a06dfadb0842be6d8d8e80 Mon Sep 17 00:00:00 2001 From: Majid Date: Fri, 1 Oct 2021 20:14:21 +0200 Subject: [PATCH 4/4] pump version --- packages/share_plus/share_plus/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/share_plus/share_plus/pubspec.yaml b/packages/share_plus/share_plus/pubspec.yaml index a5e1026433..25b3b34434 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: 2.1.4 +version: 2.1.5 homepage: https://plus.fluttercommunity.dev/ repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/