pardom-zz / ActiveAndroid

Active record style SQLite persistence for Android
http://www.activeandroid.com
4.7k stars 1.03k forks source link

Multiple crash when using proguard #566

Open ROMDEMBELE opened 4 years ago

ROMDEMBELE commented 4 years ago

I had a couple of error with proguard, the Column name and parameters like onUniqueConflict are "deleted" by proguard so the application crash when it released I added :

-keep class com.activeandroid.* { ; } -keep class com.activeandroid.. { ; } -keep class extends com.activeandroid.Model -keep class * extends com.activeandroid.serializer.TypeSerializer

And the class of my Database who's extend model but that was ineffective

WardTN commented 4 years ago

Entity class you created cannot be confused -keep class your db.{;}