diff --git a/packages/share/CHANGELOG.md b/packages/share/CHANGELOG.md index f3159bbfbdc1..087c66b7008d 100644 --- a/packages/share/CHANGELOG.md +++ b/packages/share/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.2+4 + +* Define clang module for iOS. + ## 0.6.2+3 * Fix iOS crash when setting subject to null. diff --git a/packages/share/ios/Classes/SharePlugin.m b/packages/share/ios/Classes/SharePlugin.m index 79903f8a1e5b..b501b36623e3 100644 --- a/packages/share/ios/Classes/SharePlugin.m +++ b/packages/share/ios/Classes/SharePlugin.m @@ -44,7 +44,7 @@ - (id)activityViewController:(UIActivityViewController *)activityViewController - (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(UIActivityType)activityType { - return [_subject isKindOfClass:NSNull.class] ? nil : _subject; + return [_subject isKindOfClass:NSNull.class] ? @"" : _subject; } @end diff --git a/packages/share/ios/share.podspec b/packages/share/ios/share.podspec index 02affe2b1ca7..9c3684c58607 100644 --- a/packages/share/ios/share.podspec +++ b/packages/share/ios/share.podspec @@ -16,6 +16,7 @@ A Flutter plugin for sharing content from the Flutter app via the platform share s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.ios.deployment_target = '8.0' + s.platform = :ios, '8.0' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } end diff --git a/packages/share/pubspec.yaml b/packages/share/pubspec.yaml index 78d094ee487b..800f1b482eed 100644 --- a/packages/share/pubspec.yaml +++ b/packages/share/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for sharing content via the platform share UI, using the ACTION_SEND intent on Android and UIActivityViewController on iOS. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/share -version: 0.6.2+3 +version: 0.6.2+4 flutter: plugin: diff --git a/script/lint_darwin_plugins.sh b/script/lint_darwin_plugins.sh index d10dbab79501..6bcf93f336a9 100755 --- a/script/lint_darwin_plugins.sh +++ b/script/lint_darwin_plugins.sh @@ -54,7 +54,6 @@ function lint_packages() { # TODO: These packages have linter errors. Remove plugins from this list as linter issues are fixed. local skipped_packages=( 'google_maps_flutter' - 'share' ) local failure_count=0