Skip to content

[bug]: Poblems with flutterfire_cli and --flavor After Flutter 3.24.5 Upgrade #378

Open
@mklarsen

Description

@mklarsen

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

0.2.7 + 1.1.0 and dev builds

Firebase Tools version

3.24.5

Flutter Doctor Output

[!] Flutter (Channel [user-branch], 3.24.5, on macOS 15.3.1 24D70 darwin-arm64, locale da-DK)
! Flutter version 3.24.5 on channel [user-branch] at /Users/martinkl/Library/flutter
Currently on an unknown channel. Run flutter channel to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
! Upstream repository unknown source is not the same as FLUTTER_GIT_URL
• FLUTTER_GIT_URL = https://github.com/flutter/flutter.git
• Framework revision dec2ee5c1f (3 months ago), 2024-11-13 11:13:06 -0800
• Engine revision a18df97ca5
• Dart version 3.5.4
• DevTools version 2.37.3
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/martinkl/Library/android/sdk/
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Build 16B5001e
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.97.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0

[✓] Connected device (3 available)
• MKL iPhone14pro (mobile) • HIDDEN • ios • iOS 18.3.1 22D72
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3.1 24D70 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.127

[✓] Network resources
• All expected network resources are available.

! Doctor found issues in 1 category.

Description

We have been using the flutterfire_cli with the --flavor option for over a year. Initially, the library caused issues (same issues we're encountering today), but we were able to work around this by pinning the version to 0.2.7.

Today, we attempted to upgrade to Flutter 3.24.5, and after the upgrade, we are encountering errors when building for the web platform. However, the APK builds work fine.

This problem has previously been observed in bug reports in many reports where similar issues were reported but not fully resolved.

Steps to reproduce

Use flutterfire_cli with the --flavor option.
Pin the version to 0.2.7 to avoid issues in previous Flutter versions.
Upgrade to Flutter version 3.24.5.
Attempt to build for both APK and web platforms

Expected behavior

APK builds successfully, as before.
Web builds should work without errors, as they did before the upgrade.

Screenshots

Image

Image

Additional context and comments

It look like same issues

#303
#278
firebase/flutterfire#12724
https://stackoverflow.com/questions/71129374/flutterfire-ios-configuration-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionOP created or responded to issue and it needs attention.bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions