Skip to content
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

minify support for the library? #68

Open
mihir-kandoi opened this issue Aug 27, 2022 · 7 comments
Open

minify support for the library? #68

mihir-kandoi opened this issue Aug 27, 2022 · 7 comments

Comments

@mihir-kandoi
Copy link

When minify is enabled in build.gradle, everything seems fine and the app builds but the provisioning library does not work correctly (for ex. scanning networks method simply does not return). Disabling minify fixes the issue BUT just because of this single library we can't use minify which when enabled cuts down our app size to half. I also see the example app is also not using minify. I request the developers to try with minify themselves and update the library with embedded ProGuard rules.

@KhushbuShah25
Copy link
Contributor

Hi @mihir-kandoi ,
Will check and add the support so that apps can use with minify enabled.

@mihir-kandoi
Copy link
Author

Hi @mihir-kandoi ,
Will check and add the support so that apps can use with minify enabled.

Thank you :)

@aa-v
Copy link

aa-v commented Feb 2, 2023

Is there a fix for this? Our minified app also fails.

@astimac
Copy link

astimac commented Jul 9, 2023

If someone still needs this, try with this:

-dontwarn com.espressif.provisioning.**
-dontwarn espressif.**
-keep class com.espressif.provisioning.** {*;}
-keepclassmembers class com.espressif.provisioning.** {*;}
-keep class espressif.** {*;}
-keepclassmembers class espressif.** {*;}
-keep interface com.espressif.provisioning.** {*;}
-keep interface espressif.** {*;}
-keep public enum com.espressif.provisioning.** {*;}
-keep public enum espressif.** {*;}

@mihir-kandoi
Copy link
Author

mihir-kandoi commented Jul 9, 2023 via email

@KhushbuShah25
Copy link
Contributor

Hi @astimac , thank you.
If possible, you can provide a PR for proguard rules, we'd be happy to review and merge.
Thanks!

@Klewerro
Copy link

Thanks @astimac - works like a charm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants