添加bugly的key 测试和正式的
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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 类型
|
||||||
|
@@ -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)];
|
||||||
|
Reference in New Issue
Block a user