Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

ProGuard ignores libraries in lib folder #77

Closed
migo opened this issue Oct 21, 2011 · 3 comments
Closed

ProGuard ignores libraries in lib folder #77

migo opened this issue Oct 21, 2011 · 3 comments

Comments

@migo
Copy link

migo commented Oct 21, 2011

I use one library that is not available via Maven, so I put it in the lib folder of my project.
Compilation of the class files seems to work this way, but the library is apparently not picked up by ProGuard during the compression phase.
When running the application on the phone, consequently, I get an exception saying that a class contained in the library could not be found.

Is there a way to specify that jars in the lib folder should be picked up by ProGuard?

Thanks!

PS: I use sbt 0.11 and the sbt_011 of the android-plugin.

@migo
Copy link
Author

migo commented Oct 21, 2011

I found a discussion about this problem here:
http://groups.google.com/group/scala-on-android/browse_thread/thread/2219fc6b6b17690c

The solution suggested there works (setting the option "proguardInJars in Android ++= ((file("lib") * ".jar") get)"),
but I still think this should be default behavior.

@jberkel
Copy link
Owner

jberkel commented Oct 21, 2011

weird, just tested this and jar files in lib turn up in the proguard injars config. can you double check with

set logLevel := Level.Debug

?

or maybe something else is needed in addition to -injars

@migo
Copy link
Author

migo commented Oct 21, 2011

Yes, you are right, sorry.

My version of the android-plugin was about one month old. I updated and now it works; it must have been fixed in the meantime.
I close the bug.

@migo migo closed this as completed Oct 21, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants