Proguard with OrmLite on Android

前端 未结 8 2029
无人及你
无人及你 2020-11-27 17:46

How should I use proguard with ormlite library on Android?

Trying this:

-keep class com.j256.**
-keepclassmembers class com.j256.**
-keep enum com.j2         


        
8条回答
  •  盖世英雄少女心
    2020-11-27 18:21

    A small addition to the configuration above - if you're trying to serialize / deserialize Joda's DateTime objects via ORMLite, you probably need this as well:

    -keepclassmembers class **DateTime {
        (long);
        long getMillis();
    }
    

    ...since ORMLite's DateTimeType does everything via reflection.

提交回复
热议问题