-
Notifications
You must be signed in to change notification settings - Fork 109
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
Upgrade of awesome_dialog from 3.0.2 to 3.1.0 causes significant increase in Android release aab size and apk download size #135
Comments
Update I thought I had looked at the rive issue log, but I revisted and found a similar problem with this (partial) solution: specifying a specific ndk version helps:
This produced an aab of 43.3Mb, far less than 76.7Mb without explicit ndk version, and closer to the original 37Mb. I also added the following:
which excludes the rive_text runtime, and produces an aab of 37.3Mb. I need to test that this doesn't break awesome_dialogs or my app, but it helps explain what is responsible for the increase in aab size. |
i am using this command for build apk "flutter build apk --release" before doing what you said app size is 200mb, after doing it is 60mb thanks |
Did you use the NDK version specified above? That had the largest impact on reducing the size. |
Thanks for this. in my case change mi AAB from 117.3 to 68.3 |
For me exclude 'lib/**/librive_text.so' broke the header animation. Sadly. But using this exact same version helps android { |
I noticed you updated the rive dependency from 0.12.4 to 0.13.2, which is the 'cause'. Header animations work fine with these build changes and rive 0.12.4, but when I switched to 0.13.2, they disappeared. |
Thanks for the info. For me Right now using the latest version and fixing the NDK to this version ndkVersion '25.1.8937393' has result in a decent APP Size. |
Running
flutter build appbundle --release
for my app with awesome_dialog 3.0.2 produces an aab of 37MbJust changing awesome_dialog in pubspec.yaml to 3.1.0 and running the build again produces an aab of 76.7Mb
Google Play Console gives the warning "This artifact significantly increases the size of APK(s) downloaded by users. Larger apps see lower install and update success rates and take up device storage on user's devices" and it estimates the size for new installs as 26.7 MB, an increase of 9.97 MB from my previous release (the only difference between releases is the change of awesome_dialog from 3.0.2 to 3.1.0), which is not acceptable to me.
Checking the appbundle in the App bunder explorer in Google Play Console, it seems a new ABI for X86 is added to the bundle. The change to 3.1.0 causes the following dependency changes/updates:
So I suspect it is something to do with
rive_common
. Is anyone else experiencing this, and how can I prevent this behavior? For now, I will stay with awesome_dialog 3.0.2.The text was updated successfully, but these errors were encountered: