diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 4d90c77..c3c643e 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -2310,7 +2310,6 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = T8P9KW8GWH; ENABLE_BITCODE = NO; @@ -2319,7 +2318,6 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.3; OTHER_CFLAGS = ( "-DNDEBUG", "'-std=gnu99'", @@ -2657,7 +2655,6 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = T8P9KW8GWH; ENABLE_BITCODE = NO; @@ -2688,7 +2685,6 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.3; ONLY_ACTIVE_ARCH = NO; OTHER_CFLAGS = "'-std=gnu99'"; OTHER_CPLUSPLUSFLAGS = "'-std=c++11'"; @@ -2865,7 +2861,6 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = T8P9KW8GWH; ENABLE_BITCODE = NO; @@ -2874,7 +2869,6 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.3; OTHER_CFLAGS = ( "-DNDEBUG", "'-std=gnu99'", diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index 6b0d220..23c79e8 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -13,6 +13,35 @@ import Flutter _ = XSMessageMehtodChannel(message: controller.binaryMessenger); _ = GameMessageChannel(message: controller.binaryMessenger); + let registerWX = WXApi.registerApp("wx365e5a79956a450a", universalLink: "https://app-api.wowenglish.com.cn/app/"); + if registerWX == true { + print("WXApi register 成功"); + } else { + print("WXApi register 失败"); + } + return super.application(application, didFinishLaunchingWithOptions: launchOptions) } + + override func application(_ application: UIApplication, handleOpen url: URL) -> Bool { + return WXApi.handleOpen(url, delegate: self); + } + + override func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { + return WXApi.handleOpen(url, delegate: self); + } + + override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([any UIUserActivityRestoring]?) -> Void) -> Bool { + return WXApi.handleOpenUniversalLink(userActivity, delegate: self); + } +} + +extension AppDelegate: WXApiDelegate { + func onReq(_ req: BaseReq) { + print("WXApiDelegate onReq"); + } + + func onResp(_ resp: BaseResp) { + print("WXApiDelegate onResp "); + } } diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 4d72dde..7be4afb 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -2,6 +2,15 @@ + LSApplicationQueriesSchemes + + wechat + weixin + weixinULAPI + weixinURLParamsAPI + alipay + alipayshare + CADisableMinimumFrameDurationOnPhone CFBundleDevelopmentRegion @@ -44,6 +53,16 @@ alipayishowwoweng + + CFBundleTypeRole + Editor + CFBundleURLName + weixin + CFBundleURLSchemes + + wx365e5a79956a450a + + CFBundleVersion 5 diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h index 2f4c5c7..2f58a05 100644 --- a/ios/Runner/Runner-Bridging-Header.h +++ b/ios/Runner/Runner-Bridging-Header.h @@ -3,3 +3,5 @@ #import #import "WowGameCocosManager.h" + +#import