A CLI to help with using FlutterFire in your Flutter applications.

Overview

FlutterFire CLI

Melos

DocumentationLicense

A CLI to help with using FlutterFire in your Flutter applications.

Local development setup

To setup and use this CLI repo locally for the purposes of contributing, clone it and run the following commands from the root of the repository:

# Remove previous instances of the cli:
dart pub global deactivate flutterfire_cli

# Activate CLI from path:
dart pub global activate --source="path" . --executable="flutterfire"

# Confirm you now using a local development version:
flutterfire --help
# You should now see a banner printed at the top of the help output similar to:
# ------------------------------------------------------------------
# | You are running a local development version of FlutterFire CLI. |
# ------------------------------------------------------------------

Install

dart pub global activate flutterfire_cli

Built and maintained by Invertase.

Comments
  • ci: Use GitHub actions

    ci: Use GitHub actions

    Description

    This makes use of GitHub actions for the pipeline instead of separate scripts for each platform.

    Type of Change

    • [x] ✅ ci -- Build configuration change
    opened by spydon 9
  • FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.

    FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.

    When I try to flutterfire configure I got this error on a windows machine. I'm able to run/debug and build my app. I've create another empty project and it worked as expected. But for my current setup it is not working.

    FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.
    

    flutter doctor -v

    [√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version
        10.0.19043.1620], locale tr-TR)
        • Flutter version 2.10.3 at C:\flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 7e9793dee1 (6 weeks ago), 2022-03-02 11:23:12 -0600
        • Engine revision bd539267b4
        • Dart version 2.16.1
        • DevTools version 2.9.2
    
    [√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
        • Android SDK at C:\Users\sezer\AppData\Local\Android\Sdk
        • Platform android-32, build-tools 33.0.0-rc1
        • ANDROID_HOME = C:\Users\sezer\AppData\Local\Android\Sdk
        • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
        • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
        • All Android licenses accepted.
    
    [√] Chrome - develop for the web
        • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
    
    [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.1)
        • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
        • Visual Studio Community 2019 version 16.8.30711.63
        • Windows 10 SDK version 10.0.19041.0
    
    [√] Android Studio (version 2021.1)
        • Android Studio at C:\Program Files\Android\Android Studio
        • 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.11+9-b60-7590822)
    
    [√] VS Code (version 1.66.1)
        • VS Code at C:\Users\sezer\AppData\Local\Programs\Microsoft VS Code
    
    [√] Connected device (4 available)
        • ONEPLUS A3010 (mobile) • 127.0.0.1:60380 • android-x64    • Android 7.1.1 (API 25)
        • Windows (desktop)      • windows         • windows-x64    • Microsoft Windows [Version 10.0.19043.1620]
        • Chrome (web)           • chrome          • web-javascript • Google Chrome 100.0.4896.75
        • Edge (web)             • edge            • web-javascript • Microsoft Edge 99.0.1150.39
    
    [√] HTTP Host Availability
        • All required HTTP hosts are available
    

    pubspec.yaml

    name: sezer
    description: sezer mobile app
    publish_to: "none"
    version: 1.0.0+4
    
    environment:
      sdk: ">=2.16.1 <3.0.0"
    
    dependencies:
      flutter:
        sdk: flutter
      firebase_core: ^1.14.0
      local_auth: ^1.1.11
      flutter_secure_storage: ^5.0.2
      cupertino_icons: ^1.0.2
      platform_device_id: ^1.0.1
      device_info_plus: ^3.2.2
      location: ^4.3.0
      url_launcher: ^6.0.20
      flutter_riverpod: ^1.0.3
      mobile_scanner: ^0.2.0
      font_awesome_flutter: ^10.1.0
      freezed_annotation: ^1.1.0
      dio: ^4.0.4
      lottie: ^1.2.2
      carousel_slider: ^4.0.0
      html: ^0.15.0
      flutter_native_splash: ^2.1.1
      video_player: ^2.3.0
      flutter_screenutil: ^5.3.1
      secure_application: ^3.8.0
      plaid_flutter: ^2.2.1
      badges: ^2.0.2
    
    dev_dependencies:
      flutter_test:
        sdk: flutter
      flutter_lints: ^1.0.0
      build_runner: ^2.1.8
      freezed: ^1.1.1
      json_serializable: ^6.1.5
    
    flutter:
      uses-material-design: true
      assets:
        - assets/images/
        - assets/animations/
        - assets/fonts/
      fonts:
        - family: Gentona Book
          fonts:
            - asset: assets/fonts/Gentona-Book.otf
            - asset: assets/fonts/Gentona-Book-Bold.otf
              weight: 700
            - asset: assets/fonts/Gentona-Book-Italic.otf
              style: italic
      plugin:
        platforms:
          ios:
            pluginClass: AppDelegate
    
    

    flutterfire -v 0.1.3

    opened by sezer 9
  • FormatException: Unexpected character when calling flutterfire configure

    FormatException: Unexpected character when calling flutterfire configure

    After calling flutterfire configure commend, I'm always getting error

    ⠸ Fetching available Firebase projects...
    Unhandled exception:
    FormatException: Unexpected character (at character 1)
    {
    ^
    
    #0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1405:5)
    #1      _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1272:9)
    #2      _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:937:22)
    #3      _parseJson (dart:convert-patch/convert_patch.dart:40:10)
    #4      JsonDecoder.convert (dart:convert/json.dart:506:36)
    #5      runFirebaseCommand (package:flutterfire_cli/src/firebase.dart:95:25)
    <asynchronous suspension>
    #6      getProjects (package:flutterfire_cli/src/firebase.dart:114:7)
    <asynchronous suspension>
    #7      ConfigCommand._selectFirebaseProject (package:flutterfire_cli/src/commands/config.dart:159:24)
    <asynchronous suspension>
    #8      ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:227:37)
    <asynchronous suspension>
    #9      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    <asynchronous suspension>
    #10     main (file:///Users/xxxx/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.1.1+2/bin/flutterfire.dart:34:5)
    <asynchronous suspension>
    

    I'm using Flutter version 2.8.1

    Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision 77d935af4d (13 days ago) • 2021-12-16 08:37:33 -0800
    Engine • revision 890a5fca2e
    Tools • Dart 2.15.1
    
    opened by prabel 9
  • [windows] FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.

    [windows] FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.

    I am having issues running the tool on Windows. Same error with powershell, cmd and mingw. Firebase CLI is installed and configured for the project.

     flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 2.8.0, on Microsoft Windows [Version 10.0.19043.1237], locale en-US)
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision cf44000065 (14 hours ago), 2021-12-08 14:06:50 -0800
        • Engine revision 40a99c5951
        • Dart version 2.15.0
    [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    [√] Chrome - develop for the web
    [√] Android Studio (version 2020.3)
    [√] VS Code, 64-bit edition (version 1.31.1)
    [√] Connected device (2 available)
    
    Building package executables...
    Built flutterfire_cli:flutterfire.
    Installed executable flutterfire.
    Activated flutterfire_cli 0.1.1+1.
    PS .\flutter-app> flutterfire configure
    FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.
    
    opened by ezet 9
  • Error on IOS when configure using client

    Error on IOS when configure using client

    Hello, after configured a new empty project using the command "flutterfire configure". And ran the app I get this error:

    `Running Xcode build...
     └─Compiling, linking and signing...                         8,3s
    Xcode build done.                                           18,3s
    (lldb) 2021-12-22 20:46:57.821486-0300 Runner[8894:2915059] Warning: Unable to create restoration in progress marker file
    Configuring the default Firebase app...
    8.9.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
    8.9.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8.
    8.9.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8.
    8.9.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
    *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`FirebaseApp.configure()` could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
    *** First throw call stack:
    (0x1822b204c 0x19a926f54 0x182309180 0x104b3593c 0x103622670 0x103622568 0x102b9e518 0x102b9eb9c 0x102b9ee48 0x1849e8044 0x184bcfb38 0x184bb84a4 0x184a15e44 0x18486e62c 0x184999b7c 0x184aba380 0x184cfaf8c 0x184c86710 0x18486f430 0x18492f350 0x184871340 0x18495bdf4 0x184de3260 0x18489fc60 0x1848e3524 0x184a1ad70 0x18495a0b4 0x193da9e20 0x193dcfcdc 0x193d8a6b4 0x193d8bcf4 0x181f24660 0x181f28118 0x193d8bf94 0x193d8b3d4 0x193d8f9e4 0x1822d4020 0x1822e4ce0 0x18221efe8 0x1822247f4 0x1822383b8 0x19dbc838c 0x184bd86a8 0x1849577f4 0x102b9efbc 0x104bada24)
    libc++abi: terminating with uncaught exception of type NSException
    * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
        frame #0: 0x00000001b85f4964 libsystem_kernel.dylib`__pthread_kill + 8
    libsystem_kernel.dylib`__pthread_kill:
    ->  0x1b85f4964 <+8>:  b.lo   0x1b85f4984               ; <+40>
        0x1b85f4968 <+12>: pacibsp
        0x1b85f496c <+16>: stp    x29, x30, [sp, #-0x10]!
        0x1b85f4970 <+20>: mov    x29, sp
    Target 0: (Runner) stopped.
    Installing and launching...`
    

    My "main.dart" file:

    import 'package:firebase_core/firebase_core.dart';
    import 'package:flutter/material.dart';
    import 'package:prueba/firebase_options.dart';
    
    void main() async {
      WidgetsFlutterBinding.ensureInitialized();
      FirebaseApp app = await Firebase.initializeApp(
        options: DefaultFirebaseOptions.currentPlatform,
      );
      print('Initialized default app $app');
      runApp(const MyApp());
    }
    

    And the "firebase_obtions.dart" file exist at the same level of my "main.dart" file.

    In the documentation don't mention I have to add 'GoogleService-Info.plist' file manually.

    opened by Rart3001 8
  • docs: Added CONTRIBUTING.md

    docs: Added CONTRIBUTING.md

    Description

    Added CONTRIBUTING.md file in the project. Fixes #111

    Type of Change

    • [ ] ✨ feat -- New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ ! -- Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 refactor -- Code refactor
    • [ ] ✅ ci -- Build configuration change
    • [x] 📝 docs -- Documentation
    • [ ] 🗑️ chore -- Chore
    hacktoberfest 
    opened by bhattabhi013 7
  • feat: Try to Support flavors (android & ios)

    feat: Try to Support flavors (android & ios)

    Description

    Firebase CLI will try to get all flavors for the android project and variant build configrations for the ios project and show a prompt to the ser

    ? Do you want to create a firebase project for each flavor? (y/n)

    if the user selects "y" for each flavor firebase CLI will create a firebase project with selected platforms

    • create firebase_options.dart for each flavor For example: (lib/firebase_options_development.dart, lib/firebase_options_production.dart, lib/firebase_options_staging.dart)

    • create firebase_app_id_file.json for each flavor For example: (ios/firebase_app_id_file_development.json, ios/firebase_app_id_file_production.json, ios/firebase_app_id_file_staging.json)

    • create google-services.json for each flavor For example: (android/app/src/development/google-services.json, android/app/src/production/google-services.json, android/app/src/staging/google-services.json)

    • create GoogleService-Info.plist for each flavor For example: (ios/Runner/development/GoogleService-Info.plist, ios/Runner/production/GoogleService-Info.plist, ios/Runner/staging/GoogleService-Info.plist)

    For ios Project add shell script to copy the correct GoogleService-Info.plist to the BUILT_PRODUCTS_DIR based on the selected ios schema:

    GOOGLE_SERVICE_INFO_PLIST_FROM="${PROJECT_DIR}/Runner/${FLAVOR}/GoogleService-Info.plist"
    BUILD_APP_DIR="${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}"
    GOOGLE_SERVICE_INFO_PLIST_TO="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app"
    cp "${GOOGLE_SERVICE_INFO_PLIST_FROM}" "${GOOGLE_SERVICE_INFO_PLIST_TO}"
    

    Please try it 🙏🚀

    Type of Change

    • [x] ✨ feat -- New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ ! -- Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 refactor -- Code refactor
    • [ ] ✅ ci -- Build configuration change
    • [ ] 📝 docs -- Documentation
    • [ ] 🗑️ chore -- Chore
    opened by salahamassi 7
  • [bug]: _selectFirebaseProject failed with Valid value range is empty: 0

    [bug]: _selectFirebaseProject failed with Valid value range is empty: 0

    Is there an existing issue for this?

    • [X] I have searched the existing issues.

    CLI Version

    0.2.4

    Firebase Tools version

    11.2.2

    Flutter Doctor Output

    2022-07-16T04:46:58.7453516Z Doctor summary (to see all details, run flutter doctor -v):
    2022-07-16T04:46:58.9449235Z [✓] Flutter (Channel stable, 3.0.4, on Ubuntu 20.04.4 LTS 5.13.0-1031-azure, locale C.UTF-8)
    2022-07-16T04:47:06.7762365Z [!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    2022-07-16T04:47:06.7767234Z     ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    2022-07-16T04:47:06.7769712Z [✓] Chrome - develop for the web
    2022-07-16T04:47:06.7771139Z [✗] Linux toolchain - develop for Linux desktop
    2022-07-16T04:47:06.7777126Z     ✗ ninja is required for Linux development.
    2022-07-16T04:47:06.7778024Z       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
    2022-07-16T04:47:06.7778856Z     ✗ GTK 3.0 development libraries are required for Linux development.
    2022-07-16T04:47:06.7779439Z       They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
    2022-07-16T04:47:06.7780643Z [!] Android Studio (not installed)
    2022-07-16T04:47:06.7781874Z [✓] Connected device (2 available)
    2022-07-16T04:47:06.7782979Z [✓] HTTP Host Availability
    2022-07-16T04:47:06.7783403Z 
    2022-07-16T04:47:06.7784280Z ! Doctor found issues in 3 categories.
    

    Description

    2022-07-16T04:48:12.8475881Z melos run fire:cli
    2022-07-16T04:48:12.8478573Z   └> npm install firebase-tools --location=global && \firebase --version && \dart pub global activate flutterfire_cli && \flutterfire --version
    2022-07-16T04:48:12.8483105Z      └> SUCCESS
    
    2022-07-16T04:48:12.8776281Z ##[group]Run flutterfire config --verbose --project=***********-dev --out=lib/config/firebase.dart --ios-bundle-id=***.****.****.dev --macos-bundle-id=***.****.****.dev --android-app-id=***.****.****.dev --platforms=android,ios,macos,web --yes
    2022-07-16T04:48:12.8777264Z flutterfire config --verbose --project=***********-dev --out=lib/config/firebase.dart --ios-bundle-id=***.****.****.dev --macos-bundle-id=***.****.****.dev --android-app-id=***.****.****.dev --platforms=android,ios,macos,web --yes
    2022-07-16T04:48:12.8831872Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
    2022-07-16T04:48:12.8832144Z env:
    2022-07-16T04:48:12.8832396Z   FLUTTER_ROOT: /opt/hostedtoolcache/flutter
    2022-07-16T04:48:12.8832710Z   PUB_CACHE: /opt/hostedtoolcache/flutter/.pub-cache
    2022-07-16T04:48:12.8833433Z   FIREBASE_TOKEN: ***
    2022-07-16T04:48:12.8833650Z ##[endgroup]
    2022-07-16T04:48:13.1491773Z Unhandled exception:
    2022-07-16T04:48:13.1500645Z RangeError (index): Invalid value: Valid value range is empty: 0
    2022-07-16T04:48:13.1501391Z #0      _StringBase.[] (dart:core-patch/string_patch.dart:260:41)
    2022-07-16T04:48:13.1501888Z #1      Console.cursorPosition (package:dart_console/src/console.dart:324:15)
    2022-07-16T04:48:13.1502400Z #2      Console.windowWidth (package:dart_console/src/console.dart:215:32)
    2022-07-16T04:48:13.1502868Z #3      Console.writeLine (package:dart_console/src/console.dart:454:23)
    2022-07-16T04:48:13.1503332Z #4      Context.writeln (package:interact/src/framework/context.dart:63:14)
    2022-07-16T04:48:13.1503813Z #5      _SpinnerState.render (package:interact/src/spinner.dart:107:13)
    2022-07-16T04:48:13.1504311Z #6      Component.interact (package:interact/src/framework/component.dart:48:11)
    2022-07-16T04:48:13.1504784Z #7      spinner (package:flutterfire_cli/src/common/utils.dart:160:5)
    2022-07-16T04:48:13.1505336Z #8      ConfigCommand._selectFirebaseProject (package:flutterfire_cli/src/commands/config.dart:265:37)
    2022-07-16T04:48:13.1505878Z #9      ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:368:43)
    2022-07-16T04:48:13.1506366Z #10     CommandRunner.runCommand (package:args/command_runner.dart:209:27)
    2022-07-16T04:48:13.1506887Z #11     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:119:25)
    2022-07-16T04:48:13.1507317Z #12     new Future.sync (dart:async/future.dart:301:31)
    2022-07-16T04:48:13.1507731Z #13     CommandRunner.run (package:args/command_runner.dart:119:14)
    2022-07-16T04:48:13.1508486Z #14     main (file:///opt/hostedtoolcache/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:57:48)
    

    Steps to reproduce

    1. Set FIREBASE_TOKEN environment variable on CI machine
    2. Install firebase tools and flutterfire_cli
    3. run the following command
    flutterfire config --verbose --project=***********-dev --out=lib/config/firebase.dart --ios-bundle-id=***.****.****.dev --macos-bundle-id=***.****.****.dev --android-app-id=***.****.****.dev --platforms=android,ios,macos,web --yes
    

    Expected behavior

    Normally I would expect the following

    2022-07-15T16:04:01.0082911Z [?25l⠋ Fetching available Firebase projects...
    2022-07-15T16:04:04.4314116Z i Found 3 Firebase projects. Selecting project ******-dev.
    2022-07-15T16:04:04.4355239Z [?25hi Selected platforms: android,ios,macos,web
    2022-07-15T16:04:04.4360690Z Warning - android-app-id (-a) is deprecated. Consider using android-package-name (-p) instead.
    2022-07-15T16:04:04.4387477Z [?25l⠋ Fetching registered android Firebase apps for project ******-dev
    2022-07-15T16:04:06.2317450Z i Firebase android app ***.******.***.dev registered.
    2022-07-15T16:04:08.5409345Z [?25h[?25l⠋ Fetching registered ios Firebase apps for project ******-dev
    2022-07-15T16:04:08.6221743Z ⠙ Fetching registered ios Firebase apps for project ******-dev
    2022-07-15T16:04:10.3256623Z i Firebase ios app ***.******.***.dev registered.
    2022-07-15T16:04:12.5518488Z [?25h[?25l⠋ Fetching registered macos Firebase apps for project ******-dev
    2022-07-15T16:04:14.1523603Z ⠋ Fetching registered macos Firebase apps for project ******-dev
    2022-07-15T16:04:14.1692232Z i Firebase macos app ***.******.***.dev registered.
    2022-07-15T16:04:17.8653748Z ⠋ Fetching registered web Firebase apps for project ******-dev
    2022-07-15T16:04:17.9033981Z i Firebase web app method (web) registered.
    2022-07-15T16:04:20.0053433Z [?25h
    2022-07-15T16:04:20.0057158Z Firebase configuration file lib/config/firebase.dart generated successfully with the following Firebase apps:
    2022-07-15T16:04:20.0057687Z 
    2022-07-15T16:04:20.0092908Z Platform  Firebase App Id
    2022-07-15T16:04:20.0093544Z web       1:***********:web:**********************
    2022-07-15T16:04:20.0094144Z android   1:***********:android:**********************
    2022-07-15T16:04:20.0150042Z ios       1:***********:ios:**********************
    2022-07-15T16:04:20.0150509Z macos     1:***********:ios:**********************
    2022-07-15T16:04:20.0150699Z 
    2022-07-15T16:04:20.0151135Z Learn more about using this file and next steps from the documentation:
    2022-07-15T16:04:20.0151627Z  > https://firebase.google.com/docs/flutter/setup
    2022-07-15T16:04:21.0522547Z 
    2022-07-15T16:04:21.0523242Z melos run fire:dev
    2022-07-15T16:04:21.0525398Z   └> melos run fire:cli && \flutterfire config \  --project=******-dev \  --out=lib/config/firebase.dart \  --ios-bundle-id=***.******.***.dev \  --macos-bundle-id=***.******.***.dev \  --android-app-id=***.******.***.dev \  --platforms=android,ios,macos,web,linux,windows \  --yes
    2022-07-15T16:04:21.0526536Z      └> SUCCESS
    2022-07-15T16:04:21.0788530Z 
    

    Screenshots

    No response

    Additional context and comments

    This was working 2-3 days ago. I'm not sure if it has to do with the recent updates with( firebase-tools, flutterfire_cli, Melos ) or recent firebase disruptions

    bug triage 
    opened by thipokch 7
  • request:  Add 'contributing.md'.

    request: Add 'contributing.md'.

    Is there an existing feature request for this?

    • [X] I have searched the existing issues.

    Command

    NA

    Description

    I expect this repository to have a contributing.md that includes guidelines and how to get started.

    Reasoning

    It'll help to increase the contribution to this project.

    Additional context and comments

    No response

    enhancement triage hacktoberfest 
    opened by bhattabhi013 6
  • DefaultFirebaseOptions is missing some properties.

    DefaultFirebaseOptions is missing some properties.

    After updating with the new installation flow some resources are not retrieved properly.

    The following is an error thrown from the Firebase Auth emulator when signing in with Google.

    The Auth Emulator only support sign-in with google.com using id_token, not access_token.

    The id_token retrieved is null.

    It turns out the Firebase configuration is missing some OAuth client ids, besides, I realized the ios configuration in the DefaultFirebaseOptions contains androidClientId, whereas the android one doesn't.

    Switching back to use the default google-services.json manual installation works, so it's not a blocker.

    I mainly got this error from the emulator, didn't try with a real instance.

    opened by FranRiadigos 6
  • Configuration incompatibility between flutterfire_cli and crashlytics

    Configuration incompatibility between flutterfire_cli and crashlytics

    You can see the original report issue here.

    Bug report

    Describe the bug I initialize FLutterFire in my project with flutterfire cli. After this I can't configure crashlytics correctly.

    Steps to reproduce

    Steps to reproduce the behavior:

    1. Go to my root project directory
    2. Install cli: dart pub global activate flutterfire_cli
    3. Configure flutterfire flutterfire configure
    4. Add crashlytics from documentation https://firebase.flutter.dev/docs/crashlytics/overview
    5. Run application on simulator -> ok
    6. Try to build app on android: flutter build apk
    7. Get this error: `Execution failed for task ':app:processReleaseGoogleServices'.

    File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: [myproject]/android/app/src/release/google-services.json [myproject]/android/app/src/google-services.json [myproject]/android/app/src/Release/google-services.json [myproject]/android/app/google-services.json`

    1. Remove this line to build.gradle apply plugin: 'com.google.gms.google-services'
    2. Get this error: `A problem was found with the configuration of task ':app:uploadCrashlyticsMappingFileRelease' (type 'UploadMappingFileTask').

    No value has been specified for property 'googleServicesResourceRoot'.`

    1. Remove this line to build.gradle apply plugin: 'com.google.firebase.crashlytics'
    2. flutter build apk works but crashlytics not working with error The Crashlytics build ID is missing ...

    Expected behavior

    I want to add flutter fire to my project with flutterfire cli and crashlytics works and flutter build apk works.

    Flutter doctor

    Run flutter doctor and paste the output below:

    Click To Expand
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, 2.7.0-3.1.pre, on macOS 12.0.1 21A559 darwin-x64, locale fr-CH)
    [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    [✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 3.5)
    [✓] IntelliJ IDEA Ultimate Edition (version 2017.2.7)
    [✓] IntelliJ IDEA Community Edition (version 2021.2.3)
    [✓] VS Code (version 1.62.3)
    [✓] Connected device (3 available)
    
    • No issues found!
    

    Flutter dependencies

    Run flutter pub deps -- --style=compact and paste the output below:

    Click To Expand
    Dart SDK 2.15.0-178.1.beta
    Flutter SDK 2.7.0-3.1.pre
    client_app_sso 1.0.0+1
    
    dependencies:
    - cupertino_icons 1.0.4
    - firebase_analytics 9.0.2 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
    - firebase_core 1.10.5 [firebase_core_platform_interface firebase_core_web flutter meta]
    - firebase_crashlytics 2.4.3 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
    - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
    - flutter_dotenv 5.0.2 [flutter]
    - flutter_secure_storage 4.2.1 [meta flutter]
    - flutter_sso 0.0.1 [flutter flutter_appauth flutter_secure_storage json_annotation http path path_provider flutter_dotenv url_launcher firebase_crashlytics firebase_analytics]
    - url_launcher 6.0.17 [flutter meta url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
    
    dev dependencies:
    - build_runner 2.1.5 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
    - flutter_lints 1.0.4 [lints]
    - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
    - json_serializable 6.1.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]
    
    transitive dependencies:
    - _fe_analyzer_shared 31.0.0 [meta]
    - analyzer 2.8.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
    - args 2.3.0
    - async 2.8.2 [collection meta]
    - boolean_selector 2.1.0 [source_span string_scanner]
    - build 2.1.1 [analyzer async convert crypto glob logging meta path]
    - build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml]
    - build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
    - build_resolvers 2.0.5 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
    - build_runner_core 7.2.2 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
    - built_collection 5.1.1
    - built_value 8.1.3 [built_collection collection fixnum meta]
    - characters 1.2.0
    - charcode 1.3.1
    - checked_yaml 2.0.1 [json_annotation source_span yaml]
    - cli_util 0.3.5 [meta path]
    - clock 1.1.0
    - code_builder 4.1.0 [built_collection built_value collection matcher meta]
    - collection 1.15.0
    - convert 3.0.1 [typed_data]
    - crypto 3.0.1 [collection typed_data]
    - dart_style 2.2.0 [analyzer args path pub_semver source_span]
    - fake_async 1.2.0 [clock collection]
    - ffi 1.1.2
    - file 6.1.2 [meta path]
    - firebase_analytics_platform_interface 3.0.2 [firebase_core flutter meta plugin_platform_interface]
    - firebase_analytics_web 0.4.0+2 [firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
    - firebase_core_platform_interface 4.2.2 [collection flutter meta plugin_platform_interface]
    - firebase_core_web 1.5.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
    - firebase_crashlytics_platform_interface 3.1.10 [collection firebase_core flutter meta plugin_platform_interface]
    - fixnum 1.0.0
    - flutter_appauth 2.1.0+1 [flutter flutter_appauth_platform_interface]
    - flutter_appauth_platform_interface 4.0.0 [flutter plugin_platform_interface]
    - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
    - frontend_server_client 2.1.2 [async path]
    - glob 2.0.2 [async collection file path string_scanner]
    - graphs 2.1.0 [collection]
    - http 0.13.4 [async http_parser meta path]
    - http_multi_server 3.0.1 [async]
    - http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
    - io 1.0.3 [meta path string_scanner]
    - js 0.6.3
    - json_annotation 4.4.0 [meta]
    - lints 1.0.1
    - logging 1.0.2
    - matcher 0.12.11 [stack_trace]
    - meta 1.7.0
    - mime 1.0.1
    - package_config 2.0.2 [path]
    - path 1.8.0
    - path_provider 2.0.7 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
    - path_provider_android 2.0.9 [flutter path_provider_platform_interface]
    - path_provider_ios 2.0.7 [flutter path_provider_platform_interface]
    - path_provider_linux 2.1.2 [flutter path path_provider_platform_interface xdg_directories]
    - path_provider_macos 2.0.4 [flutter meta path_provider_platform_interface]
    - path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
    - path_provider_windows 2.0.4 [ffi flutter meta path path_provider_platform_interface win32]
    - platform 3.1.0
    - plugin_platform_interface 2.0.2 [meta]
    - pool 1.5.0 [async stack_trace]
    - process 4.2.4 [file path platform]
    - pub_semver 2.1.0 [collection meta]
    - pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
    - shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
    - shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
    - sky_engine 0.0.99
    - source_gen 1.2.0 [analyzer async build dart_style glob meta path source_span yaml]
    - source_helper 1.3.0 [analyzer collection source_gen]
    - source_span 1.8.1 [collection path term_glyph]
    - stack_trace 1.10.0 [path]
    - stream_channel 2.1.0 [async]
    - stream_transform 2.0.0
    - string_scanner 1.1.0 [charcode source_span]
    - term_glyph 1.2.0
    - test_api 0.4.3 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
    - timing 1.0.0 [json_annotation]
    - typed_data 1.3.0 [collection]
    - url_launcher_android 6.0.13 [flutter meta url_launcher_platform_interface]
    - url_launcher_ios 6.0.13 [flutter meta url_launcher_platform_interface]
    - url_launcher_linux 2.0.2 [flutter]
    - url_launcher_macos 2.0.2 [flutter]
    - url_launcher_platform_interface 2.0.4 [flutter plugin_platform_interface]
    - url_launcher_web 2.0.5 [flutter flutter_web_plugins meta url_launcher_platform_interface]
    - url_launcher_windows 2.0.2 [flutter]
    - vector_math 2.1.1
    - watcher 1.0.1 [async path]
    - web_socket_channel 2.1.0 [async crypto stream_channel]
    - win32 2.3.1 [ffi]
    - xdg_directories 0.2.0 [meta path process]
    - yaml 3.1.0 [collection source_span string_scanner]
    

    opened by Xaviou1003 6
  • feat(cli): command line arguments for different environments

    feat(cli): command line arguments for different environments

    Description

    Created command line arguments which negate the need to use the command prompts. The following command line arguments have been added:

    1. ios-scheme - pass in the name of the scheme you wish to use for your iOS project.
    2. macos-scheme - pass in the name of the scheme you wish to use for your macOS project.
    3. ios-target- - pass in the name of the target you wish to use for your iOS project.
    4. macos-target- - pass in the name of the target you wish to use for your macOS project.
    5. debug-symbols-ios - This is a command line flag. It will add an upload debug symbols script to your iOS target or scheme (depending on whether you used ios-scheme or ios-target). This replaces debug-symbols-script which was a hidden flag in the last dev release. If you choose to negate the script (i.e. no-debug-symbol-ios), you will not be prompted asking if you wish to write it.
    6. debug-symbols-macos - This is a command line flag. It will add an upload debug symbols script to your macOS target or scheme (depending on whether you used macos-scheme or macos-target). If you choose to negate the script (i.e. no-debug-symbol-macos), you will not be prompted asking if you wish to write it.
    7. overwrite-firebase-options - This is a command line flag. This allows you to overwrite/not overwrite the current firebase_options.dart if you're running flutterfire configure again. If you choose to negate it (i.e. no-overwrite-firebase-options), you will not be prompted asking if you wish to write it.

    Notes

    1. You can only set either ios-scheme OR ios-target. If you try to set both, the script will throw an error.
    2. You can only set either macos-scheme OR macos-target. If you try to set both, the script will throw an error.

    Related issues

    Part of: https://github.com/invertase/flutterfire_cli/issues/14

    Type of Change

    • [ ] ✨ feat -- New feature (non-breaking change which adds functionality)
    • [ ] 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ ! -- Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 refactor -- Code refactor
    • [ ] ✅ ci -- Build configuration change
    • [ ] 📝 docs -- Documentation
    • [ ] 🗑️ chore -- Chore
    opened by russellwheatley 0
  • Flutter firebase issue

    Flutter firebase issue

    Is there an existing issue for this?

    • [X] I have searched the existing issues.

    CLI Version

    0.2.7

    Firebase Tools version

    11.16.1

    Flutter Doctor Output

    [✓] Flutter (Channel stable, 3.3.9, on macOS 12.4 21F79 darwin-x64, locale en-GB) • Flutter version 3.3.9 on channel stable at /Users/abubakarshafiu/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b8f7f1f986 (2 weeks ago), 2022-11-23 06:43:51 +0900 • Engine revision 8f2221fbef • Dart version 2.18.5 • DevTools version 2.15.0

    [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at /Users/abubakarshafiu/Library/Android/sdk • Platform android-32, build-tools 32.1.0-rc1 • 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 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 13F100 ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

    [✓] 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.67.0) • VS Code at /Users/abubakarshafiu/Downloads/Visual Studio Code.app/Contents • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

    [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 12.4 21F79 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.94

    [✓] HTTP Host Availability • All required HTTP hosts are available

    ! Doctor found issues in 1 category.

    Description

    i have been trying to register my flutter firebase app in android studio console but i have been encountering this issue i Found 5 Firebase projects. ✔ Select a Firebase project to configure your Flutter application with · homeapp-f02b4 (HomeApp) ✔ Which platforms should your configuration support (use arrow keys & space to select)? · android, ios, macos i Firebase android app com.example.home_app registered. i Firebase ios app com.example.homeApp registered. ? Which macos bundle id do you want to use for this configuration, e.g. 'com.example.app'? ›

    Steps to reproduce

    flutterfire configure i Found 5 Firebase projects. ✔ Select a Firebase project to configure your Flutter application with · homeapp-f02b4 (HomeApp) ✔ Which platforms should your configuration support (use arrow keys & space to select)? · android, ios, macos i Firebase android app com.example.home_app registered. i Firebase ios app com.example.homeApp registered. ? Which macos bundle id do you want to use for this configuration, e.g. 'com.example.app'? ›

    Expected behavior

    the cli should produce successful project

    Screenshots

    No response

    Additional context and comments

    No response

    bug triage 
    opened by sadeeqshafiu 0
  • [bug]:  exception when running configure while having large number of projects

    [bug]: exception when running configure while having large number of projects

    Is there an existing issue for this?

    • [X] I have searched the existing issues.

    CLI Version

    0.2.7

    Firebase Tools version

    11.16.1

    Flutter Doctor Output

    [✓] Flutter (Channel stable, 3.3.8, on macOS 12.1 21C52 darwin-x64, locale en-US) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) ✗ cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.73.1) [✓] Connected device (3 available) [✓] HTTP Host Availability

    Description

    When I'm running flutterfire configure --project=<project id> I'm getting an error message:

    ⠼ Fetching available Firebase projects...
    Unhandled exception:
    FormatException: Unterminated string (at line 2045, character 8)
          "
           ^
    
    #0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383:5)
    #1      _ChunkedJsonParser.close (dart:convert-patch/convert_patch.dart:494:9)
    #2      _parseJson (dart:convert-patch/convert_patch.dart:36:10)
    #3      JsonDecoder.convert (dart:convert/json.dart:612:36)
    #4      runFirebaseCommand (package:flutterfire_cli/src/firebase.dart:95:25)
    <asynchronous suspension>
    #5      getProjects (package:flutterfire_cli/src/firebase.dart:114:20)
    <asynchronous suspension>
    #6      ConfigCommand._selectFirebaseProject (package:flutterfire_cli/src/commands/config.dart:300:24)
    <asynchronous suspension>
    #7      ConfigCommand.run (package:flutterfire_cli/src/commands/config.dart:390:37)
    <asynchronous suspension>
    #8      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    <asynchronous suspension>
    #9      main (file:///Users/segevs/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.7/bin/flutterfire.dart:57:5)
    <asynchronous suspension>
    

    I tracked it down to an issue with the text being truncated before JSON deserializes it, hence the issue consistency in line 2045.

    Seems like one easy fix would be not to run firebase projects:list when the project id is already provided

    Steps to reproduce

    1. run flutterfire configure --project=.... - happens when you have a large number of projects.

    Expected behavior

    1. it should complete the flutter init.
    2. it shouldn't fetch list of projects if it doesn't need it (when project id is provided)
    3. it should handle large workspace with many projects.

    Screenshots

    No response

    Additional context and comments

    No response

    bug triage 
    opened by segevsh 0
  • [bug]:  Option ios-bundle-id is mandatory.

    [bug]: Option ios-bundle-id is mandatory.

    Is there an existing issue for this?

    • [X] I have searched the existing issues.

    CLI Version

    latest version

    Firebase Tools version

    11.16.1

    Flutter Doctor Output

    [✓] Flutter (Channel stable, 3.3.8, on macOS 13.0.1 22A400 darwin-x64, locale en-ID) • Flutter version 3.3.8 on channel stable at /Users/ridwanfauzan/Documents/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 52b3dc25f6 (13 days ago), 2022-11-09 12:09:26 +0800 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0

    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/ridwanfauzan/Library/Android/sdk • Platform android-33, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted.

    [✓] Xcode - develop for iOS and macOS (Xcode 14.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14B47b • CocoaPods version 1.11.3

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

    [✓] Android Studio (version 2021.3) • 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.13+0-b1751.21-8125866)

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

    [✓] Connected device (4 available) • iPhone 13 Pro (mobile) • 0DC746C8-271E-41C7-93D7-6D7FDA8C7753 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator) • iPhone 14 Pro (mobile) • 4107541B-1987-4A9C-8BD7-ECE90C47581D • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 13.0.1 22A400 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.110

    [✓] HTTP Host Availability • All required HTTP hosts are available

    • No issues found!

    Description

    I want to generate android only without any ios but it gives me error Option ios-bundle-id is mandatory.

    Steps to reproduce

    Run flutterfire configure -t $FLUTTER_FIRE_TOKEN -y --platforms=android -a com.isolution.***_mobile.dev

    Expected behavior

    The CLI should generate firebase file

    Screenshots

    Screenshot 2022-11-22 at 20 16 02

    Additional context and comments

    No response

    bug triage 
    opened by rymesaint 0
  • request: iOS counterpart for `--[no]-apply-gradle-plugins`

    request: iOS counterpart for `--[no]-apply-gradle-plugins`

    Is there an existing feature request for this?

    • [X] I have searched the existing issues.

    Command

    flutterfire configure --[no]-apply-ios-project-files

    Description

    Currently, there's a flag to control modification of Android related files.

    On iOS, google-info.plist is generated and the iOS project's file is modified to copy the google-info.plist. However, no counterpart for --[no]-apply-gradle-plugins exists for iOS. It will be great if there was a similar flag, i.e. --[no]-apply-ios-project-files (I suck at naming stuff) to likewise control modification of iOS files.

    Reasoning

    In my case, I have multiple applications each with different application flavors, each using a different Firebase project. Every time I run flutterfire configure, I have to ensure that I delete the corresponding changes to the iOS files. It is extremely easy to overlook the iOS changes with potentially disastrous results if unnoticed. Not to mention, it is tedious to manually revert the changes one by one.

    Additional context and comments

    No response

    enhancement triage 
    opened by Pante 0
  • [bug]:  configure command not updating build.gradle files

    [bug]: configure command not updating build.gradle files

    Is there an existing issue for this?

    • [X] I have searched the existing issues.

    CLI Version

    0.2.6+1

    Firebase Tools version

    11.15.0

    Flutter Doctor Output

    Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.6, on Microsoft Windows [Version 10.0.22623.870], locale en-CA) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Chrome - develop for the web [✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.6) [✓] Android Studio (version 2021.3) [✓] IntelliJ IDEA Ultimate Edition (version 2022.2) [✓] VS Code (version 1.72.2) [✓] Connected device (4 available) [✓] HTTP Host Availability

    • No issues found!

    Description

    I am on a windows machine and created an flutter app. I then wanted to setup firebase for it so I ran flutterfire configure. After selecting the project and platform, the command successfully create the ios and android app in firebase but never updates the android/build.gradle nor the android/app/build.gradle.

    Result: my app never starts as the firebase initialise app doesn't work.

    Steps to reproduce

    1. Run flutter create reproduce_bug --org "com.test"
    2. Run cd reproduce_bug
    3. Run flutter pub add firebase_core (installed version is 2.1.1)
    4. Run flutterfire configure
    5. Select the firebase project
    6. Select platform android and ios

    Expected behavior

    The flutterfire configure command is expected to update the build.gradle file (android/build.gradle and android/app/build.gradle).

    image cf : https://youtu.be/vtGCteFYs4M?t=12612

    Screenshots

    Here is the output i get from the flutterfire command which is different from the one seen in expected behaviour

    image

    Additional context and comments

    No response

    bug triage 
    opened by mrquentin 1
Owner
Invertase
Building awesome open source products.
Invertase
FlutterFire-note - A Flutter based simple cross platform note application

FlutterFire Note Overview FlutterFire Note is a Flutter based simple cross platf

Mahim Safa 1 Jan 31, 2022
⚒️ A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart.

⚒️ Dart CLI Utilities A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart. Document

Invertase 14 Oct 17, 2022
A tool to help cli package authors make raising issues like bug reports more interactive for their users.

issue A tool to help cli package authors make raising issues like bug reports more interactive for their users. Features Interactive file based prompt

Viren Khatri 3 Oct 18, 2022
This is a command-line app written on dart language for flutter applications that will help you to generate some boilerplate code

dart-generator Manual installation: 1- generate a platform executable from code dart compile exe main.dart -o generator this will generate a new gene

One Studio 11 Oct 26, 2022
Flutter Version Management: A simple cli to manage Flutter SDK versions.

fvm Flutter Version Management: A simple cli to manage Flutter SDK versions. Features: Configure Flutter SDK version per project or globally Ability t

于飞 242 Dec 18, 2022
A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Hasan Abdullah 214 Jan 9, 2023
Custom flutter testing CLI tool for individual test runs and group testing

fluttertest Custom flutter testing CLI tool for inidividual test runs or group testing Overview Flutter is a great framework which has helps developer

vi_mi 15 Nov 6, 2022
An example Flutter application built with Very Good CLI and Supabase 🦄

Supabase Example Generated by the Very Good CLI ?? An example Flutter application built with Very Good CLI and Supabase ?? Getting Started ?? This pro

Very Good Ventures 46 Dec 27, 2022
Command Line Interface (CLI) for Lucifer

Lucy Command Line Interface (CLI) for Lucifer. Installation Activate command line from your terminal with this command. pub global activate lucy Usage

Salman S 1 Dec 16, 2021
A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli

Sentry Dart Plugin A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli. For doing i

Sentry 36 Jan 4, 2023
Simple Dart calculator for use in a CLI

Dart-calculator Simple Dart calculator for use in a CLI Related to the Medium article: Building a Simple CLI Calculator App in Dart Overview This appl

Jean Luc Kabulu 6 Sep 13, 2022
Official Getx CLI

Documentation languages pt_BR en_US - this file zh_CN Official CLI for the GetX™ framework. // To install: pub global activate get_cli // (to use thi

Jonny Borges 440 Jan 8, 2023
Get google api credentials - A Dart CLI app to obtain credentials for accessing Google APIs

get_google_api_credentials A Dart CLI app to obtain credentials for accessing Go

null 1 Jan 28, 2022
CLI for bypass.vip api

Bypasser CLI Simple CLI tool for bypass.vip API Installation Download the executable (.exe) file Go to releases tab Find the build and download it Bui

I'm Not A Bot #Left_TG 8 Jun 19, 2022
A simple dart CLI to do various file conversion

Dart Converters A simple dart CLI to do various file conversion Ever get tired from changing old code to follow the current standards i.e snake_case t

Nour Magdi 1 Apr 18, 2022
A CLI tool and Dart package that can scrape file and directory URLs from h5ai instances.

h5ai scraper A CLI tool and Dart package that can scrape file and directory URLs from h5ai instances. Usage This tool requires the Dart SDK. It can be

null 1 Jan 4, 2023
A Very Good Dart CLI Template created by the Very Good Ventures Team 🦄

Very Good Dart CLI Developed with ?? by Very Good Ventures ?? A Dart CLI template created by the Very Good Ventures Team. Generated by the Very Good C

Very Good Open Source 26 Dec 15, 2022
A CLI tool to verify the test coverage of a pull request only, ignoring the rest of the project

This is a CI tool that analyzes the coverage rate of a pull request, ignoring the lines that were not changed in the PR. Motivation The coverage rate

Tales Barreto 3 Dec 15, 2022
This is an easy to use Flutter Package for adding Fancy Foldable Sidebar to your Flutter Applications.

Foldable Sidebar An easy to implement Foldable Sidebar Navigation Drawer for Flutter Applications. Current Features Initial Release for Foldable Navig

Paras Jain 87 Nov 26, 2022