新增bugly

This commit is contained in:
liyuhua
2023-08-14 14:45:44 +08:00
parent b5f6ce4822
commit b11f8d54f1
2 changed files with 24 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
target 'YuMi' do
use_frameworks!
pod 'Bugly'
pod 'Adjust', '~> 4.31.0'
pod 'Firebase/Analytics'
pod 'FBSDKLoginKit'

View File

@@ -24,7 +24,7 @@
#import "ClientConfig.h"
#import <Adjust/Adjust.h>
#import <Bugly/Bugly.h>
UIKIT_EXTERN NSString * kYouMiNumberCountKey;
@@ -39,8 +39,30 @@ UIKIT_EXTERN NSString * adImageName;
[self configNIMSDK];
[self initEmojiData];
[self configAdjust];
[self configBugly];
}
/**
Bugly
*/
- (void) configBugly {
BuglyConfig *config = [[BuglyConfig alloc] init];
config.channel = @"App Enterprise";
config.blockMonitorEnable = YES; //
config.blockMonitorTimeout = 5;
config.unexpectedTerminatingDetectionEnable = YES; // 退
#ifdef DEBUG
config.debugMode = YES; // debug
config.reportLogLevel = BuglyLogLevelVerbose; //
[Bugly startWithAppId:@"86cf73b8d5" config:config];
#else
config.debugMode = NO; // release
config.reportLogLevel = BuglyLogLevelWarn; //
[Bugly startWithAppId:@"0fcba36f9a" config:config];
#endif
}
- (void)configNIMSDK {
// NIMSDK
NSString *appKey = KeyWithType(KeyType_NetEase);