我有幾個模型需要在我的代碼中進行模糊處理。 我知道我可以忽略整個模型包,但我不想這樣做。 我嘗試了一些proguard調整和檢查所有相關的帖子無濟於事。 ORMlite繼續投擲java.lang.RuntimeException: Unable to create application ...App: java.lang.IllegalArgumentException: Foreign field class ....f.p does not have id field
。我檢查了註釋仍在dex2jar和jd,它仍然存在。使用Proguard模糊ORMLite模型類
我有這樣的ProGuard配置(和更大量的是混淆其他部分):
積極的東西:
-mergeinterfacesaggressively
-allowaccessmodification
-optimizationpasses 5
-verbose
-dontskipnonpubliclibraryclasses
-dontpreverify
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
繼續通過各種框架所需的信息:
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes EnclosingMethod
ORMLITE相關:
-keep class com.j256.**
-keepclassmembers class com.j256.** { *; }
-keep enum com.j256.**
-keepclassmembers enum com.j256.** { *; }
-keep interface com.j256.**
-keepclassmembers interface com.j256.** { *; }
我錯過了什麼,或者這是不可能的?
我知道我可以這樣做,但我不想,也不明白爲什麼我必須這樣做,因爲註釋仍然存在。 – meredrica