I have been using proguard successfully for my Android apps.
However, I have problems with one application.
This application uses the Java library with the .xml file that is stored in the package.
InputStream istream = Library.class.getResourceAsStream("resource.xml");
This library works great when proguard is disabled. However, by running proguard, it seems that the xml file is simply completely deleted.
Relevant proguard.cfg
-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify #-dontobfuscate #-repackageclasses '' //THIS IS DISABLED -keepattributes *Annotation* -keepattributes Signature -verbose -dontwarn roboguice.activity.RoboMapActivity -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
Any ideas on how to get this XML file saved?
Peterdk
source share