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
possibility to generate only a subset of implementations #26
Comments
Thanks you. Yes, it is possible, but it is not simple, requires to edit gradle configs and deep understanding of the library structure to fix compilation errors you will face on this way. As an alternative, your can use the whole lib and shrink your application with ProGuard. If both ways are unacceptable, I have an idea of another solution for this problem, but it is not yet implemented and not public. Will be publicised not less than in a couple of months, likely even longer time. |
@h2000 Ok, here is the solution for your specific case, I hope it will help you and people with same questions with different sets of needed specializations: Note: this is verified only for master at dd2db28 and key={int,long} value={int,long,double} configuration. Also I sacrificed precision of the shrink (hence jar sizes) for simplicity:
Then open
Then return to the command line:
Then you have 120 KB |
Very cool, I'll try it tomorrow morning first thing!! |
Could not wait ;). It compiles successfully. I used: If javadoc is activitated, it failed with:
|
@h2000 Good catch. I haven't experienced that probably because I use Java 6 javadoc executable, which treat such problems as warnings by default, Java 8 javadoc became less tolerant by default. If you need Javadocs generated, configure |
Hello leventov,
At first thanks for the very cool library.
Is it possible to build the library with a subset of primitives e.g. key={int,long} value={int,long,double} to reduce the jar size?
The text was updated successfully, but these errors were encountered: