invertase / flutterfire_cli

A CLI to help with using FlutterFire in your Flutter applications.
Apache License 2.0
170 stars 47 forks source link

[bug]: flutterfire configure asks for window app id even if the platform is not selected #303

Closed Eliathoran closed 4 months ago

Eliathoran commented 4 months ago

Is there an existing issue for this?

CLI Version

1.0.0

Firebase Tools version

13.10.1

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.19.4, on Ubuntu 22.04.4 LTS 6.5.0-1021-azure, locale C.UTF-8) • Flutter version 3.19.4 on channel stable at /opt/hostedtoolcache/flutter/stable-3.19.4-x64 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 68bfaea224 (10 weeks ago), 2024-03-20 15:36:31 -0700 • Engine revision a5c24f538d • Dart version 3.3.2 • DevTools version 2.31.1 [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /usr/local/lib/android/sdk • Platform android-34-ext11, build-tools 34.0.0 • ANDROID_HOME = /usr/local/lib/android/sdk • ANDROID_SDK_ROOT = /usr/local/lib/android/sdk ✗ Android SDK file not found: adb. • Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions. [✓] Chrome - develop for the web • Chrome at google-chrome [✗] Linux toolchain - develop for Linux desktop • Ubuntu clang version 14.0.0-1ubuntu1.1 • cmake version 3.29.3 ✗ ninja is required for Linux development. It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases • pkg-config version 0.29.2 ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev) [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] Connected device (2 available) • Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.4 LTS 6.5.0-1021-azure • Chrome (web) • chrome • web-javascript • Google Chrome 125.0.6422.60 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 3 categories.

Description

Run flutterfire configure --token= --project= --platforms="android,ios,macos,web" --yes --ios-bundle-id= --macos-bundle-id= --web-app-id= --android-package-name=
Selected platforms: android,ios,macos,web FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command. COMMAND: firebase configure ERROR: Please provide value for windows-app-id. Error: Process completed with exit code 1.

Steps to reproduce

Run flutterfire configure --token= --project= --platforms="android,ios,macos,web" --yes --ios-bundle-id= --macos-bundle-id= --web-app-id= --android-package-name=

Expected behavior

config runs as expected.

Screenshots

No response

Additional context and comments

No response

russellwheatley commented 4 months ago

Try the latest FlutterFire CLI dev version, it has been fixed and released in that version:

dart pub global activate flutterfire_cli 1.0.1-dev.1