android - Crash on ListView adapter after obfuscating -
after obfuscating app stops working. use gradle. it`s part of build.gradle.
buildtypes { release { debuggable false minifyenabled true proguardfile 'other-proguard-rules.pro' proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' signingconfig signingconfigs.releasesigning } }
here mt other-proguard-rules.pro
-keepattributes *annotation* -keep class com.polites.android.** { *; } -keep interface com.polites.android.** { *; } -keep class com.handmark.pulltorefresh.library.** { *; } -keep interface com.handmark.pulltorefresh.library.** { *; } -keep class android.support.v7.internal.** { *; } -keep interface android.support.v7.internal.** { *; } -keep class android.support.v7.** { *; } -keep interface android.support.v7.** { *; } -keep class com.google.** { *;} -keep interface com.google.** { *;} -dontwarn com.google.**
trouble listview adapter.
mtriggerlist.clear(); mtriggerlist.addall(triggerlist); notifydatasetchanged();
if comment "notifydatasetchanged();" works. of course list not updated. without comment - crash. reason?
Comments
Post a Comment