-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
[Feat] - consumer proguard rules #257
Comments
@Alireza-Farahani this is some I heritage and never had the time to take a look, would you mind of opening a PR with this amazing changes? ^^ |
I can create the PR and I like to, since it seems a great "first PR". It could take a while because I'm not very familiar with PR process. |
No issue, take your time to make it good, just keep this thread update! If you need any help let me know and I will review the code with you before merge =) |
I saw in an issue of ArthurHub ImageCropper that the proguard rule is not necessary. I tested your sample via minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' and it just worked! Do you have previously faced Proguard issues at all, or it is something copied from the old ImageCropper library? |
This is very sensible, even what we keep on the proguard is not related to this library. But AndroidX. This may have issue in some usages of AndroidX with this lib, you are right about that is something we just copied to this library.
I let you decide what is the better cause I like have more people opinions and we work together to improve the code and people usage XD |
I would go with the first,
So it seems our proguard rule should not be needed.
|
Perfect! Feel free to drop the PR @Alireza-Farahani |
Since this a android library and you publish an aar artifact, you can include proguard rules in the final artifact and remove the burden from end user. See here
By the way, is it necessary to keep all of
-keep class androidx.appcompat.widget.** { *; }
classes or could it be more narrowed?The text was updated successfully, but these errors were encountered: