bugly模拟器可用配置
修改包名
This commit is contained in:
@@ -11,18 +11,18 @@
|
||||
#import <Security/Security.h>
|
||||
#import "KBConfig.h" // 需要共享钥匙串访问组常量,见 KBConfig.h 中的说明
|
||||
|
||||
NSString * const kKBDarwinAuthChanged = @"com.keyBoardst.auth.changed";
|
||||
NSString * const kKBDarwinAuthChanged = @"com.loveKey.nyx.auth.changed";
|
||||
NSNotificationName const KBAuthChangedNotification = @"KBAuthChangedNotification";
|
||||
|
||||
static NSString * const kKBKCService = @"com.keyBoardst.auth"; // 钥匙串 service 名
|
||||
static NSString * const kKBKCService = @"com.loveKey.nyx.auth"; // 钥匙串 service 名
|
||||
static NSString * const kKBKCAccount = @"session"; // 钥匙串 account 键
|
||||
|
||||
// 用于 Keychain Sharing 的访问组;必须与两个 target 的 entitlements 配置一致。
|
||||
// 示例(Capabilities 中勾选 Keychain Sharing 后的值):
|
||||
// $(AppIdentifierPrefix)com.keyBoardst.shared
|
||||
// 运行时会被展开为:TN6HHV45BB.com.keyBoardst.shared
|
||||
// $(AppIdentifierPrefix)com.loveKey.nyx.shared
|
||||
// 运行时会被展开为:TN6HHV45BB.com.loveKey.nyx.shared
|
||||
#ifndef KB_KEYCHAIN_ACCESS_GROUP
|
||||
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.keyBoardst.shared"
|
||||
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.loveKey.nyx.shared"
|
||||
#endif
|
||||
|
||||
// 过期宽限:若过期时间距离当前 <= 该阈值,则视为已过期。
|
||||
|
||||
@@ -25,16 +25,16 @@
|
||||
|
||||
// --- 认证/共享钥匙串 配置 ---
|
||||
// 若已在 Capabilities 中启用 Keychain Sharing,并添加访问组:
|
||||
// $(AppIdentifierPrefix)com.keyBoardst.shared
|
||||
// 运行时会展开为:TN6HHV45BB.com.keyBoardst.shared
|
||||
// $(AppIdentifierPrefix)com.loveKey.nyx.shared
|
||||
// 运行时会展开为:TN6HHV45BB.com.loveKey.nyx.shared
|
||||
// KBAuthManager 通过下面的宏定位访问组;如需修改,可在 Build Settings 或前缀头中覆盖该宏。
|
||||
#ifndef KB_KEYCHAIN_ACCESS_GROUP
|
||||
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.keyBoardst.shared"
|
||||
#define KB_KEYCHAIN_ACCESS_GROUP @"TN6HHV45BB.com.loveKey.nyx.shared"
|
||||
#endif
|
||||
|
||||
// 键盘扩展的 Bundle Identifier(用于 App 侧检测是否已添加该键盘)
|
||||
#ifndef KB_KEYBOARD_EXTENSION_BUNDLE_ID
|
||||
#define KB_KEYBOARD_EXTENSION_BUNDLE_ID @"com.keyBoardst.CustomKeyboard"
|
||||
#define KB_KEYBOARD_EXTENSION_BUNDLE_ID @"com.loveKey.nyx.CustomKeyboard"
|
||||
#endif
|
||||
|
||||
// --- 常用宏 ---
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#import "KBConfig.h"
|
||||
|
||||
// Keychain 存储:记录上次扩展上报的“完全访问”状态
|
||||
static NSString * const kKBPermService = @"com.keyBoardst.perm";
|
||||
static NSString * const kKBPermService = @"com.loveKey.nyx.perm";
|
||||
static NSString * const kKBPermAccount = @"full_access"; // 保存一个字节/数字:0/1/2
|
||||
|
||||
@implementation KBKeyboardPermissionManager
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
NSString * const KBLocalizationDidChangeNotification = @"KBLocalizationDidChangeNotification";
|
||||
|
||||
// 通过共享钥匙串跨 Target 持久化语言选择
|
||||
static NSString * const kKBLocService = @"com.keyBoardst.loc";
|
||||
static NSString * const kKBLocService = @"com.loveKey.nyx.loc";
|
||||
static NSString * const kKBLocAccount = @"lang"; // 保存 UTF8 的语言代码
|
||||
|
||||
@interface KBLocalizationManager ()
|
||||
|
||||
Reference in New Issue
Block a user