Modify: 内存泄漏检测工具

This commit is contained in:
Quyunshuo
2020-08-29 16:52:20 +08:00
parent f9067c3d46
commit bc708aff5d
4 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ open class BaseApplication : Application() {
// AutoSizeConfig.getInstance().isBaseOnWidth = false
// Bugly 初始化 第三个参数为SDK调试模式开关
CrashReport.initCrashReport(this, "c5a9b1304f", BuildConfig.DEBUG);
CrashReport.initCrashReport(this, "c5a9b1304f", BuildConfig.DEBUG)
}
override fun attachBaseContext(base: Context?) {

View File

@@ -2,9 +2,7 @@
note: 1. 测试打包脚本
2. 对比开源项目flow的封装
3. bugly 测试上报
4. 内存泄漏工具
5. 网络请求库
3. 网络请求库
资源文件相关{
资源相关文件属于项目相关的因此需要放在Common组件内不要放在Base组件里

View File

@@ -69,6 +69,7 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
debugImplementation GitHub.LeakCanary
if (!BuildConfig.isAppMode) {
implementation project(path: ':Lib_Main')
} else {

View File

@@ -42,6 +42,7 @@ object Version {
const val EventBus = "3.2.0" // 事件总线
const val Bugly = "3.2.33" // Bugly 异常上报
const val PermissionX = "1.3.0" // 权限申请
const val LeakCanary = "2.4" // 检测内存泄漏
}
object AndroidX {
@@ -98,4 +99,5 @@ object GitHub {
const val EventBusAPT = "org.greenrobot:eventbus-annotation-processor:${Version.EventBus}"
const val Bugly = "com.tencent.bugly:crashreport:${Version.Bugly}"
const val PermissionX = "com.permissionx.guolindev:permissionx:${Version.PermissionX}"
const val LeakCanary = "com.squareup.leakcanary:leakcanary-android:${Version.LeakCanary}"
}