-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old ProGuard version is used #724
Comments
I thought you could override the Proguard library by adding a dependency to the plugin.
It's what I've been doing. |
We had it as a dependency in the past and changed to pulling it from the SDK since that was better supported (or so we thought anyway). I am more than happy to change it back to an explicit dependency on proguard and upgrade to the latest? Wanna send a PR anyone? |
Ahh, this is probably why I haven't been able to move past AMP-4.3 Anyone know how easy to would be o pull it from the dependencies if it is listed, but if not, fall back to whatever is provided by Android SDK? The nice thing about deferring to Android SDK is that means they need to manage the compatibility between Proguard and Android Dex. But by allowing that to be overridden by a dependency declaration it means uses aren't limited by that. |
We should replicate the behavior of the gradle plugin. But I am not sure how the gradle plugin chooses the ProGuard version. I will investigate later. |
Adding as a dependency definitely allows more config for the user @william-ferguson-au. |
I'm in two minds on this. Option 1: Replicating what the Gradle plugin does
Cons:
Option 2: Use Android SDK version of Proguard unless overridden by user. Pros:
Cons:
Don't get me wrong. Personally I'm all for using more recent versions of Proguard. |
I prefer Option 2 to be honest. Maybe all we have to do is make it clearer in the docs on how to override the proguard version. I remember writing a blog post about this years ago .. What if we just add some docs here http://simpligility.github.io/android-maven-plugin/proguard.html |
Hmm, this http://simpligility.github.io/android-maven-plugin/proguard-mojo.html#proguardProguardJarPath suggests that the Proguard task already does (2). |
Thats what I thought from memory but did not get around to look it up. I think we really only should update the docs at this stage. |
Just as a side note, this last week I was debugging two service providers IMHO there should probably be a bug against the Android SDK for it being 5 I think the correct solution is to probably default to the current 2015
|
Maybe we should invert the logic then.. use the one we add as dependency from the classpath and have a flag that replaces it with the one from the SDK. .. although I am not sure that works. So maybe forget about the one from the SDK .. seems like its not maintained if its that old.. wdyt @simpligility/android-maven-plugins-core-committers |
I say let's use the latest, and let the users override if they want. The
old sdk one seems to be abandoned to me.
|
OK, I'm leaning towards using the latest overridden by whatever it defined as a plugin dependency. But let's serve as default whatever the Gradle plugin is using. |
I am more leaning towards latest than towards following the Gradle plugin. And I am fine to abandon the one from the SDK as well.. |
OK. I'm out voted :) On Tue, 26 Apr 2016, 2:59 PM Manfred Moser [email protected] wrote:
|
In the proguard task, the proguard jar is used which can be found in
Android/sdk/tools/proguard
. However this is a really old version. The Android Gradle plugin uses the latest version, i guess it just resoles the dependency from Maven Central. This plugin should also use the latest ProGuard jar.The text was updated successfully, but these errors were encountered: