2025-10-31 16:50:15 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBConfig.h
|
|
|
|
|
|
// 主 App 与键盘扩展共用的配置/宏。
|
|
|
|
|
|
//
|
|
|
|
|
|
// 在此处修改后,会通过 PCH 被两个 target 同步引用。
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef KBConfig_h
|
|
|
|
|
|
#define KBConfig_h
|
|
|
|
|
|
|
|
|
|
|
|
// 基础baseUrl
|
|
|
|
|
|
#ifndef KB_BASE_URL
|
2026-03-05 14:30:07 +08:00
|
|
|
|
#define KB_BASE_URL @"https://devcallback.loveamorkey.com/api"
|
2025-10-31 16:50:15 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Universal Links 通用链接
|
|
|
|
|
|
#ifndef KB_UL_BASE
|
2026-03-05 14:30:07 +08:00
|
|
|
|
#define KB_UL_BASE @"https://app.tknb.net/ul"
|
2025-10-31 16:50:15 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
2025-11-24 19:58:19 +08:00
|
|
|
|
#define KB_UL_LOGIN KB_UL_BASE @"/login"
|
|
|
|
|
|
#define KB_UL_SETTINGS KB_UL_BASE @"/settings"
|
2026-03-05 14:30:07 +08:00
|
|
|
|
// 充值入口的通用链接
|
|
|
|
|
|
#define KB_UL_RECHARGE KB_UL_BASE @"/recharge"
|
2025-10-31 16:50:15 +08:00
|
|
|
|
|
|
|
|
|
|
// --- 认证/共享钥匙串 配置 ---
|
|
|
|
|
|
// 若已在 Capabilities 中启用 Keychain Sharing,并添加访问组:
|
2025-11-03 21:04:39 +08:00
|
|
|
|
// $(AppIdentifierPrefix)com.loveKey.nyx.shared
|
|
|
|
|
|
// 运行时会展开为:TN6HHV45BB.com.loveKey.nyx.shared
|
2025-10-31 16:50:15 +08:00
|
|
|
|
// KBAuthManager 通过下面的宏定位访问组;如需修改,可在 Build Settings 或前缀头中覆盖该宏。
|
|
|
|
|
|
#ifndef KB_KEYCHAIN_ACCESS_GROUP
|
2025-11-03 21:04:39 +08:00
|
|
|
|
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.loveKey.nyx.shared"
|
2025-10-31 16:50:15 +08:00
|
|
|
|
#endif
|
2025-11-06 15:16:03 +08:00
|
|
|
|
|
2026-03-05 14:30:07 +08:00
|
|
|
|
// 说明:
|
|
|
|
|
|
// - 该头文件同时被主 App 与键盘扩展引用;
|
|
|
|
|
|
// - 设备/窗口相关的 UIKit 辅助方法(如 UIApplication.sharedApplication)在扩展中不可用,
|
|
|
|
|
|
// 请放到主 App 的前缀头或具体业务代码中,避免引入扩展不允许的 API。
|
2025-11-06 15:16:03 +08:00
|
|
|
|
|
2026-03-05 14:30:07 +08:00
|
|
|
|
#endif /* KBConfig_h */
|