liuguangqiang / SwipeBack

SwipeBack is an android library that can finish a activity by using gesture.
Apache License 2.0
1.74k stars 313 forks source link

Proguard #40

Open kvolkers opened 7 years ago

kvolkers commented 7 years ago

What are the necessary proguard rules for this library?

Running into the following when building with minifyEnabled true.

Warning:com.liuguangqiang.swipeback.SwipeBackActivity: can't find superclass or interface android.support.v7.app.ActionBarActivity
Warning:com.liuguangqiang.swipeback.SwipeBackActivity: can't find referenced class android.support.v7.app.ActionBarActivity
Warning:com.liuguangqiang.swipeback.SwipeBackActivity: can't find referenced method 'android.content.res.Resources getResources()' in program class com.liuguangqiang.swipeback.SwipeBackActivity
Warning:com.liuguangqiang.swipeback.SwipeBackActivity: can't find referenced class android.support.v7.app.ActionBarActivity
liuguangqiang commented 7 years ago

-keep class com.liuguangqiang.* { ; }

metinilhan commented 6 years ago

-keep class com.liuguangqiang.* { ; } -dontwarn com.liuguangqiang.**

Worked for me

phatnhse commented 6 years ago

Should be -keep class com.liuguangqiang.* { *; } -dontwarn com.liuguangqiang.