Skip to content

Commit 5bc8498

Browse files
author
xiaoqi
committed
混淆配置
1 parent 3676ee9 commit 5bc8498

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
implementation 'com.noober:savehelper-api:2.1.0'
3131
annotationProcessor 'com.noober:processor:2.1.0'
3232

33+
混淆配置:
34+
35+
-dontwarn com.noober.**
36+
-keep com.noober.api.**
37+
-keep com.noober.savehelper.**
38+
-keepclasseswithmembernames class * implements com.noober.savehelper.ISaveInstanceStateHelper {*;}
39+
3340
# 引入
3441

3542
android 内存被回收是一个开发者的常见问题。当我们**跳转到一个二级界面,或者切换到后台**的时候,如果时间过长或者手机的**内存不足**,当我们再返回这个界面的时候,activity或fragment就会被内存回收。这时候虽然界面被重新执行了onCreate,但是很多变量的值却已经被置空,这样就导致了很多潜在的bug,已经很多空指针的问题。

0 commit comments

Comments
 (0)