Thanks for the clarification. 2015-11-29 7:53 GMT+01:00 Perry Nguyen <pfngu...@gmail.com>:
> Thinking on this further, the behavior exhibited is absolutely correct, > IMO. > > If your app is pulling in the legacy libraries, there should definitely be > warnings that this is occurring. It might be different from how gradle > behaves, but it gives a better indication that you will potentially be > conflicting with platform libraries that are already present. (a very > likely cause of no such method errors if the version you pull in is not > binary compatible). > > Android 6.0+ only removes the legacy http lib from the compile classpath. > It remains present on the runtime classpath. The library requests are used > to bring it back into existence for compilation. > > On Fri, Nov 27, 2015, 1:30 AM Perry Nguyen <pfngu...@gmail.com> wrote: > >> (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 a topic in the > Google Groups "scala-on-android" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/scala-on-android/sTnsAvrcjhM/unsubscribe > . > To unsubscribe from this group and all its topics, 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.