flutterfire_cli icon indicating copy to clipboard operation
flutterfire_cli copied to clipboard

[bug]: `--android-app-id` flag does not update value

Open rddewan opened this issue 3 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

CLI Version

0.2.6

Firebase Tools version

11.14.2

Flutter Doctor Output

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.4, on macOS 12.6 21G115 darwin-arm, locale en-TH) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.72.2) [✓] Connected device (2 available) [✓] HTTP Host Availability

• No issues found!

Description

command not found: --android-package-name=dev.rdewan.ecomApp.development

flutterfire config
--project=flutter-ecomapp-dev-c7f8b
--out=lib/core/firebase/firebase_options_dev.dart
--ios-bundle-id=dev.rdewan.ecomApp.development \
--android-package-name=dev.rdewan.ecomApp.development

Steps to reproduce

change to --android-app-id but it does not wrok

Expected behavior

should create a correct add with android id

Screenshots

No response

Additional context and comments

No response

rddewan avatar Oct 16 '22 05:10 rddewan

Hello @rddewan, I just tried locally, can you try properly with

flutterfire configure --android-package-name=com.your.name

To check?

Lyokone avatar Oct 18 '22 18:10 Lyokone

@Lyokone it does not work , it use the default android package name , but since i have a flavor setup it will have a suffix based on flavor

#0      FirebaseConfigurationFile.write (package:flutterfire_cli/src/firebase/firebase_configuration_file.dart:75:11)
<asynchronous suspension>
zsh: command not found: --android-package-name=dev.rdewan.ecomApp.qa

rddewan avatar Oct 22 '22 13:10 rddewan

You are missing some backslashes in your command. Try this instead:

flutterfire config \
--project=flutter-ecomapp-dev-c7f8b \
--out=lib/core/firebase/firebase_options_dev.dart \
--ios-bundle-id=dev.rdewan.ecomApp.development \
--android-package-name=dev.rdewan.ecomApp.development

NoizyCr1cket avatar May 26 '23 01:05 NoizyCr1cket

I was not able to reproduce, and as @NoizyCr1cket pointed out, you are missing backslashes.

russellwheatley avatar Oct 19 '23 11:10 russellwheatley