bugly模拟器可用配置
修改包名
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
#import "AppDelegate.h"
|
||||
#import "KBPermissionViewController.h"
|
||||
#import <AFNetworking/AFNetworking.h>
|
||||
#if !DEBUG
|
||||
#import <Bugly/Bugly.h>
|
||||
#endif
|
||||
#import "BaseTabBarController.h"
|
||||
#import "LoginViewController.h"
|
||||
#import "KBLoginSheetViewController.h"
|
||||
@@ -17,8 +19,8 @@
|
||||
|
||||
// 注意:用于判断系统已启用本输入法扩展的 bundle id 需与扩展 target 的
|
||||
// PRODUCT_BUNDLE_IDENTIFIER 完全一致。
|
||||
// 当前工程的 CustomKeyboard target 为 com.keyBoardst.CustomKeyboard
|
||||
static NSString * const kKBKeyboardExtensionBundleId = @"com.keyBoardst.CustomKeyboard";
|
||||
// 当前工程的 CustomKeyboard target 为 com.loveKey.nyx.CustomKeyboard
|
||||
static NSString * const kKBKeyboardExtensionBundleId = @"com.loveKey.nyx.CustomKeyboard";
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
@@ -30,11 +32,15 @@ static NSString * const kKBKeyboardExtensionBundleId = @"com.keyBoardst.CustomKe
|
||||
[KBNetworkManager shared].enabled = YES;
|
||||
/// 获取网络权限
|
||||
[self getNetJudge];
|
||||
/// Bugly
|
||||
|
||||
#if !DEBUG
|
||||
/// Bugly
|
||||
BuglyConfig *buglyConfig = [BuglyConfig new];
|
||||
/// 设置GroupID进行配置
|
||||
// buglyConfig.applicationGroupIdentifier = @"";
|
||||
[Bugly startWithAppId:BuglyId config:buglyConfig];
|
||||
#endif
|
||||
|
||||
// 键盘权限引导改由 KBGuideVC 内部负责;此处不主动弹出。
|
||||
return YES;
|
||||
}
|
||||
|
||||
@@ -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,9 +25,9 @@
|
||||
|
||||
// --- 认证/共享钥匙串 配置 ---
|
||||
// 若已在 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
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>com.keyBoardst.keyboard</string>
|
||||
<string>com.loveKey.nyx.keyboard</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>kbkeyboard</string>
|
||||
|
||||
@@ -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,9 +25,9 @@
|
||||
|
||||
// --- 认证/共享钥匙串 配置 ---
|
||||
// 若已在 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
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</array>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(AppIdentifierPrefix)com.keyBoardst.shared</string>
|
||||
<string>$(AppIdentifierPrefix)com.loveKey.nyx.shared</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Reference in New Issue
Block a user