YoKeyword / Fragmentation

[DEPRECATED] A powerful library that manage Fragment for Android
Apache License 2.0
9.73k stars 2.11k forks source link

滑动返回问题 #799

Closed ruanbaojun1105 closed 6 years ago

ruanbaojun1105 commented 6 years ago

Issues Guideline

Following information can help us to resolve the issue faster.

6cqtyf1c4 z7jtv c3 y8

In addition, we do not accept issues unrelated to Fragmentation.

ruanbaojun1105 commented 6 years ago

我也是醉了,写了反射还不说要混淆,

YoKeyword commented 6 years ago

@ruanbaojun1105
该设置可滑动区域的方法是一位热心同学的PR,我们都疏忽这个混淆了; 之前没问题 应该是大部分人没有使用该方法

抱歉,目前混淆配置目前手动添加下吧,下一版这个混淆配置会集成到库里

-keepclasseswithmembernames class android.support.v4.widget.ViewDragHelper{ *; }
ruanbaojun1105 commented 6 years ago

@YoKeyword -dontwarn me.yokeyword.fragmentation. -keep class me.yokeyword.fragmentation.{*;} 这样应该也OK

YoKeyword commented 6 years ago

keep fragmentation包的话应该还不行,mEdgeSize 是ViewDragHelper里的属性,混淆后变了,但是Framentation里的mEdgeSize是硬编码,所以应该还是找不到,需要keep ViewDragHelper

ruanbaojun1105 commented 6 years ago

我看调用明明是你库里面的包,反射的也是那个类 怎么会到android.support.v4.widget.ViewDragHelper

ruanbaojun1105 commented 6 years ago

我这刚才按我的混淆后没报错了