Skip to content

Commit 20a98c3

Browse files
authored
Merge pull request #5 from gmbcode/prep_for_integration
feat : Make changes to pubspec.yaml and firebase_options to make file…
2 parents 9cf735f + cbc045f commit 20a98c3

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

lib/firebase_options.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class DefaultFirebaseOptions {
4848
authDomain: 'azt-playground-app.firebaseapp.com',
4949
storageBucket: 'azt-playground-app.firebasestorage.app',
5050
measurementId: 'G-NQCT7LCPJV',
51+
databaseURL: 'https://azt-playground-app-default-rtdb.europe-west1.firebasedatabase.app',
5152
);
5253

5354
static const FirebaseOptions android = FirebaseOptions(
@@ -56,6 +57,7 @@ class DefaultFirebaseOptions {
5657
messagingSenderId: '64211053051',
5758
projectId: 'azt-playground-app',
5859
storageBucket: 'azt-playground-app.firebasestorage.app',
60+
databaseURL: 'https://azt-playground-app-default-rtdb.europe-west1.firebasedatabase.app',
5961
);
6062

6163
static const FirebaseOptions ios = FirebaseOptions(
@@ -65,6 +67,7 @@ class DefaultFirebaseOptions {
6567
projectId: 'azt-playground-app',
6668
storageBucket: 'azt-playground-app.firebasestorage.app',
6769
iosBundleId: 'com.example.azt',
70+
databaseURL: 'https://azt-playground-app-default-rtdb.europe-west1.firebasedatabase.app',
6871
);
6972

7073
static const FirebaseOptions macos = FirebaseOptions(
@@ -74,6 +77,7 @@ class DefaultFirebaseOptions {
7477
projectId: 'azt-playground-app',
7578
storageBucket: 'azt-playground-app.firebasestorage.app',
7679
iosBundleId: 'com.example.azt',
80+
databaseURL: 'https://azt-playground-app-default-rtdb.europe-west1.firebasedatabase.app',
7781
);
7882

7983
static const FirebaseOptions windows = FirebaseOptions(
@@ -84,5 +88,6 @@ class DefaultFirebaseOptions {
8488
authDomain: 'azt-playground-app.firebaseapp.com',
8589
storageBucket: 'azt-playground-app.firebasestorage.app',
8690
measurementId: 'G-6ZNXRV3SWQ',
91+
databaseURL: 'https://azt-playground-app-default-rtdb.europe-west1.firebasedatabase.app',
8792
);
88-
}
93+
}

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ import Foundation
88
import cloud_firestore
99
import firebase_auth
1010
import firebase_core
11+
import firebase_database
1112
import google_sign_in_ios
1213

1314
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1415
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
1516
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
1617
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
18+
FLTFirebaseDatabasePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseDatabasePlugin"))
1719
FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin"))
1820
}

pubspec.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,30 @@ packages:
145145
url: "https://pub.dev"
146146
source: hosted
147147
version: "3.3.0"
148+
firebase_database:
149+
dependency: "direct main"
150+
description:
151+
name: firebase_database
152+
sha256: d801605d5e0fbab64dbda49f214e8c527daa13005b655d5fa4cce9be687d51ea
153+
url: "https://pub.dev"
154+
source: hosted
155+
version: "12.1.0"
156+
firebase_database_platform_interface:
157+
dependency: transitive
158+
description:
159+
name: firebase_database_platform_interface
160+
sha256: "820bc61acffe321cde4dacf410cd6313c74a265fffd5e066a780a61ddb893332"
161+
url: "https://pub.dev"
162+
source: hosted
163+
version: "0.3.0"
164+
firebase_database_web:
165+
dependency: transitive
166+
description:
167+
name: firebase_database_web
168+
sha256: f8b40d1e64697fc5927c681f3e8f485d04cf85e2d6dd5c35b71e7c1fd57f0d1a
169+
url: "https://pub.dev"
170+
source: hosted
171+
version: "0.2.7+1"
148172
flutter:
149173
dependency: "direct main"
150174
description: flutter

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: azt
2-
description: "A new Flutter project."
2+
description: "A fully fledged e-commerce app"
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
@@ -41,6 +41,7 @@ dependencies:
4141
google_sign_in_web: ^1.1.0
4242
cloud_firestore: ^6.1.0
4343
logger: ^2.6.2
44+
firebase_database: ^12.1.0
4445

4546
dev_dependencies:
4647
flutter_test:
@@ -93,4 +94,4 @@ flutter:
9394
# weight: 700
9495
#
9596
# For details regarding fonts from package dependencies,
96-
# see https://flutter.dev/to/font-from-package
97+
# see https://flutter.dev/to/font-from-package

0 commit comments

Comments
 (0)