BitmapCanary
Android大图监控,支持5.0-11的系统。
Toast | Log |
---|---|
![]() |
![]() |
依赖
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
debugImplementation 'com.github.simplepeng:BitmapCanary:v1.0.1'
}
使用
在AndroidManifest.xml
中配置可选项
<manifest> <application> <meta-data android:name="bitmap_canary_threshold_value" android:value="3000" /> <meta-data android:name="bitmap_canary_enable_log" android:value="true" /> application> manifest>
可以不配置,监控阈值默认为3M,默认是输出log的。
版本迭代
-
v1.0.1:优化输出
-
v1.0.0:首次发布