title: proguard removing chunktemplate functionality on release build
body: <h1>Problem description</h1>
  
  <p>Chunk template(<a href="https://code.google.com/p/chunk-templates/" rel="nofollow">https://code.google.com/p/chunk-templates/</a>) functionality works correct with my debug builds. 
  If i make a release build with the same code, it just stops working. If i disable proguard in my release build everything is working again. So I'm sure its proguard removing too much from the library during optimization. </p>
  
  <p>While i made my first release build, there were some error messages about chunk template code.
  Using the following progurad statement was able to generate a release build (-dontwarn com.x5.**). After some testing, I've found out that the chunk template functionality was not working.</p>
  
  <h1>Statements that I've tried (from proguard config)</h1>
  
  <ul>
  <li>libraryjars /home/ydoganc/projects/contract_info/libs/chunk_2.4/chunk_template_2.4.jar</li>
  <li>dontwarn com.x5.** #does compile without error but not working </li>
  <li>keep class net.minidev.json.** {*;}</li>
  <li>keep class com.x5.template.** { *; }</li>
  <li>keep class net.minidev.** { *; }</li>
  </ul>
  
  <p>Is there a way to prevent proguard handling the library jars? It looks like proguard is not 
  doing what the config files tell its to do.</p>
  
  <h1>Error messages of proguard(after disabling the -dontwarn com.x5.**... statement):</h1>
  
  <pre>
  [2014-10-28 23:33:32 - ContractInfoListActivity] Proguard returned with error code 1. See console
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONValue
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONValue
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONArray
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ParseException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ContainerFactory
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ContainerFactory
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.Introspector
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.Introspector
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.IntrospectionException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.IntrospectionException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.Introspector
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.Introspector
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.IntrospectionException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.IntrospectionException
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor
  [2014-10-28 23:33:32 - ContractInfoListActivity]       You should check if you need to specify additional program jars.
  [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: there were 55 unresolved references to classes or interfaces.
  [2014-10-28 23:33:32 - ContractInfoListActivity]          You may need to specify additional library jars (using '-libraryjars').
  [2014-10-28 23:33:32 - ContractInfoListActivity] java.io.IOException: Please correct the above warnings first.
  [2014-10-28 23:33:32 - ContractInfoListActivity]    at proguard.Initializer.execute(Initializer.java:321)
  [2014-10-28 23:33:32 - ContractInfoListActivity]    at proguard.ProGuard.initialize(ProGuard.java:211)
  [2014-10-28 23:33:32 - ContractInfoListActivity]    at proguard.ProGuard.execute(ProGuard.java:86)
  [2014-10-28 23:33:32 - ContractInfoListActivity]    at proguard.ProGuard.main(ProGuard.java:492)
  </pre>