Proguard with OrmLite on Android

前端 未结 8 2010
无人及你
无人及你 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:16

    I've came up with such solution (maybe will work for somebody too).

    Made such changes to proguard.cfg:

    • Added -dontobfuscate option

    • Appended ,!code/allocation/variable to -optimization option

    APK file size using such configuration reduced from 580 kB to 250 kB.

    Though, no obfuscation is performed.

提交回复
热议问题