To run the example project, clone the repo, and run pod install
from the Example directory first.
BDLibrary is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BDLibrary/Base', :git => 'https://github.com/zhuayi/BDLibrary.git'
zhuayi, [email protected]
BDLibrary is available under the MIT license. See the LICENSE file for more info.
##Crab平台安装
BdLibrary集成了 Crash 平台,
pod 'BDLibrary/Crash', :git => 'https://github.com/zhuayi/BDLibrary.git'
在 appdelegate.m 里的 didFinishLaunchingWithOptions 方法里加入以下代码
// crash 收集
[[CrabCrashReport sharedInstance] initCrashReporterWithAppKey:APPkey
AndVersion:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
AndChannel:@"AppStore"];
##Mtj平台安装
BdLibrary集成了 Mtj 平台,
pod 'BDLibrary/Mtj', :git => 'https://github.com/zhuayi/BDLibrary.git'
在 appdelegate.m 里的 didFinishLaunchingWithOptions 方法里加入以下代码
// Mtj
BaiduMobStat *statTracker = [BaiduMobStat defaultStat];
statTracker.enableExceptionLog = NO;
statTracker.logStrategy = BaiduMobStatLogStrategyAppLaunch;
statTracker.logSendInterval = 1;
statTracker.logSendWifiOnly = YES;
statTracker.sessionResumeInterval = 10;
statTracker.shortAppVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
statTracker.enableDebugOn = YES;
[statTracker startWithAppId:APPKey];