(behavior change in Android builder 1.5.0) On Thu, Nov 26, 2015, 11:47 PM David K. <dejvid....@gmail.com> wrote:
> Hi, > > well library name is printed when proguard is running as you sad. From > there was my assumption that is included somehow from somewhere because > proguard uses it. Got errors about it and I had to put dontwarns into > proguard config for proguard to complete without error. Im not using the > library anyway i thought that it is included somewhere explicitly. So if it > is not included in final build and classpath why is it then passed to > proguard? Well proguard dontwarn solves the problem, but that should not be > necessary. > > Thank you :) > > Dne četrtek, 26. november 2015 16.36.51 UTC+1 je oseba pfn napisala: >> >> To be clear: >> >> It is not included in the classpath. >> It is included during proguard for reference checks (possibly a bug). >> It is not included in the final build output. >> >> On Thu, Nov 26, 2015, 7:10 AM Perry Nguyen <pfng...@gmail.com> wrote: >> > It is, however, passed as a library to proguard automatically (behavior >>> change in Android builder 1.5.0) >>> >>> On Thu, Nov 26, 2015, 7:09 AM Perry Nguyen <pfng...@gmail.com> wrote: >>> >> It is not automatically included. How exactly are you deciding this? >>>> >>>> On Thu, Nov 26, 2015, 5:10 AM David K. <dejvi...@gmail.com> wrote: >>>> >>> Hi, >>>>> >>>>> Im using android-sbt-plugin 1.5.9, and it automatically includes >>>>> org.apache.http.legacy.jar. Using gradle plugin for android you have to >>>>> explicitly tell it to use legacy library, in this case is included >>>>> by default. How can I exclude legacy library from build? >>>>> >>>>> This is how my build.sbt looks like: >>>>> >>>>> lazy val android = (project in file("android")) >>>>> .settings(androidBuild) >>>>> .settings( >>>>> name := "Android", >>>>> platformTarget in Android := "android-23", >>>>> minSdkVersion in Android := "16", >>>>> targetSdkVersion in Android := "23", >>>>> proguardCache in Android ++= Seq("org.scaloid"), >>>>> debugIncludesTests in Android := false, >>>>> javacOptions in Compile ++= "-target" :: "1.7" :: "-source" :: "1.7" >>>>> :: Nil, >>>>> proguardScala in Android := true, >>>>> useProguard in Android := true, >>>>> proguardOptions in Android ++= Settings.proguardCommons, >>>>> libraryDependencies ++= Libraries.androidLibraries >>>>> ) >>>>> >>>>> >>>>> >>>>> >>>>> Any help appreciated, >>>>> >>>>> David >>>>> >>>>> -- >>>>> 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-andro...@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. > -- 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.