An open-source cross-platform alternative to AirDrop
feat(ios): receive share intent
Tien Do Nam2d02a0e9a079
diff --git a/ios/Podfile b/ios/Podfileindex 313ea4a1..f0f2fbd8 100644--- a/ios/Podfile+++ b/ios/Podfile@@ -32,6 +32,13 @@ target 'Runner' douse_modular_headers!flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))++ # share_handler addition start+ target 'ShareExtension' do+ inherit! :search_paths+ pod "share_handler_ios_models", :path => ".symlinks/plugins/share_handler_ios/ios/Models"+ end+ # share_handler addition endendpost_install do |installer|diff --git a/ios/Podfile.lock b/ios/Podfile.lockindex dd523569..0f92d36d 100644--- a/ios/Podfile.lock+++ b/ios/Podfile.lock@@ -1,4 +1,7 @@PODS:+ - connectivity_plus (0.0.1):+ - Flutter+ - ReachabilitySwift- device_info_plus (0.0.1):- Flutter- DKImagePickerController/Core (4.3.4):@@ -42,6 +45,8 @@ PODS:- Flutter- network_info_plus (0.0.1):- Flutter+ - open_filex (0.0.2):+ - Flutter- package_info_plus (0.4.5):- Flutter- path_provider_ios (0.0.1):@@ -51,9 +56,18 @@ PODS:- photo_manager (2.0.0):- Flutter- FlutterMacOS+ - ReachabilitySwift (5.0.0)- SDWebImage (5.14.3):- SDWebImage/Core (= 5.14.3)- SDWebImage/Core (5.14.3)+ - share_handler_ios (0.0.9):+ - Flutter+ - share_handler_ios/share_handler_ios_models (= 0.0.9)+ - share_handler_ios_models+ - share_handler_ios/share_handler_ios_models (0.0.9):+ - Flutter+ - share_handler_ios_models+ - share_handler_ios_models (0.0.9)- shared_preferences_ios (0.0.1):- Flutter- SwiftyGif (5.4.3)@@ -63,16 +77,20 @@ PODS:- FlutterDEPENDENCIES:+ - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)- file_picker (from `.symlinks/plugins/file_picker/ios`)- Flutter (from `Flutter`)- image_gallery_saver (from `.symlinks/plugins/image_gallery_saver/ios`)- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)- network_info_plus (from `.symlinks/plugins/network_info_plus/ios`)+ - open_filex (from `.symlinks/plugins/open_filex/ios`)- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)- photo_manager (from `.symlinks/plugins/photo_manager/ios`)+ - share_handler_ios (from `.symlinks/plugins/share_handler_ios/ios`)+ - share_handler_ios_models (from `.symlinks/plugins/share_handler_ios/ios/Models`)- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)@@ -81,10 +99,13 @@ SPEC REPOS:trunk:- DKImagePickerController- DKPhotoGallery+ - ReachabilitySwift- SDWebImage- SwiftyGifEXTERNAL SOURCES:+ connectivity_plus:+ :path: ".symlinks/plugins/connectivity_plus/ios"device_info_plus::path: ".symlinks/plugins/device_info_plus/ios"file_picker:@@ -97,6 +118,8 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/image_picker_ios/ios"network_info_plus::path: ".symlinks/plugins/network_info_plus/ios"+ open_filex:+ :path: ".symlinks/plugins/open_filex/ios"package_info_plus::path: ".symlinks/plugins/package_info_plus/ios"path_provider_ios:@@ -105,6 +128,10 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/permission_handler_apple/ios"photo_manager::path: ".symlinks/plugins/photo_manager/ios"+ share_handler_ios:+ :path: ".symlinks/plugins/share_handler_ios/ios"+ share_handler_ios_models:+ :path: ".symlinks/plugins/share_handler_ios/ios/Models"shared_preferences_ios::path: ".symlinks/plugins/shared_preferences_ios/ios"url_launcher_ios:@@ -113,6 +140,7 @@ EXTERNAL SOURCES::path: ".symlinks/plugins/video_player_avfoundation/ios"SPEC CHECKSUMS:+ connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7edevice_info_plus: e5c5da33f982a436e103237c0c85f9031142abedDKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601acDKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179@@ -121,16 +149,20 @@ SPEC CHECKSUMS:image_gallery_saver: 259eab68fb271cfd57d599904f7acdc7832e7ef2image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabbnetwork_info_plus: b78876159360f5580608c2cea620d6ceffabd0ad+ open_filex: 6e26e659846ec990262224a12ef1c528bb4edbe4package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14epath_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17cephoto_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604+ ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825SDWebImage: 9c36e66c8ce4620b41a7407698dda44211a96764+ share_handler_ios: b652bcd9c52dc0900813c3506b7d35a169b1343b+ share_handler_ios_models: fc638c9b4330dc7f082586c92aee9dfa0b87b871shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68adSwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4devideo_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff-PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d+PODFILE CHECKSUM: 21810dec9c7360014fbaacf030d9237ce547b1edCOCOAPODS: 1.10.1diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxprojindex a40db0dd..c7f1b920 100644--- a/ios/Runner.xcodeproj/project.pbxproj+++ b/ios/Runner.xcodeproj/project.pbxproj@@ -8,15 +8,40 @@/* Begin PBXBuildFile section */1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };+ 28D9F9A529638D5E0028B96E /* ShareViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28D9F9A429638D5E0028B96E /* ShareViewController.swift */; };+ 28D9F9A829638D5E0028B96E /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 28D9F9A629638D5E0028B96E /* MainInterface.storyboard */; };+ 28D9F9AC29638D5E0028B96E /* ShareExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 28D9F9A229638D5E0028B96E /* ShareExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };+ 7DA3203436DA0EAD484C6129 /* Pods_ShareExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 052009B9C8E63670A6F30787 /* Pods_ShareExtension.framework */; };97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };E90D52B8096B253F54908565 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0628E22A788D91D99A60B3EB /* Pods_Runner.framework */; };/* End PBXBuildFile section */+/* Begin PBXContainerItemProxy section */+ 28D9F9AA29638D5E0028B96E /* PBXContainerItemProxy */ = {+ isa = PBXContainerItemProxy;+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;+ proxyType = 1;+ remoteGlobalIDString = 28D9F9A129638D5E0028B96E;+ remoteInfo = ShareExtension;+ };+/* End PBXContainerItemProxy section */+/* Begin PBXCopyFilesBuildPhase section */+ 28D9F9AD29638D5E0028B96E /* Embed Foundation Extensions */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 13;+ files = (+ 28D9F9AC29638D5E0028B96E /* ShareExtension.appex in Embed Foundation Extensions */,+ );+ name = "Embed Foundation Extensions";+ runOnlyForDeploymentPostprocessing = 0;+ };9705A1C41CF9048500538489 /* Embed Frameworks */ = {isa = PBXCopyFilesBuildPhase;buildActionMask = 2147483647;@@ -30,10 +55,18 @@/* End PBXCopyFilesBuildPhase section *//* Begin PBXFileReference section */+ 0007FA5526976D661EA80645 /* Pods-ShareExtension.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ShareExtension.release.xcconfig"; path = "Target Support Files/Pods-ShareExtension/Pods-ShareExtension.release.xcconfig"; sourceTree = "<group>"; };+ 052009B9C8E63670A6F30787 /* Pods_ShareExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ShareExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };0628E22A788D91D99A60B3EB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 0A5D3B0265815538882A3116 /* Pods-ShareExtension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ShareExtension.profile.xcconfig"; path = "Target Support Files/Pods-ShareExtension/Pods-ShareExtension.profile.xcconfig"; sourceTree = "<group>"; };1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };281A2070295BE78500C3D1F9 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };+ 28D9F9A229638D5E0028B96E /* ShareExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = ShareExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };+ 28D9F9A429638D5E0028B96E /* ShareViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareViewController.swift; sourceTree = "<group>"; };+ 28D9F9A729638D5E0028B96E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = "<group>"; };+ 28D9F9A929638D5E0028B96E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };+ 28D9F9B229638F760028B96E /* ShareExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ShareExtension.entitlements; sourceTree = "<group>"; };3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };6C3C360E39C360756F5C1E62 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };@@ -48,9 +81,18 @@97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };A2BF1CF158EF83DE50B03565 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };B97818B16CFBA751581F52D0 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };+ E27045CC3CCE78EFE26BEAA2 /* Pods-ShareExtension.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ShareExtension.debug.xcconfig"; path = "Target Support Files/Pods-ShareExtension/Pods-ShareExtension.debug.xcconfig"; sourceTree = "<group>"; };/* End PBXFileReference section *//* Begin PBXFrameworksBuildPhase section */+ 28D9F99F29638D5E0028B96E /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 7DA3203436DA0EAD484C6129 /* Pods_ShareExtension.framework in Frameworks */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };97C146EB1CF9000F007C117D /* Frameworks */ = {isa = PBXFrameworksBuildPhase;buildActionMask = 2147483647;@@ -62,12 +104,26 @@/* End PBXFrameworksBuildPhase section *//* Begin PBXGroup section */+ 28D9F9A329638D5E0028B96E /* ShareExtension */ = {+ isa = PBXGroup;+ children = (+ 28D9F9B229638F760028B96E /* ShareExtension.entitlements */,+ 28D9F9A429638D5E0028B96E /* ShareViewController.swift */,+ 28D9F9A629638D5E0028B96E /* MainInterface.storyboard */,+ 28D9F9A929638D5E0028B96E /* Info.plist */,+ );+ path = ShareExtension;+ sourceTree = "<group>";+ };59B9B2A902E417D8EA9C7BB8 /* Pods */ = {isa = PBXGroup;children = (6C3C360E39C360756F5C1E62 /* Pods-Runner.debug.xcconfig */,B97818B16CFBA751581F52D0 /* Pods-Runner.release.xcconfig */,A2BF1CF158EF83DE50B03565 /* Pods-Runner.profile.xcconfig */,+ E27045CC3CCE78EFE26BEAA2 /* Pods-ShareExtension.debug.xcconfig */,+ 0007FA5526976D661EA80645 /* Pods-ShareExtension.release.xcconfig */,+ 0A5D3B0265815538882A3116 /* Pods-ShareExtension.profile.xcconfig */,);path = Pods;sourceTree = "<group>";@@ -88,6 +144,7 @@children = (9740EEB11CF90186004384FC /* Flutter */,97C146F01CF9000F007C117D /* Runner */,+ 28D9F9A329638D5E0028B96E /* ShareExtension */,97C146EF1CF9000F007C117D /* Products */,59B9B2A902E417D8EA9C7BB8 /* Pods */,C869F3F44E625CCF2D1A5B44 /* Frameworks */,@@ -98,6 +155,7 @@isa = PBXGroup;children = (97C146EE1CF9000F007C117D /* Runner.app */,+ 28D9F9A229638D5E0028B96E /* ShareExtension.appex */,);name = Products;sourceTree = "<group>";@@ -122,6 +180,7 @@isa = PBXGroup;children = (0628E22A788D91D99A60B3EB /* Pods_Runner.framework */,+ 052009B9C8E63670A6F30787 /* Pods_ShareExtension.framework */,);name = Frameworks;sourceTree = "<group>";@@ -129,6 +188,24 @@/* End PBXGroup section *//* Begin PBXNativeTarget section */+ 28D9F9A129638D5E0028B96E /* ShareExtension */ = {+ isa = PBXNativeTarget;+ buildConfigurationList = 28D9F9B129638D5E0028B96E /* Build configuration list for PBXNativeTarget "ShareExtension" */;+ buildPhases = (+ 0BD91A3FC61E700E2A8B7EA4 /* [CP] Check Pods Manifest.lock */,+ 28D9F99E29638D5E0028B96E /* Sources */,+ 28D9F99F29638D5E0028B96E /* Frameworks */,+ 28D9F9A029638D5E0028B96E /* Resources */,+ );+ buildRules = (+ );+ dependencies = (+ );+ name = ShareExtension;+ productName = ShareExtension;+ productReference = 28D9F9A229638D5E0028B96E /* ShareExtension.appex */;+ productType = "com.apple.product-type.app-extension";+ };97C146ED1CF9000F007C117D /* Runner */ = {isa = PBXNativeTarget;buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;@@ -141,10 +218,12 @@9705A1C41CF9048500538489 /* Embed Frameworks */,3B06AD1E1E4923F5004D2608 /* Thin Binary */,38A5402B0B18EA0E910C92D1 /* [CP] Embed Pods Frameworks */,+ 28D9F9AD29638D5E0028B96E /* Embed Foundation Extensions */,);buildRules = ();dependencies = (+ 28D9F9AB29638D5E0028B96E /* PBXTargetDependency */,);name = Runner;productName = Runner;@@ -157,9 +236,13 @@97C146E61CF9000F007C117D /* Project object */ = {isa = PBXProject;attributes = {+ LastSwiftUpdateCheck = 1400;LastUpgradeCheck = 1300;ORGANIZATIONNAME = "";TargetAttributes = {+ 28D9F9A129638D5E0028B96E = {+ CreatedOnToolsVersion = 14.0;+ };97C146ED1CF9000F007C117D = {CreatedOnToolsVersion = 7.3.1;LastSwiftMigration = 1100;@@ -180,11 +263,20 @@projectRoot = "";targets = (97C146ED1CF9000F007C117D /* Runner */,+ 28D9F9A129638D5E0028B96E /* ShareExtension */,);};/* End PBXProject section *//* Begin PBXResourcesBuildPhase section */+ 28D9F9A029638D5E0028B96E /* Resources */ = {+ isa = PBXResourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 28D9F9A829638D5E0028B96E /* MainInterface.storyboard in Resources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };97C146EC1CF9000F007C117D /* Resources */ = {isa = PBXResourcesBuildPhase;buildActionMask = 2147483647;@@ -199,6 +291,28 @@/* End PBXResourcesBuildPhase section *//* Begin PBXShellScriptBuildPhase section */+ 0BD91A3FC61E700E2A8B7EA4 /* [CP] Check Pods Manifest.lock */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputFileListPaths = (+ );+ inputPaths = (+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",+ "${PODS_ROOT}/Manifest.lock",+ );+ name = "[CP] Check Pods Manifest.lock";+ outputFileListPaths = (+ );+ outputPaths = (+ "$(DERIVED_FILE_DIR)/Pods-ShareExtension-checkManifestLockResult.txt",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";+ showEnvVarsInLog = 0;+ };38A5402B0B18EA0E910C92D1 /* [CP] Embed Pods Frameworks */ = {isa = PBXShellScriptBuildPhase;buildActionMask = 2147483647;@@ -269,6 +383,14 @@/* End PBXShellScriptBuildPhase section *//* Begin PBXSourcesBuildPhase section */+ 28D9F99E29638D5E0028B96E /* Sources */ = {+ isa = PBXSourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 28D9F9A529638D5E0028B96E /* ShareViewController.swift in Sources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };97C146EA1CF9000F007C117D /* Sources */ = {isa = PBXSourcesBuildPhase;buildActionMask = 2147483647;@@ -280,7 +402,23 @@};/* End PBXSourcesBuildPhase section */+/* Begin PBXTargetDependency section */+ 28D9F9AB29638D5E0028B96E /* PBXTargetDependency */ = {+ isa = PBXTargetDependency;+ target = 28D9F9A129638D5E0028B96E /* ShareExtension */;+ targetProxy = 28D9F9AA29638D5E0028B96E /* PBXContainerItemProxy */;+ };+/* End PBXTargetDependency section */+/* Begin PBXVariantGroup section */+ 28D9F9A629638D5E0028B96E /* MainInterface.storyboard */ = {+ isa = PBXVariantGroup;+ children = (+ 28D9F9A729638D5E0028B96E /* Base */,+ );+ name = MainInterface.storyboard;+ sourceTree = "<group>";+ };97C146FA1CF9000F007C117D /* Main.storyboard */ = {isa = PBXVariantGroup;children = (@@ -354,6 +492,7 @@isa = XCBuildConfiguration;baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;buildSettings = {+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;CLANG_ENABLE_MODULES = YES;CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;@@ -373,6 +512,117 @@};name = Profile;};+ 28D9F9AE29638D5E0028B96E /* Debug */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = E27045CC3CCE78EFE26BEAA2 /* Pods-ShareExtension.debug.xcconfig */;+ buildSettings = {+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";+ CLANG_ENABLE_OBJC_WEAK = YES;+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;+ CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;+ CODE_SIGN_STYLE = Automatic;+ CURRENT_PROJECT_VERSION = 1;+ DEVELOPMENT_TEAM = 3W7H4PYMCV;+ GCC_C_LANGUAGE_STANDARD = gnu11;+ GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_FILE = ShareExtension/Info.plist;+ INFOPLIST_KEY_CFBundleDisplayName = ShareExtension;+ INFOPLIST_KEY_NSHumanReadableCopyright = "";+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ MARKETING_VERSION = 1.0;+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;+ MTL_FAST_MATH = YES;+ PRODUCT_BUNDLE_IDENTIFIER = org.localsend.localsendApp.ShareExtension;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SKIP_INSTALL = YES;+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;+ SWIFT_EMIT_LOC_STRINGS = YES;+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Debug;+ };+ 28D9F9AF29638D5E0028B96E /* Release */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 0007FA5526976D661EA80645 /* Pods-ShareExtension.release.xcconfig */;+ buildSettings = {+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";+ CLANG_ENABLE_OBJC_WEAK = YES;+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;+ CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;+ CODE_SIGN_STYLE = Automatic;+ CURRENT_PROJECT_VERSION = 1;+ DEVELOPMENT_TEAM = 3W7H4PYMCV;+ GCC_C_LANGUAGE_STANDARD = gnu11;+ GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_FILE = ShareExtension/Info.plist;+ INFOPLIST_KEY_CFBundleDisplayName = ShareExtension;+ INFOPLIST_KEY_NSHumanReadableCopyright = "";+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ MARKETING_VERSION = 1.0;+ MTL_FAST_MATH = YES;+ PRODUCT_BUNDLE_IDENTIFIER = org.localsend.localsendApp.ShareExtension;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SKIP_INSTALL = YES;+ SWIFT_EMIT_LOC_STRINGS = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Release;+ };+ 28D9F9B029638D5E0028B96E /* Profile */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 0A5D3B0265815538882A3116 /* Pods-ShareExtension.profile.xcconfig */;+ buildSettings = {+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";+ CLANG_ENABLE_OBJC_WEAK = YES;+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;+ CODE_SIGN_ENTITLEMENTS = ShareExtension/ShareExtension.entitlements;+ CODE_SIGN_STYLE = Automatic;+ CURRENT_PROJECT_VERSION = 1;+ DEVELOPMENT_TEAM = 3W7H4PYMCV;+ GCC_C_LANGUAGE_STANDARD = gnu11;+ GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_FILE = ShareExtension/Info.plist;+ INFOPLIST_KEY_CFBundleDisplayName = ShareExtension;+ INFOPLIST_KEY_NSHumanReadableCopyright = "";+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ MARKETING_VERSION = 1.0;+ MTL_FAST_MATH = YES;+ PRODUCT_BUNDLE_IDENTIFIER = org.localsend.localsendApp.ShareExtension;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SKIP_INSTALL = YES;+ SWIFT_EMIT_LOC_STRINGS = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Profile;+ };97C147031CF9000F007C117D /* Debug */ = {isa = XCBuildConfiguration;buildSettings = {@@ -484,6 +734,7 @@isa = XCBuildConfiguration;baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;buildSettings = {+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;CLANG_ENABLE_MODULES = YES;CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;@@ -508,6 +759,7 @@isa = XCBuildConfiguration;baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;buildSettings = {+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;CLANG_ENABLE_MODULES = YES;CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;@@ -530,6 +782,16 @@/* End XCBuildConfiguration section *//* Begin XCConfigurationList section */+ 28D9F9B129638D5E0028B96E /* Build configuration list for PBXNativeTarget "ShareExtension" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 28D9F9AE29638D5E0028B96E /* Debug */,+ 28D9F9AF29638D5E0028B96E /* Release */,+ 28D9F9B029638D5E0028B96E /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {isa = XCConfigurationList;buildConfigurations = (diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plistindex 5cd97040..69d3367f 100644--- a/ios/Runner/Info.plist+++ b/ios/Runner/Info.plist@@ -60,5 +60,18 @@<string>The app requires the local IP to communicate.</string><key>NSLocationWhenInUseUsageDescription</key><string>The app requires the local IP to communicate.</string>++ <!-- share_handler -->+ <key>CFBundleURLTypes</key>+ <array>+ <dict>+ <key>CFBundleTypeRole</key>+ <string>Editor</string>+ <key>CFBundleURLSchemes</key>+ <array>+ <string>ShareMedia-$(PRODUCT_BUNDLE_IDENTIFIER)</string>+ </array>+ </dict>+ </array></dict></plist>diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlementsindex 903def2a..7aff782b 100644--- a/ios/Runner/Runner.entitlements+++ b/ios/Runner/Runner.entitlements@@ -4,5 +4,9 @@<dict><key>aps-environment</key><string>development</string>+ <key>com.apple.security.application-groups</key>+ <array>+ <string>group.org.localsend.localsendApp</string>+ </array></dict></plist>diff --git a/ios/ShareExtension/Base.lproj/MainInterface.storyboard b/ios/ShareExtension/Base.lproj/MainInterface.storyboardnew file mode 100644index 00000000..286a5089--- /dev/null+++ b/ios/ShareExtension/Base.lproj/MainInterface.storyboard@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="UTF-8"?>+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="j1y-V4-xli">+ <dependencies>+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>+ </dependencies>+ <scenes>+ <!--Share View Controller-->+ <scene sceneID="ceB-am-kn3">+ <objects>+ <viewController id="j1y-V4-xli" customClass="ShareViewController" customModuleProvider="target" sceneMemberID="viewController">+ <view key="view" opaque="NO" contentMode="scaleToFill" id="wbc-yd-nQP">+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>+ <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>+ <viewLayoutGuide key="safeArea" id="1Xd-am-t49"/>+ </view>+ </viewController>+ <placeholder placeholderIdentifier="IBFirstResponder" id="CEy-Cv-SGf" userLabel="First Responder" sceneMemberID="firstResponder"/>+ </objects>+ </scene>+ </scenes>+</document>diff --git a/ios/ShareExtension/Info.plist b/ios/ShareExtension/Info.plistnew file mode 100644index 00000000..4abf39d8--- /dev/null+++ b/ios/ShareExtension/Info.plist@@ -0,0 +1,40 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>CFBundleVersion</key>+ <string>$(FLUTTER_BUILD_NUMBER)</string>+ <key>NSExtension</key>+ <dict>+ <key>NSExtensionAttributes</key>+ <dict>+ <key>NSExtensionActivationRule</key>+ <dict>+ <key>NSExtensionActivationSupportsWebPageWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsWebURLWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsMovieWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsImageWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsFileWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsAttachmentsWithMaxCount</key>+ <integer>999</integer>+ <key>NSExtensionActivationSupportsText</key>+ <true/>+ </dict>+ <key>PHSupportedMediaTypes</key>+ <array>+ <string>Video</string>+ <string>Image</string>+ </array>+ </dict>+ <key>NSExtensionMainStoryboard</key>+ <string>MainInterface</string>+ <key>NSExtensionPointIdentifier</key>+ <string>com.apple.share-services</string>+ </dict>+</dict>+</plist>diff --git a/ios/ShareExtension/ShareExtension.entitlements b/ios/ShareExtension/ShareExtension.entitlementsnew file mode 100644index 00000000..d0f632aa--- /dev/null+++ b/ios/ShareExtension/ShareExtension.entitlements@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>com.apple.security.application-groups</key>+ <array>+ <string>group.org.localsend.localsendApp</string>+ </array>+</dict>+</plist>diff --git a/ios/ShareExtension/ShareViewController.swift b/ios/ShareExtension/ShareViewController.swiftnew file mode 100644index 00000000..b17cff89--- /dev/null+++ b/ios/ShareExtension/ShareViewController.swift@@ -0,0 +1,3 @@+import share_handler_ios_models++class ShareViewController: ShareHandlerIosViewController {}diff --git a/lib/init.dart b/lib/init.dartindex 7a877762..547f7f0d 100644--- a/lib/init.dart+++ b/lib/init.dart@@ -79,7 +79,7 @@ Future<void> postInit(BuildContext context, WidgetRef ref, void Function(int) govoid _handleSharedIntent(SharedMedia payload, WidgetRef ref) {final message = payload.content;- if (message != null) {+ if (message != null && message.trim().isNotEmpty) {ref.read(selectedFilesProvider.notifier).addMessage(message);}ref.read(selectedFilesProvider.notifier).addFiles(