添加bugly的key 测试和正式的

This commit is contained in:
fengshuo
2022-11-01 17:10:13 +08:00
parent 41d99433e8
commit 7fbd9ad930
3 changed files with 8 additions and 4 deletions

View File

@@ -87,11 +87,11 @@ UIKIT_EXTERN NSString * adImageName;
#ifdef DEBUG #ifdef DEBUG
config.debugMode = YES; // debug config.debugMode = YES; // debug
config.reportLogLevel = BuglyLogLevelVerbose; // config.reportLogLevel = BuglyLogLevelVerbose; //
[Bugly startWithAppId:@"bb158b9965" config:config]; [Bugly startWithAppId:KeyWithType(KeyTyoe_BuglyKey) config:config];
#else #else
config.debugMode = NO; // release config.debugMode = NO; // release
config.reportLogLevel = BuglyLogLevelWarn; // config.reportLogLevel = BuglyLogLevelWarn; //
[Bugly startWithAppId:@"bb158b9965" config:config]; [Bugly startWithAppId:KeyWithType(KeyTyoe_BuglyKey) config:config];
#endif #endif
} }

View File

@@ -43,6 +43,8 @@ typedef NS_ENUM(NSUInteger, KeyType) {
KeyType_SystemNotifiUidKey, KeyType_SystemNotifiUidKey,
///小秘书 ///小秘书
KeyType_SecretaryUidKey, KeyType_SecretaryUidKey,
///bugly的key
KeyTyoe_BuglyKey,
}; };
/// 获取当前项目中所用到的 type 所对应的 value 的值 type 类型 /// 获取当前项目中所用到的 type 所对应的 value 的值 type 类型

View File

@@ -59,7 +59,8 @@ NSString * const KeyWithType(KeyType type) {
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5", @(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
@(KeyType_GuildUidKey) : @"904771", @(KeyType_GuildUidKey) : @"904771",
@(KeyType_SystemNotifiUidKey) : @"904770", @(KeyType_SystemNotifiUidKey) : @"904770",
@(KeyType_SecretaryUidKey) : @"904769" @(KeyType_SecretaryUidKey) : @"904769",
@(KeyTyoe_BuglyKey) : @"bb158b9965"
}, },
/// ///
@(NO):@{ @(NO):@{
@@ -81,7 +82,8 @@ NSString * const KeyWithType(KeyType type) {
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5", @(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
@(KeyType_GuildUidKey) : @"938284", @(KeyType_GuildUidKey) : @"938284",
@(KeyType_SystemNotifiUidKey) : @"938283", @(KeyType_SystemNotifiUidKey) : @"938283",
@(KeyType_SecretaryUidKey) : @"938282" @(KeyType_SecretaryUidKey) : @"938282",
@(KeyTyoe_BuglyKey) : @"b92175dd25"
} }
}; };
NSDictionary * enviroDic = [dic objectForKey:@(isRelase)]; NSDictionary * enviroDic = [dic objectForKey:@(isRelase)];