-
Notifications
You must be signed in to change notification settings - Fork 91
-
Notifications
You must be signed in to change notification settings - Fork 91
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
How to configure Proguard for Android Client library #160
Comments
In case anyone else stumbles upon this, here's a section of the Proguard config that makes it work in my case. Note: the -keep,allowshrinking is required, just ignoring the warnings was not enough.
|
@tobiasKaminsky what do you think? I'd say it'd be nice to have this in the lib's documentation :) |
We have not enabled proguard on client app. Until we have a good reason to use proguard, I would rather remove it completely. |
Okay, fine by me |
Then I'll close this, but as said, it can still be found via search. |
As discussed in nextcloud/android-library#160 proguard.cfg is not correctly working. As we do not use it, this should be removed.
Hi,
I’m using the Nextcloud Android library to add Nextcloud support to an android app using Android Studio. I’m having trouble configuring Proguard. When I run with minifyEnabled false all is fine, but with minifyEnabled true I get lots of Proguard related warnings and error. For example:
com.owncloud.android.lib.common.ExternalLink$$Parcelable: can’t find superclass or interface org.parceler.ParcelWrapper
library class org.apache.commons.codec.binary.BinaryCodec extends or implements program class org.apache.commons.codec.BinaryDecoder
org.apache.jackrabbit.webdav.server.AbstractWebdavServlet: can’t find referenced method ‘int getContentLength()’ in program class org.apache.jackrabbit.webdav.WebdavRequest
I can run with disabling the warings , for example
-dontwarn com.owncloud.android.lib.**
etc.
But then the app crashes as soon as a client completes.
I have tried copying the Proguard.cfg settings from the Nextcloud client app on Github, but that does not make a difference.
Any idea how to configure Proguard to make this work?
Thanks in advance,
Gerrit Beuze
The text was updated successfully, but these errors were encountered: