title: How can I force Proguard to keep my .xml resource file?
body: <p>I am succesfully using proguard for my Android apps. </p>
  
  <p>However, with one app I am having trouble.</p>
  
  <p>This app uses a java library that has a <code>.xml</code> file that is stored in the package.</p>
  
  <pre><code>InputStream istream = Library.class.getResourceAsStream("resource.xml");
  </code></pre>
  
  <p>This library works great when proguard is disabled. However, running proguard, it seems that the xml file is just completely stripped away.</p>
  
  <p>Relevant proguard.cfg</p>
  
  <pre><code>-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/*
  </code></pre>
  
  <p>Any ideas on how to force keep this xml file?</p>