feat: add WeChat sharing and invite flow

This commit is contained in:
2026-07-07 16:53:39 +08:00
parent f1937e23d4
commit a80c181bd7
160 changed files with 7557 additions and 849 deletions

View File

@ -0,0 +1,34 @@
//
// WeChatConfig.swift
// suixinkan
//
import Foundation
/// AppIDUniversal Link AASA
enum WeChatConfig {
/// AppID Info.plist URL Scheme
static let appID = "wxdd80ec12c4fee322"
/// OpenSDK 使 Universal Link HTTPS `/`
static let universalLink = "https://www.zhifly.cn/suixinkan/"
/// Associated Domains 使 `applinks:`
static let associatedDomain = "www.zhifly.cn"
/// AASA paths
static let aasaPathPattern = "/suixinkan/*"
/// AASA Team ID + Bundle ID
static let aasaAppID = "56GVN5RNVN.com.yuanzhixiang.suixinkan"
/// Universal Link SDK
static func validateUniversalLink(_ link: String) -> Bool {
guard let url = URL(string: link),
url.scheme?.lowercased() == "https",
link.hasSuffix("/") else {
return false
}
return true
}
}