From a4ae1793ba818bb5f5378b0ef047e542f625d802 Mon Sep 17 00:00:00 2001 From: zhen zhang Date: Thu, 30 Mar 2023 14:44:54 +0800 Subject: [PATCH] =?UTF-8?q?Universal=20link=E5=8F=AA=E8=B4=9F=E8=B4=A3?= =?UTF-8?q?=E6=8E=A5=E5=8F=97=E5=B9=B6=E8=AE=B0=E5=BD=95link=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BC=A0=E7=BB=99=E4=B8=8B=E5=B1=82=EF=BC=8C=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=8B=A6=E6=88=AA=EF=BC=8C=E5=90=A6=E5=88=99?= =?UTF-8?q?=E5=A4=9A=E4=B8=AApub=EF=BC=8C=E9=83=BD=E5=A4=84=E7=90=86univer?= =?UTF-8?q?sal=20link=E5=B0=B1=E4=BC=9A=E5=87=BA=E7=8E=B0=E4=BA=92?= =?UTF-8?q?=E6=96=A5=EF=BC=8C=E6=AF=94=E5=A6=82=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=EF=BC=8C=E5=B0=B1=E4=BC=9A=E5=AF=BC=E8=87=B4=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=9B=9E=E8=B0=83=EF=BC=8C=E8=A2=AB=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=8C=E4=BA=8C=E4=B8=8D=E5=87=BAwechat=5F?= =?UTF-8?q?kit=E7=9A=84=E4=BB=A3=E7=90=86=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- .../example/ios/Flutter/AppFrameworkInfo.plist | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 13 ++++++++----- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- uni_links/example/ios/Runner/Info.plist | 18 ++++++++++++++++-- uni_links/ios/Classes/UniLinksPlugin.m | 6 +++--- 6 files changed, 31 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index c1a9146..d6bb869 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ build/ .flutter-plugins example/android/app/bin/ -doc/ \ No newline at end of file +doc/ +IDEWorkspaceChecks.plist diff --git a/uni_links/example/ios/Flutter/AppFrameworkInfo.plist b/uni_links/example/ios/Flutter/AppFrameworkInfo.plist index 9367d48..9625e10 100644 --- a/uni_links/example/ios/Flutter/AppFrameworkInfo.plist +++ b/uni_links/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 8.0 + 11.0 diff --git a/uni_links/example/ios/Runner.xcodeproj/project.pbxproj b/uni_links/example/ios/Runner.xcodeproj/project.pbxproj index 6914e17..21b22ff 100644 --- a/uni_links/example/ios/Runner.xcodeproj/project.pbxproj +++ b/uni_links/example/ios/Runner.xcodeproj/project.pbxproj @@ -163,11 +163,12 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1100; + LastUpgradeCheck = 1300; ORGANIZATIONNAME = "The Chromium Authors"; TargetAttributes = { 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; + DevelopmentTeam = CZBY93327C; }; }; }; @@ -333,7 +334,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -383,7 +384,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -397,6 +398,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = CZBY93327C; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -408,7 +410,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.uniLinksExample; + PRODUCT_BUNDLE_IDENTIFIER = "com.example.uniLinksExample-test"; PRODUCT_NAME = "$(TARGET_NAME)"; VERSIONING_SYSTEM = "apple-generic"; }; @@ -420,6 +422,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = CZBY93327C; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -431,7 +434,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.uniLinksExample; + PRODUCT_BUNDLE_IDENTIFIER = "com.example.uniLinksExample-test"; PRODUCT_NAME = "$(TARGET_NAME)"; VERSIONING_SYSTEM = "apple-generic"; }; diff --git a/uni_links/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/uni_links/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 3bb3697..50a8cfc 100644 --- a/uni_links/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/uni_links/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion en CFBundleExecutable @@ -10,8 +12,6 @@ $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 - CFBundleName - uni_links_example CFBundlePackageType APPL CFBundleShortVersionString @@ -30,9 +30,23 @@ unilinks + + CFBundleTypeRole + Editor + CFBundleURLName + zz + CFBundleURLSchemes + + zz + + CFBundleVersion 1 + LSApplicationQueriesSchemes + + zz + LSRequiresIPhoneOS UILaunchStoryboardName diff --git a/uni_links/ios/Classes/UniLinksPlugin.m b/uni_links/ios/Classes/UniLinksPlugin.m index 025db23..20f0326 100644 --- a/uni_links/ios/Classes/UniLinksPlugin.m +++ b/uni_links/ios/Classes/UniLinksPlugin.m @@ -52,14 +52,14 @@ - (BOOL)application:(UIApplication *)application NSURL *url = (NSURL *)launchOptions[UIApplicationLaunchOptionsURLKey]; self.initialLink = [url absoluteString]; self.latestLink = self.initialLink; - return YES; + return NO; } - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { self.latestLink = [url absoluteString]; - return YES; + return NO; } - (BOOL)application:(UIApplication *)application @@ -70,7 +70,7 @@ - (BOOL)application:(UIApplication *)application if (!_eventSink) { self.initialLink = self.latestLink; } - return YES; + return NO; } return NO; }