2025-10-27 19:42:27 +08:00
|
|
|
|
//
|
|
|
|
|
|
// PrefixHeader.pch
|
|
|
|
|
|
// CustomKeyboard
|
|
|
|
|
|
//
|
|
|
|
|
|
// Created by Mac on 2025/10/27.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PrefixHeader_pch
|
|
|
|
|
|
#define PrefixHeader_pch
|
|
|
|
|
|
|
|
|
|
|
|
// Include any system framework and library headers here that should be included in all compilation units.
|
|
|
|
|
|
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
|
|
|
|
|
|
|
|
|
|
|
|
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
|
2025-10-28 10:18:10 +08:00
|
|
|
|
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
|
2025-10-27 19:42:27 +08:00
|
|
|
|
#define imageNamed(s) [UIImage imageNamed:s]
|
|
|
|
|
|
|
2025-10-31 13:05:34 +08:00
|
|
|
|
// 公共配置
|
|
|
|
|
|
#import "KBConfig.h"
|
2025-11-13 18:03:26 +08:00
|
|
|
|
#import "KBAPI.h" // 接口路径宏(统一管理)
|
2025-10-27 21:55:05 +08:00
|
|
|
|
#import "Masonry.h"
|
2025-10-31 15:08:30 +08:00
|
|
|
|
#import "KBHUD.h" // 复用 App 内的 HUD 封装
|
2025-11-03 16:37:28 +08:00
|
|
|
|
#import "KBLocalizationManager.h" // 复用多语言封装(可在扩展内使用)
|
2025-12-25 17:20:24 +08:00
|
|
|
|
#import "KBMaiPointReporter.h"
|
2025-12-26 15:51:27 +08:00
|
|
|
|
//#import "KBLog.h"
|
2025-12-25 17:20:24 +08:00
|
|
|
|
|
2025-10-27 21:55:05 +08:00
|
|
|
|
|
2025-10-30 20:53:44 +08:00
|
|
|
|
// 通用链接(Universal Links)统一配置
|
|
|
|
|
|
// 配置好 AASA 与 Associated Domains 后,只需修改这里即可切换域名/path。
|
2025-11-05 18:10:56 +08:00
|
|
|
|
#define KB_UL_BASE @"https://app.tknb.net/ul" // 与 Associated Domains 一致
|
2025-10-30 20:53:44 +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
|
|
|
|
// 说明:
|
|
|
|
|
|
// - `extensionContext openURL:` 是 Apple 官方推荐方式,但部分宿主 App(尤其是“B 类应用”)
|
|
|
|
|
|
// 可能会拦截该调用,导致无法直接唤起容器 App;
|
|
|
|
|
|
// - 行业内不少键盘会加“响应链 openURL”兜底来提升唤起成功率,但该方式存在上架审核风险。
|
|
|
|
|
|
// 如你要走更稳妥的上架策略:把该宏改为 0(仅保留 extensionContext 方案)。
|
2025-11-05 18:10:56 +08:00
|
|
|
|
#ifndef KB_URL_BRIDGE_ENABLE
|
2026-03-05 14:30:07 +08:00
|
|
|
|
// 上架建议:Release 关闭“响应链 openURL”兜底,避免审核风险。
|
|
|
|
|
|
#if DEBUG
|
2025-11-05 18:10:56 +08:00
|
|
|
|
#define KB_URL_BRIDGE_ENABLE 1
|
2026-03-05 14:30:07 +08:00
|
|
|
|
#else
|
|
|
|
|
|
#define KB_URL_BRIDGE_ENABLE 1
|
|
|
|
|
|
#endif
|
2025-11-05 18:10:56 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
2025-10-27 21:55:05 +08:00
|
|
|
|
|
2025-10-27 19:42:27 +08:00
|
|
|
|
#endif /* PrefixHeader_pch */
|