Skip to content

Commit 9fca76a

Browse files
committed
Added firebase_options.dart
1 parent f585ce4 commit 9fca76a

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

data_connect/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,3 @@ app.*.map.json
4343
/android/app/debug
4444
/android/app/profile
4545
/android/app/release
46-
47-
/lib/firebase_options.dart
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// File generated by FlutterFire CLI.
2+
// ignore_for_file: type=lint
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+
throw UnsupportedError(
21+
'DefaultFirebaseOptions have not been configured for ios - '
22+
'you can reconfigure this by running the FlutterFire CLI again.',
23+
);
24+
}
25+
switch (defaultTargetPlatform) {
26+
case TargetPlatform.android:
27+
throw UnsupportedError(
28+
'DefaultFirebaseOptions have not been configured for ios - '
29+
'you can reconfigure this by running the FlutterFire CLI again.',
30+
);
31+
case TargetPlatform.iOS:
32+
throw UnsupportedError(
33+
'DefaultFirebaseOptions have not been configured for ios - '
34+
'you can reconfigure this by running the FlutterFire CLI again.',
35+
);
36+
case TargetPlatform.macOS:
37+
throw UnsupportedError(
38+
'DefaultFirebaseOptions have not been configured for macos - '
39+
'you can reconfigure this by running the FlutterFire CLI again.',
40+
);
41+
case TargetPlatform.windows:
42+
throw UnsupportedError(
43+
'DefaultFirebaseOptions have not been configured for windows - '
44+
'you can reconfigure this by running the FlutterFire CLI again.',
45+
);
46+
case TargetPlatform.linux:
47+
throw UnsupportedError(
48+
'DefaultFirebaseOptions have not been configured for linux - '
49+
'you can reconfigure this by running the FlutterFire CLI again.',
50+
);
51+
default:
52+
throw UnsupportedError(
53+
'DefaultFirebaseOptions are not supported for this platform.',
54+
);
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)