Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Core
Which platforms are affected?
Windows
Description
Our Windows version of the app stopped building after upgrading Firebase depencies, incl. updating firebase_core from 2.17.0 to 3.9.0
When building a Windows version of the app that includes firebase_core in its dependencies, the build folder grows by 8GB+ due to Firebase C SDK being downloaded and extracted with its whole content.
The zip file contains release and debug versions of all available libraries, for both x86 and x64 platforms - definitely more than is needed for compilation.
The size of the extracted libraries results in failed compilation on an Azure Worker as its typical disk space available for the user is around 12GB.
WIth previous version of firebase_core (2.17.0) version 11.4.2 of Firebase CPP SDK was used that resulted in extracting 4.6GB of libraries (still a lot). With CPP SDK 12.0.0, both the zip file and the exctracted folder grew significantly (by 200MB / 2900MB respectively).
Reproducing the issue
Build any Windows version of a Flutter app that depends on firebase_core
Firebase Core version
3.9.0
Flutter Version
3.24.5
Relevant Log Output
Flutter dependencies
Expand Flutter dependencies
snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
I think the build command should be smart enough to extract from the zip file only portions that are relevant to the build of the app (e.g. Debug-x86), not the whole content of it.