[firebase_core]: firebase_core for Windows requires lots of disk space and is too big to be compiled on an Azure Worker

オープン
#16,967 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
azure, dart, firebase, flutter

調査の方向性

Issue にはファイルやテストが記載されていないため、まず firebase_core 3.9.0 を使用する Flutter アプリの Windows ビルドを再現し、Firebase C++ SDK アーカイブがどこにダウンロードされ、展開されるかを調査します。ビルドがターゲット構成に必要なライブラリだけを展開し、利用可能な Azure Worker のディスク容量内で完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Needs Attention platform: windows plugin: core type: enhancement
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.

主要言語
Dart
スター
9.3k
フォーク
4.1k
平均マージ
1日 14時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/flutterfire のほかの issue

firebase/flutterfire の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。