Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ Théo Champion <contact.theochampion@gmail.com>
Kazuki Yamaguchi <y.kazuki0614n@gmail.com>
Eitan Schwartz <eshvartz@gmail.com>
Chris Rutkowski <chrisrutkowski89@gmail.com>
Jorge Galvão <jmfgalvao@gmail.com>
4 changes: 4 additions & 0 deletions packages/share/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.5

* Show the share text in the iOS share preview panel.

## 0.6.4+3

* Post-v2 Android embedding cleanup.
Expand Down
9 changes: 9 additions & 0 deletions packages/share/ios/Classes/FLTSharePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// found in the LICENSE file.

#import "FLTSharePlugin.h"
#import "LinkPresentation/LPLinkMetadata.h"

static NSString *const PLATFORM_CHANNEL = @"plugins.flutter.io/share";

Expand Down Expand Up @@ -47,6 +48,14 @@ - (NSString *)activityViewController:(UIActivityViewController *)activityViewCon
return [_subject isKindOfClass:NSNull.class] ? @"" : _subject;
}

- (LPLinkMetadata *)activityViewControllerLinkMetadata:
(UIActivityViewController *)activityViewController
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0)) {
LPLinkMetadata *metadata = [[LPLinkMetadata alloc] init];
metadata.title = _text;
return metadata;
}

@end

@implementation FLTSharePlugin
Expand Down
1 change: 1 addition & 0 deletions packages/share/ios/share.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Downloaded by pub (not CocoaPods).
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.ios.framework = 'LinkPresentation'

s.platform = :ios, '8.0'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
Expand Down
2 changes: 1 addition & 1 deletion packages/share/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/share
# 0.6.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
version: 0.6.4+3
version: 0.6.5

flutter:
plugin:
Expand Down