Skip to content

Commit 12a1c1f

Browse files
authored
Merge pull request #3 from ACTwoSeven/backend
API Firebase
2 parents 1cb0a2c + 8a1ebb9 commit 12a1c1f

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

android/app/google-services.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "636132875980",
4+
"project_id": "pathfinder-203d0",
5+
"storage_bucket": "pathfinder-203d0.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:636132875980:android:90877c609f441821976c69",
11+
"android_client_info": {
12+
"package_name": "com.example.pathfinder"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyC3DbQqmi1O-QBXUboa-j5sa3Ci7mbprAA"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}

lib/firebase_options.dart

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// File generated by FlutterFire CLI.
2+
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
3+
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
4+
import 'package:flutter/foundation.dart'
5+
show defaultTargetPlatform, kIsWeb, TargetPlatform;
6+
7+
/// Default [FirebaseOptions] for use with your Firebase apps.
8+
///
9+
/// Example:
10+
/// ```dart
11+
/// import 'firebase_options.dart';
12+
/// // ...
13+
/// await Firebase.initializeApp(
14+
/// options: DefaultFirebaseOptions.currentPlatform,
15+
/// );
16+
/// ```
17+
class DefaultFirebaseOptions {
18+
static FirebaseOptions get currentPlatform {
19+
if (kIsWeb) {
20+
return web;
21+
}
22+
switch (defaultTargetPlatform) {
23+
case TargetPlatform.android:
24+
return android;
25+
case TargetPlatform.iOS:
26+
throw UnsupportedError(
27+
'DefaultFirebaseOptions have not been configured for ios - '
28+
'you can reconfigure this by running the FlutterFire CLI again.',
29+
);
30+
case TargetPlatform.macOS:
31+
throw UnsupportedError(
32+
'DefaultFirebaseOptions have not been configured for macos - '
33+
'you can reconfigure this by running the FlutterFire CLI again.',
34+
);
35+
case TargetPlatform.windows:
36+
throw UnsupportedError(
37+
'DefaultFirebaseOptions have not been configured for windows - '
38+
'you can reconfigure this by running the FlutterFire CLI again.',
39+
);
40+
case TargetPlatform.linux:
41+
throw UnsupportedError(
42+
'DefaultFirebaseOptions have not been configured for linux - '
43+
'you can reconfigure this by running the FlutterFire CLI again.',
44+
);
45+
default:
46+
throw UnsupportedError(
47+
'DefaultFirebaseOptions are not supported for this platform.',
48+
);
49+
}
50+
}
51+
52+
static const FirebaseOptions web = FirebaseOptions(
53+
apiKey: 'AIzaSyCI1tBVV1Lodfk6T-eM-wkPdIX3_WQTcaw',
54+
appId: '1:636132875980:web:939589090afdf463976c69',
55+
messagingSenderId: '636132875980',
56+
projectId: 'pathfinder-203d0',
57+
authDomain: 'pathfinder-203d0.firebaseapp.com',
58+
storageBucket: 'pathfinder-203d0.appspot.com',
59+
measurementId: 'G-DRV1L2GXSH',
60+
);
61+
62+
static const FirebaseOptions android = FirebaseOptions(
63+
apiKey: 'AIzaSyC3DbQqmi1O-QBXUboa-j5sa3Ci7mbprAA',
64+
appId: '1:636132875980:android:90877c609f441821976c69',
65+
messagingSenderId: '636132875980',
66+
projectId: 'pathfinder-203d0',
67+
storageBucket: 'pathfinder-203d0.appspot.com',
68+
);
69+
}

0 commit comments

Comments
 (0)