Skip to content

Commit a5bac3d

Browse files
author
himanshu goyal
committed
fix firebase options
1 parent e52e1db commit a5bac3d

2 files changed

Lines changed: 70 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
.svn/
1111
*.env
1212
.vscode
13-
/lib/firebase_options.dart
1413
/android/app/google-services.json
1514
/firebase.json
1615
/android/app/upload-keystore.jks
17-
/lib/firebase_options.dart
1816

1917

2018
# IntelliJ related

lib/firebase_options.dart

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 web - '
22+
'you can reconfigure this by running the FlutterFire CLI again.',
23+
);
24+
}
25+
switch (defaultTargetPlatform) {
26+
case TargetPlatform.android:
27+
return android;
28+
case TargetPlatform.iOS:
29+
return ios;
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 android = FirebaseOptions(
53+
apiKey: '',
54+
appId: '1:724090909650:android:33a605e98b134abe8f8e0b',
55+
messagingSenderId: '724090909650',
56+
projectId: 'beacon-b75bf',
57+
storageBucket: 'beacon-b75bf.firebasestorage.app',
58+
);
59+
60+
static const FirebaseOptions ios = FirebaseOptions(
61+
apiKey: '',
62+
appId: '1:724090909650:ios:7dfc01703caf03d48f8e0b',
63+
messagingSenderId: '724090909650',
64+
projectId: 'beacon-b75bf',
65+
storageBucket: 'beacon-b75bf.firebasestorage.app',
66+
androidClientId: '',
67+
iosClientId: '',
68+
iosBundleId: 'com.ccextractor.beaconmobile',
69+
);
70+
}

0 commit comments

Comments
 (0)