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
[Flutter project] APK file increased by 40% with FreeRASP package #100
Comments
Hi @speszke, Did you increase the minSdkVersion when you installed freeRASP, or had you this dependency already satisfied? We noticed that bump from minSdkVersion API <23 to API >=23 can lead to notable increases in APK size. However, this increase is not directly caused by freeRASP: since API 23, the native libraries that come with your project are stored uncompressed in the APK (in comparison, in earlier versions, they were compressed). Although your APK might be larger, your application should load faster because the libraries are directly loaded from the APK at runtime. You can read more about it here. In our experience, integrating freeRASP typically results in a more modest increase of around 10 MB in the APK size, as in the example app in the freeRASP project. In your case, one potential solution to consider is to use Android App Bundle, which should result in reducing of the final app size during distribution. Best, |
Hi @tompsota , |
Hi @speszke, Can you provide more information about the setup of your project? E.g. which version of Flutter and Freerasp are you using? Cheers, |
try add this in manifest in application tag If set to "false", your native libraries are stored uncompressed in the APK. Although your APK might be larger, your application loads faster because the libraries load directly from the APK at runtime. |
@MajdSallora thanks this worked |
Hello. I've updated Troubleshooting section in README.md. This change will be reflected in README.md at pub.dev on next update. Issue will be closed on next freerasp release. |
Hi,
I've integrated FreeRASP package into the flutter's project and size of APK file (release build) increased from 70MB to 100MB.
Is this the "price" I have to pay to use the package, or is there a way to not increase the build file's size significantly?
The text was updated successfully, but these errors were encountered: