Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions doc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Contributing to Flutter GenUI.
# Contributing to Flutter GenUI

## Integration with Firebase
Please follow our [contributor guidelines](https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md).

https://pantheon.corp.google.com/welcome?inv=1&invt=Ab4FMw&project=fluttergenui
## Firebase Configuration

The app uses `firebase_ai` to connect to the LLM, which requires using Firebase.

To configure firebase, run `flutterfire`.

First, activate `flutterfire`:

```shell
dart pub global activate flutterfire_cli
```

The configure it:

```shell
flutterfire configure --overwrite-firebase-options --platforms=web,macos,android --project=fluttergenui
```

You can configure the project on the Google Cloud Console for the [FlutterGenUI project](https://pantheon.corp.google.com/welcome?inv=1&invt=Ab4FMw&project=fluttergenui).
3 changes: 1 addition & 2 deletions pkgs/examples/travel_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is prototype for agentic app.

To regenerate diagrams:

```
```shell
dart pub global activate layerlens
layerlens
```
Expand All @@ -18,4 +18,3 @@ TODO before productizing:
1. Make colors and sizes configurable.

## Next

1 change: 1 addition & 0 deletions pkgs/examples/travel_app/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions pkgs/examples/travel_app/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "ephemeral/Flutter-Generated.xcconfig"
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "ephemeral/Flutter-Generated.xcconfig"
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
import FlutterMacOS
import Foundation

import firebase_app_check
import firebase_auth
import firebase_core

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTFirebaseAppCheckPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAppCheckPlugin"))
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

#include "generated_plugin_registrant.h"

#include <firebase_auth/firebase_auth_plugin_c_api.h>
#include <firebase_core/firebase_core_plugin_c_api.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
FirebaseAuthPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi"));
FirebaseCorePluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FirebaseCorePluginCApi"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
firebase_auth
firebase_core
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down