SpWaitKiller
Introduction: 解决 Sharedpreferences 造成的主线程阻塞问题,避免应用因此造成 ANR 问题,降低 ANR 率
Tags:
解决 Sharedpreferences 造成的主线程阻塞问题,避免应用因此造成 ANR 问题,降低 ANR 率。
背景及实现介绍: https://juejin.cn/post/7054766647026352158
使用方式
引入依赖
Step 1. 添加依赖
dependencies {
implementation 'io.github.knight-zxw:spwaitkiller:${latestVersion}'
}
Step 2. 代码开启
SpWaitKiller.builder(getApplication())
.build()
.work();
兼容性
Android 5.0 ~ Android 14
