Skip to content

Commit f59b361

Browse files
committed
feat: git에서 프로젝트 빌드를 위한 firebase_options 파일을 ignore에서 해제
1 parent cc358ae commit f59b361

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ logs/
156156
devtools_options.yaml
157157

158158
# Firebase
159-
lib/firebase_options.dart
159+
# lib/firebase_options.dart

lib/firebase_options.dart

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
return web;
21+
}
22+
switch (defaultTargetPlatform) {
23+
case TargetPlatform.android:
24+
throw UnsupportedError(
25+
'DefaultFirebaseOptions have not been configured for android - '
26+
'you can reconfigure this by running the FlutterFire CLI again.',
27+
);
28+
case TargetPlatform.iOS:
29+
throw UnsupportedError(
30+
'DefaultFirebaseOptions have not been configured for ios - '
31+
'you can reconfigure this by running the FlutterFire CLI again.',
32+
);
33+
case TargetPlatform.macOS:
34+
throw UnsupportedError(
35+
'DefaultFirebaseOptions have not been configured for macos - '
36+
'you can reconfigure this by running the FlutterFire CLI again.',
37+
);
38+
case TargetPlatform.windows:
39+
throw UnsupportedError(
40+
'DefaultFirebaseOptions have not been configured for windows - '
41+
'you can reconfigure this by running the FlutterFire CLI again.',
42+
);
43+
case TargetPlatform.linux:
44+
throw UnsupportedError(
45+
'DefaultFirebaseOptions have not been configured for linux - '
46+
'you can reconfigure this by running the FlutterFire CLI again.',
47+
);
48+
default:
49+
throw UnsupportedError(
50+
'DefaultFirebaseOptions are not supported for this platform.',
51+
);
52+
}
53+
}
54+
55+
static const FirebaseOptions web = FirebaseOptions(
56+
apiKey: 'AIzaSyDv6taLhWiRmfLBY7v7h2iZRHABowiB4UU',
57+
appId: '1:108515543625:web:3a816c4fb36a9baaa74d98',
58+
messagingSenderId: '108515543625',
59+
projectId: 'mongo-ai-9d6ac',
60+
authDomain: 'mongo-ai-9d6ac.firebaseapp.com',
61+
storageBucket: 'mongo-ai-9d6ac.firebasestorage.app',
62+
measurementId: 'G-ZB5G231MQH',
63+
);
64+
}

0 commit comments

Comments
 (0)