Files
suixinkan_ios_new/suixinkan/App/suixinkanApp.swift
汉秋 a528d9b0d7 接入微信分享 SDK 并配置 Universal Link。
集成 WechatOpenSDK、www.zhifly.cn/suixinkan/ 通用链接与邀请页分享能力,附带 AASA 部署文件与单元测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 15:02:37 +08:00

32 lines
804 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// suixinkanApp.swift
// suixinkan
//
// Created by hanqiu on 2026/6/18.
//
import SwiftUI
/// SwiftUI
@main
struct suixinkanApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
init() {
AppUITestLaunchState.resetIfNeeded()
AMapBootstrap.configure(apiKey: AMapConfig.apiKey)
}
var body: some Scene {
WindowGroup {
RootView()
.onOpenURL { url in
WeChatManager.shared.handleOpenURL(url)
}
.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in
_ = WeChatManager.shared.handleContinueUserActivity(userActivity)
}
}
}
}