// // 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 #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height #define imageNamed(s) [UIImage imageNamed:s] // 公共配置 #import "KBConfig.h" #import "KBAPI.h" // 接口路径宏(统一管理) #import "Masonry.h" #import "KBHUD.h" // 复用 App 内的 HUD 封装 #import "KBLocalizationManager.h" // 复用多语言封装(可在扩展内使用) // 通用链接(Universal Links)统一配置 // 配置好 AASA 与 Associated Domains 后,只需修改这里即可切换域名/path。 #define KB_UL_BASE @"https://app.tknb.net/ul" // 与 Associated Domains 一致 #define KB_UL_LOGIN KB_UL_BASE @"/login" #define KB_UL_SETTINGS KB_UL_BASE @"/settings" // 在扩展内,启用 URL Bridge(仅在显式的用户点击动作中使用) // 这样即便宿主 App(如备忘录)拒绝 extensionContext 的 openURL,仍可通过响应链兜底拉起容器 App。 #ifndef KB_URL_BRIDGE_ENABLE #define KB_URL_BRIDGE_ENABLE 1 #endif #endif /* PrefixHeader_pch */