jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

No Apklib extraction for the "provided" scope #177

Closed fxthomas closed 11 years ago

fxthomas commented 11 years ago

See this discussion on the mailing list.

ApkLib dependencies in the "provided" scope should already be present (and compiled) in one of the dependencies, and thus don't need to be extracted in the subprojects.

tomjadams commented 11 years ago

Just a note, I get this same error & solved it by partially doing what is described on that mailing list post, which is to set proguardInJars in Android := Seq() (so it removes the Scala library). I then had to add proguard options to keep the Scala classes used in tests only but not in our production code. I have also validated the dependsOn(main % "provided") works.

fxthomas commented 11 years ago

@tomjadams : You won't have to change proguardInJars in the next version, it will automatically set the provided deps as -libraryjars in the Proguard config ;)

tomjadams commented 11 years ago

Awesome, that'd be great, I had no end of troubles with this, I burned several days time trying to get it working. Though I now know the code fairly intimately :)

appamatto commented 11 years ago

Merged into 0.6.4 branch. Thanks!