Tickaroo / tikxml

Modern XML Parser for Android
Apache License 2.0
423 stars 44 forks source link

Proguard breaks build if annotated classes are static inner classes #32

Open aviadmini opened 8 years ago

aviadmini commented 8 years ago

I got an issue when I tried to use annotated static inner classes with production build (Proguard obfuscated). With that config ClassLoader cannot find any of the generated classes that implement TypeAdapter. Unfortunately I couldn't modify Proguard config so that is works with that.

Solved it by not using static inner classes but I still had to exclude the classes from Proguard.

I think it's worth mentioning in the guide.

sockeqwe commented 8 years ago

Thanks for reporting. I guess that can be solved with a Proguard Rule, but I will take a closer look for the final 1.0 release to ensure that this is not a internal bug.