2eb67dd4
liangchengyou
feat:调整代码
|
6
7
8
9
10
11
12
|
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
_ = VoiceXSMessageChannel(messager: controller.binaryMessenger)
|
2bcacf87
xiaoyu
添加微信sdk需要的一些回调和工程配置
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
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 ");
}
|