添加了bugly

This commit is contained in:
fengshuo
2022-10-17 17:54:04 +08:00
parent d9bfc48bc1
commit 48dcfcb167
3 changed files with 32 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ target 'xplan-ios' do
pod 'QGVAPlayer' pod 'QGVAPlayer'
pod 'IQKeyboardManager', '~> 6.5.5' pod 'IQKeyboardManager', '~> 6.5.5'
pod 'TZImagePickerController' pod 'TZImagePickerController'
pod 'Bugly'
#上传音乐 #上传音乐
pod 'CocoaAsyncSocket',:modular_headers => true pod 'CocoaAsyncSocket',:modular_headers => true
#调试 #调试

View File

@@ -16,6 +16,7 @@ PODS:
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- AgoraRtcEngine_iOS (3.0.1.1) - AgoraRtcEngine_iOS (3.0.1.1)
- Base64 (1.1.2) - Base64 (1.1.2)
- Bugly (2.5.93)
- CocoaAsyncSocket (7.6.5) - CocoaAsyncSocket (7.6.5)
- FFPopup (1.1.5) - FFPopup (1.1.5)
- HappyDNS (0.3.17) - HappyDNS (0.3.17)
@@ -91,6 +92,7 @@ DEPENDENCIES:
- AFNetworking - AFNetworking
- AgoraRtcEngine_iOS (~> 3.0.1) - AgoraRtcEngine_iOS (~> 3.0.1)
- Base64 - Base64
- Bugly
- CocoaAsyncSocket - CocoaAsyncSocket
- FFPopup - FFPopup
- IAPHelper - IAPHelper
@@ -128,6 +130,7 @@ DEPENDENCIES:
SPEC REPOS: SPEC REPOS:
https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git: https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git:
- Bugly
- CocoaAsyncSocket - CocoaAsyncSocket
- IQKeyboardManager - IQKeyboardManager
- JXPagingView - JXPagingView
@@ -177,6 +180,7 @@ SPEC CHECKSUMS:
AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce
AgoraRtcEngine_iOS: 8ccceaaecff2e80ab28fcd33f3dfd2b417eb5365 AgoraRtcEngine_iOS: 8ccceaaecff2e80ab28fcd33f3dfd2b417eb5365
Base64: cecfb41a004124895a7bcee567a89bae5a89d49b Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
Bugly: b8715e6ec4004b7f7fbffab0643ba80545aee3da
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
FFPopup: a208dcee8db3e54ec4a88fcd6481f6f5d85b7a83 FFPopup: a208dcee8db3e54ec4a88fcd6481f6f5d85b7a83
HappyDNS: 848ef73e24f2b0e2752064223ce2dc0dd88900ea HappyDNS: 848ef73e24f2b0e2752064223ce2dc0dd88900ea
@@ -215,6 +219,6 @@ SPEC CHECKSUMS:
YYText: 5c461d709e24d55a182d1441c41dc639a18a4849 YYText: 5c461d709e24d55a182d1441c41dc639a18a4849
YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928 YYWebImage: 5f7f36aee2ae293f016d418c7d6ba05c4863e928
PODFILE CHECKSUM: 45b39f2f1f2dc3c34a960cba0c8214df5d55635c PODFILE CHECKSUM: 833fe89266071153d9c69e0146aa9051398bd8a0
COCOAPODS: 1.11.3 COCOAPODS: 1.11.3

View File

@@ -11,6 +11,7 @@
#import <NIMSDK/NIMSDK.h> #import <NIMSDK/NIMSDK.h>
#import <UMCommon/UMCommon.h> #import <UMCommon/UMCommon.h>
#import <UserNotifications/UNUserNotificationCenter.h> #import <UserNotifications/UNUserNotificationCenter.h>
#import <Bugly/Bugly.h>
///Tool ///Tool
#import "XPConstant.h" #import "XPConstant.h"
#import "CustomAttachmentDecoder.h" #import "CustomAttachmentDecoder.h"
@@ -27,6 +28,7 @@ UIKIT_EXTERN NSString * kYinyouPrivateKey;
[self configNIMSDK]; [self configNIMSDK];
[self configUMengSDK]; [self configUMengSDK];
[self initEmojiData]; [self initEmojiData];
[self configBugly];
} }
- (void)configShareSDK { - (void)configShareSDK {
@@ -62,6 +64,30 @@ UIKIT_EXTERN NSString * kYinyouPrivateKey;
[[UIApplication sharedApplication] registerForRemoteNotifications]; [[UIApplication sharedApplication] registerForRemoteNotifications];
} }
/**
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:@"bb158b9965" config:config];
#else
config.debugMode = NO; // release
config.reportLogLevel = BuglyLogLevelWarn; //
[Bugly startWithAppId:@"bb158b9965" config:config];
#endif
}
#pragma mark - SDK #pragma mark - SDK
- (void)configUMengSDK { - (void)configUMengSDK {
// //