-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Appbundle size increase of 90mb with flutter 3.7.0 without any change #119507
Comments
Triage reportI can reproduce this issue. Here's what I found:
I haven't tested it on a large project like OP has but this ~300 KB increase could scale up to a large amount with larger applications.
|
An app bundle size on disk is not representitive of the final sized shipped to an end user application |
@jonahwilliams Are you saying that this is an invalid issue? |
Upon further investigation I find the difference is that up until 3.3.10 files that are in the assets folders but not in the assets list in the pubspec.yaml are not counted within the .aab build. Since 3.7.0 folders that are not in the resource list in pubspec.yaml are still counted and contribute to the final aab build weight Is it a wanted behavior? I found it convenient to manage different configurations (i.e. ios/android) the fact of being able to exclude folders by simply omitting them from the assets list in pubspec.yaml |
assigning to @andrewkolos to investigate and prioritize |
I was unable to reproduce this. Here is what I tried:
Here are the results I got: Flutter 3.3.10: 20.4 MB uncompressed The small (in this context) 0.1 MB difference appears to be mostly if not entirely from the flutter library A minimal, reproducable example of this issue would be appreciated. |
Hi @andrewkolos, Steps to reproduce:
I get ✓ Built build/app/outputs/bundle/release/app-release.aab (33.9MB).
I get ✓ Built build/app/outputs/bundle/release/app-release.aab (33.9MB).
I get ✓ Built build/app/outputs/bundle/release/app-release.aab (33.6MB).
I get ✓ Built build/app/outputs/bundle/release/app-release.aab (23.3MB). As you could see app bundle count subfolders in a different way in the two flutter versions. |
Thank you for this report. Based on your last comment the work around is to not use subfolders but I can see how this is a painful regression. Added to our list of issues to consider when we have availability. |
@enricoi, thank you for the detailed repro steps👍. I was able to repro this time around, and I updated the example project I used to repro. I'll start investigating now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Same app, same files, same configuration. Only change is the upgrade flutter version from 3.3.10 to 3.7.0.
Build with 3.7.0:
✓ Built build/app/outputs/bundle/release/app-release.aab (351.1MB).
Build with 3.3.10
✓ Built build/app/outputs/bundle/release/app-release.aab (260.7MB).
With 3.7.0 is impossible to upload appbundle on play store due to 150mb size limit reached, with 3.3.10 upload complete successfully.
The text was updated successfully, but these errors were encountered: