diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 60489d0..0f3b7bf 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -967,7 +967,7 @@ INFOPLIST_FILE = SolarWidget/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarWidget; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1010,7 +1010,7 @@ INFOPLIST_FILE = SolarWidget/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarWidget; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1050,7 +1050,7 @@ INFOPLIST_FILE = SolarWidget/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarWidget; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 17.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1090,7 +1090,7 @@ INFOPLIST_FILE = SolarShare/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarShare; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1133,7 +1133,7 @@ INFOPLIST_FILE = SolarShare/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarShare; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1173,7 +1173,7 @@ INFOPLIST_FILE = SolarShare/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarShare; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.2; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1211,7 +1211,7 @@ INFOPLIST_FILE = SolarNotifyService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarNotifyService; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.1; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1252,7 +1252,7 @@ INFOPLIST_FILE = SolarNotifyService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarNotifyService; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.1; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1290,7 +1290,7 @@ INFOPLIST_FILE = SolarNotifyService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = SolarNotifyService; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 18.1; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/ios/SolarShare/Info.plist b/ios/SolarShare/Info.plist index 97566e8..60bc1b6 100644 --- a/ios/SolarShare/Info.plist +++ b/ios/SolarShare/Info.plist @@ -7,25 +7,23 @@ Video Image - NSExtensionActivationRule - - NSExtensionActivationSupportsText - - NSExtensionActivationSupportsWebURLWithMaxCount - 1 - NSExtensionActivationSupportsImageWithMaxCount - 100 - NSExtensionActivationSupportsMovieWithMaxCount - 100 - NSExtensionActivationSupportsFileWithMaxCount - 100 - NSExtension NSExtensionAttributes - NSExtensionActivationRule - TRUEPREDICATE + NSExtensionActivationRule + + NSExtensionActivationSupportsText + + NSExtensionActivationSupportsWebURLWithMaxCount + 15 + NSExtensionActivationSupportsImageWithMaxCount + 15 + NSExtensionActivationSupportsMovieWithMaxCount + 15 + NSExtensionActivationSupportsFileWithMaxCount + 15 + NSExtensionMainStoryboard MainInterface diff --git a/lib/screens/sharing.dart b/lib/screens/sharing.dart index a699bc5..e3824ca 100644 --- a/lib/screens/sharing.dart +++ b/lib/screens/sharing.dart @@ -52,7 +52,12 @@ class _AppSharingListenerState extends State { 'mode': 'stories', }, extra: PostEditorExtraProps( - attachments: value.map((e) => PostWriteMedia.fromFile(XFile(e.path))).toList(), + text: value + .where((e) => [SharedMediaType.text, SharedMediaType.url].contains(e.type)) + .map((e) => e.path).join('\n'), + attachments: value + .where((e) => [SharedMediaType.video, SharedMediaType.file, SharedMediaType.image].contains(e.type)) + .map((e) => PostWriteMedia.fromFile(XFile(e.path))).toList(), ), ); Navigator.pop(context); diff --git a/pubspec.yaml b/pubspec.yaml index 2903e95..fc4fe7f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 2.0.1+28 +version: 2.0.1+29 environment: sdk: ^3.5.4