diff --git a/ios/Podfile b/ios/Podfile index 5118ed8..7172f02 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -32,10 +32,8 @@ target 'Runner' do use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) - target 'RunnerTests' do - inherit! :search_paths - end + # Share Extension is name of Extension which you created which is in this case 'Share Extension' target 'Share Extension' do inherit! :search_paths end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 7d2edde..0c05c65 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -8,6 +8,8 @@ PODS: - Flutter - irondash_engine_context (0.0.1): - Flutter + - listen_sharing_intent (1.9.2): + - Flutter - objective_c (0.0.1): - Flutter - package_info_plus (0.4.5): @@ -15,8 +17,6 @@ PODS: - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - receive_sharing_intent (1.8.1): - - Flutter - Sentry/HybridSDK (8.56.2) - sentry_flutter (9.8.0): - Flutter @@ -41,10 +41,10 @@ DEPENDENCIES: - flutter_custom_tabs_ios (from `.symlinks/plugins/flutter_custom_tabs_ios/ios`) - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - irondash_engine_context (from `.symlinks/plugins/irondash_engine_context/ios`) + - listen_sharing_intent (from `.symlinks/plugins/listen_sharing_intent/ios`) - objective_c (from `.symlinks/plugins/objective_c/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - - receive_sharing_intent (from `.symlinks/plugins/receive_sharing_intent/ios`) - sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) @@ -67,14 +67,14 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_native_splash/ios" irondash_engine_context: :path: ".symlinks/plugins/irondash_engine_context/ios" + listen_sharing_intent: + :path: ".symlinks/plugins/listen_sharing_intent/ios" objective_c: :path: ".symlinks/plugins/objective_c/ios" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" path_provider_foundation: :path: ".symlinks/plugins/path_provider_foundation/darwin" - receive_sharing_intent: - :path: ".symlinks/plugins/receive_sharing_intent/ios" sentry_flutter: :path: ".symlinks/plugins/sentry_flutter/ios" share_plus: @@ -94,10 +94,10 @@ SPEC CHECKSUMS: flutter_custom_tabs_ios: 89e60122b553c69a79bfd45eb8eb99d911c1a9c0 flutter_native_splash: df59bb2e1421aa0282cb2e95618af4dcb0c56c29 irondash_engine_context: 3458bf979b90d616ffb8ae03a150bafe2e860cc9 + listen_sharing_intent: 74a842adcbcf7bedf7bbc938c749da9155141b9a objective_c: 77e887b5ba1827970907e10e832eec1683f3431d package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4 path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 - receive_sharing_intent: 79c848f5b045674ad60b9fea3bafea59962ad2c1 Sentry: b53951377b78e21a734f5dc8318e333dbfc682d7 sentry_flutter: f074f75557daea0e1dd9607381a05cc0e3e456fe share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f @@ -106,6 +106,6 @@ SPEC CHECKSUMS: url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe webview_flutter_wkwebview: a4af96a051138e28e29f60101d094683b9f82188 -PODFILE CHECKSUM: d4fbc6f8b80610d0ec69c4abf003d2871d1d88f2 +PODFILE CHECKSUM: f4a1a94f7b997c60f34f5ec510acd4c2ebcd8b70 COCOAPODS: 1.16.2 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 1e3bf9b..4e654ac 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -22,7 +22,6 @@ 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 */; }; - 9E25F1586AA6B467B2F85F6D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABB81CF75DD6CCAA2824780A /* Pods_RunnerTests.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -85,7 +84,6 @@ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; - 8E8607A85826990422E9A93E /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -93,14 +91,11 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - ABB81CF75DD6CCAA2824780A /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - D7D2E01FF2421427934DCB2A /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; D82812D4EFCC75C7B0FDB517 /* Pods_Share_Extension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Share_Extension.framework; sourceTree = BUILT_PRODUCTS_DIR; }; E4533A4D5154C6705434104C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; F0C2D0B1825F8EE28A1E5C13 /* 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 = ""; }; F7EBE0A0B68411B7E3F62A40 /* 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 = ""; }; FAF7552BBEA34A8D0259E3C6 /* Pods-Share Extension.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Share Extension.profile.xcconfig"; path = "Target Support Files/Pods-Share Extension/Pods-Share Extension.profile.xcconfig"; sourceTree = ""; }; - FE730FDF3A8382D8C7AE8CCB /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -116,7 +111,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9E25F1586AA6B467B2F85F6D /* Pods_RunnerTests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -154,7 +148,6 @@ isa = PBXGroup; children = ( E4533A4D5154C6705434104C /* Pods_Runner.framework */, - ABB81CF75DD6CCAA2824780A /* Pods_RunnerTests.framework */, D82812D4EFCC75C7B0FDB517 /* Pods_Share_Extension.framework */, ); name = Frameworks; @@ -166,9 +159,6 @@ F0C2D0B1825F8EE28A1E5C13 /* Pods-Runner.debug.xcconfig */, F7EBE0A0B68411B7E3F62A40 /* Pods-Runner.release.xcconfig */, 028E6C730A588E1E84511D36 /* Pods-Runner.profile.xcconfig */, - D7D2E01FF2421427934DCB2A /* Pods-RunnerTests.debug.xcconfig */, - FE730FDF3A8382D8C7AE8CCB /* Pods-RunnerTests.release.xcconfig */, - 8E8607A85826990422E9A93E /* Pods-RunnerTests.profile.xcconfig */, 67C02B529825EA1C87E41529 /* Pods-Share Extension.debug.xcconfig */, 033AEC9585A60167C7A7CE55 /* Pods-Share Extension.release.xcconfig */, FAF7552BBEA34A8D0259E3C6 /* Pods-Share Extension.profile.xcconfig */, @@ -252,7 +242,6 @@ isa = PBXNativeTarget; buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; buildPhases = ( - 3A41E757C007027010B2D4CC /* [CP] Check Pods Manifest.lock */, 331C807D294A63A400263BE5 /* Sources */, 331C807F294A63A400263BE5 /* Resources */, 6AD84DA433147BB17C6D6D03 /* Frameworks */, @@ -390,28 +379,6 @@ 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; }; - 3A41E757C007027010B2D4CC /* [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-RunnerTests-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; - }; 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -590,6 +557,7 @@ SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_ENABLE_EXPLICIT_MODULES = NO; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -631,6 +599,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_ENABLE_EXPLICIT_MODULES = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -671,6 +640,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_ENABLE_EXPLICIT_MODULES = NO; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -755,7 +725,6 @@ }; 331C8088294A63A400263BE5 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D7D2E01FF2421427934DCB2A /* Pods-RunnerTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -773,7 +742,6 @@ }; 331C8089294A63A400263BE5 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FE730FDF3A8382D8C7AE8CCB /* Pods-RunnerTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; @@ -789,7 +757,6 @@ }; 331C808A294A63A400263BE5 /* Profile */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8E8607A85826990422E9A93E /* Pods-RunnerTests.profile.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 7582bea..b240cd3 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -27,19 +27,20 @@ $(FLUTTER_BUILD_NAME) CFBundleSignature ???? - AppGroupId - $(CUSTOM_GROUP_ID) - CFBundleURLTypes - - - CFBundleTypeRole - Editor - CFBundleURLSchemes - - ShareMedia-$(PRODUCT_BUNDLE_IDENTIFIER) - - - + AppGroupId + $(CUSTOM_GROUP_ID) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLSchemes + + ShareMedia-$(PRODUCT_BUNDLE_IDENTIFIER) + + + + CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS @@ -71,4 +72,4 @@ - + \ No newline at end of file diff --git a/ios/Share Extension/Info.plist b/ios/Share Extension/Info.plist index 9223385..96adeef 100644 --- a/ios/Share Extension/Info.plist +++ b/ios/Share Extension/Info.plist @@ -4,16 +4,20 @@ AppGroupId $(CUSTOM_GROUP_ID) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) NSExtension NSExtensionAttributes NSExtensionActivationRule - + NSExtensionActivationSupportsText - + NSExtensionActivationSupportsWebURLWithMaxCount 1 diff --git a/ios/Share Extension/ShareViewController.swift b/ios/Share Extension/ShareViewController.swift index f9364fc..e17690a 100644 --- a/ios/Share Extension/ShareViewController.swift +++ b/ios/Share Extension/ShareViewController.swift @@ -1,7 +1,7 @@ -// If you get no such module 'receive_sharing_intent' error. +// If you get no such module 'listen_sharing_intent' error. // Go to Build Phases of your Runner target and // move `Embed Foundation Extension` to the top of `Thin Binary`. -import receive_sharing_intent +import listen_sharing_intent class ShareViewController: RSIShareViewController { diff --git a/lib/main.dart b/lib/main.dart index 9e3796b..437e621 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -9,7 +9,7 @@ import 'package:dynamic_color/dynamic_color.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:linkdy/utils/sentry_handle_error.dart'; import 'package:package_info_plus/package_info_plus.dart'; -import 'package:receive_sharing_intent/receive_sharing_intent.dart'; +import 'package:listen_sharing_intent/listen_sharing_intent.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/pubspec.lock b/pubspec.lock index 718273c..77510f8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -670,6 +670,14 @@ packages: url: "https://pub.dev" source: hosted version: "6.0.0" + listen_sharing_intent: + dependency: "direct main" + description: + name: listen_sharing_intent + sha256: df12e6c78666018985c39df494fc12412ece6510c38c79fe1230f2abef0965fa + url: "https://pub.dev" + source: hosted + version: "1.9.2" logging: dependency: transitive description: @@ -870,15 +878,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.5.0" - receive_sharing_intent: - dependency: "direct main" - description: - path: "." - ref: "1.8.3" - resolved-ref: "2e0b90606d78569f97d58981461180be9699b9e0" - url: "https://github.com/JGeek00/receive_sharing_intent" - source: git - version: "1.8.3" riverpod: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index caa7d2a..73d177d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -62,10 +62,7 @@ dependencies: url: https://github.com/JGeek00/flutter_split_view ref: master-alt super_context_menu: ^0.9.1 - receive_sharing_intent: - git: - url: https://github.com/JGeek00/receive_sharing_intent - ref: 1.8.3 + listen_sharing_intent: ^1.9.2 dev_dependencies: build_runner: ^2.5.1