Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Obfuscation and JDOM  RSS feed

 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed a bug and need to obfuscate our library. I had a proguard script that seemed to work well. When I ran it I got unable to find jdom2. Is this not part of "standard" android? It run fine before obfuscation.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you follow this: https://github.com/hunterhacker/jdom/wiki/JDOM2-and-Android
 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I was not sure if it was relevant since it built fine before the obfuscation. I may try to drop the jar into the proguard lib path.
 
doug mccann
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That did not work out so well. The proguard ran but when I tried to use the library I got errors trying to assign a document to an int. To avoid any hassle should you do all XML with Android classes?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!