Files
keyboard/CustomKeyboard/PrefixHeader.pch

39 lines
1.4 KiB
Plaintext
Raw Normal View History

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-10-27 21:55:05 +08:00
2025-10-30 20:53:44 +08:00
// 通用链接Universal Links统一配置
// 配置好 AASA 与 Associated Domains 后,只需修改这里即可切换域名/path。
#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"
// 在扩展内,启用 URL Bridge仅在显式的用户点击动作中使用
// 这样即便宿主 App如备忘录拒绝 extensionContext 的 openURL仍可通过响应链兜底拉起容器 App。
#ifndef KB_URL_BRIDGE_ENABLE
#define KB_URL_BRIDGE_ENABLE 1
#endif
2025-10-27 21:55:05 +08:00
2025-10-27 19:42:27 +08:00
#endif /* PrefixHeader_pch */