You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've found that when I include the SourceAFIS SDK in my Android application, and then compile a release version of my app, the SourceAFIS SDK is adding about 12 MB to my .apk's file size. I opened up my .apk file and took a look inside, and it looks like all 12 MB are coming from new Java classes (in classes2.dex, classes3.dex, and classes4.dex). It this expected? I've just never seen an SDK add so many classes to my project before. Of course I understand that every SDK has dependencies, which in turn have dependencies of their own, but I have 'minifyEnabled=true', which enables code-shrinking, obfuscation, and optimization, and this is usually enough to remove all of the unused classes.
Next I thought maybe I could improve the code-shrinking with Proguard rules. Do you have any recommended Proguard rules when including the SDK in an Android application?
I'm including the SDK in my Android app's build.gradle file like this:
My guess is it's mostly fastutil's primitive collections. Only a few of those classes will be actually loaded at runtime. Minification tools (no idea what's available for Android) should be able to filter out the unused classes.
Re Proguard, no, I do not have any experience with that tool.
Hi, I've found that when I include the SourceAFIS SDK in my Android application, and then compile a release version of my app, the SourceAFIS SDK is adding about 12 MB to my .apk's file size. I opened up my .apk file and took a look inside, and it looks like all 12 MB are coming from new Java classes (in classes2.dex, classes3.dex, and classes4.dex). It this expected? I've just never seen an SDK add so many classes to my project before. Of course I understand that every SDK has dependencies, which in turn have dependencies of their own, but I have 'minifyEnabled=true', which enables code-shrinking, obfuscation, and optimization, and this is usually enough to remove all of the unused classes.
Next I thought maybe I could improve the code-shrinking with Proguard rules. Do you have any recommended Proguard rules when including the SDK in an Android application?
I'm including the SDK in my Android app's build.gradle file like this:
And these are some rules I've set in my build.gradle file:
Thanks in advance, and thanks for making this great SDK.
The text was updated successfully, but these errors were encountered: