The parameter to the function is the package name prefix(es) to place into proguard-cache.jar, the module and file ID correlate to files that should NOT be dexed again because they already exist in proguard-cache.jar. Otherwise you will receive duplicate class errors while dexing.
There is no other mapping of package name to file name. I suppose it's possible that it could be made automatic, but I haven't bothered; pull requests accepted. To do this: check all jars to find which ones contain the specified packages and remove them from the dex list when they are matched on a cache-hit. On Fri, May 29, 2015 at 3:52 PM Taig <my.t...@gmail.com> wrote: > Hi, > > I never really managed to understand the ProguardCache. The project page > states: > > All ProguardCache rules must be associated with a module-org+name or a >> local jar file. >> > > But proguardCache in Android := ProguardCache( "play" ) creates an equal > cache jar as ProguardCache( "play" ) % "com.typesafe.play" %% "play-json". > With the latter syntax I can be more specific about my cache rules, > obviously. But why *must all rules be associated with module-org+name*? > What is breaking if I use ProguardCache( "play" )? It seems like the > right thing to do if I want to cache all the play.* classes. > > Also, I think the main reason why I'm struggling to understand the > mechanism is because I'm not getting any feedback if I'm doing wrong or > right. If the plugin could issue a note to the console like "ProguardCache > rule x does not have any effect" this would be a lot easier for me. I'm > currently extracting the proguard-cache-xxx.jar file to validate my > configuration. > > - Taig > > -- > You received this message because you are subscribed to the Google Groups > "scala-on-android" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to scala-on-android+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "scala-on-android" group. To unsubscribe from this group and stop receiving emails from it, send an email to scala-on-android+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.