提取baseurl配置

This commit is contained in:
2025-10-31 13:05:34 +08:00
parent 10dfe9b1d6
commit eb0d3aaa71
4 changed files with 40 additions and 6 deletions

25
Shared/KBConfig.h Normal file
View File

@@ -0,0 +1,25 @@
//
// KBConfig.h
// Shared config/macros for both main app and keyboard extension.
//
// Edit these values once and both targets pick them up via PCH import.
//
#ifndef KBConfig_h
#define KBConfig_h
// 基础baseUrl
#ifndef KB_BASE_URL
#define KB_BASE_URL @"https://m1.apifoxmock.com/m1/5438099-5113192-default/"
#endif
// Universal Links 通用链接
#ifndef KB_UL_BASE
#define KB_UL_BASE @"https://your.domain/ul"
#endif
#define KB_UL_LOGIN KB_UL_BASE @"/login"
#define KB_UL_SETTINGS KB_UL_BASE @"/settings"
#endif /* KBConfig_h */