-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathfirebase_options.dart
More file actions
77 lines (72 loc) · 2.73 KB
/
firebase_options.dart
File metadata and controls
77 lines (72 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
/// Default [FirebaseOptions] for use with your Firebase apps.
///
/// Example:
/// ```dart
/// import 'firebase_options.dart';
/// // ...
/// await Firebase.initializeApp(
/// options: DefaultFirebaseOptions.currentPlatform,
/// );
/// ```
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
return web;
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for macos - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.linux:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for linux - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
default:
throw UnsupportedError(
'DefaultFirebaseOptions are not supported for this platform.',
);
}
}
static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyBeszZHLYJNyjUhpujMH9yZ4ol9JqsAmPU',
appId: '1:288842837392:android:1353619813061d867a5715',
messagingSenderId: '288842837392',
projectId: 'we-chat-75f13',
storageBucket: 'we-chat-75f13.appspot.com',
);
static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyCCYZoZ5DvuitZJ7qK5iWM3ARHBDoFFriY',
appId: '1:288842837392:ios:f39c8dc31525a6687a5715',
messagingSenderId: '288842837392',
projectId: 'we-chat-75f13',
storageBucket: 'we-chat-75f13.appspot.com',
androidClientId: '288842837392-2t5rlhsn6681m59ad731b9896dcuid8d.apps.googleusercontent.com',
iosClientId: '288842837392-sgib97u6439i4jte3bo19u00fh663euu.apps.googleusercontent.com',
iosBundleId: 'com.harshRajpurohit.weChat',
);
static const FirebaseOptions web = FirebaseOptions(
apiKey: 'AIzaSyBW-1MjB067GUwQHPnYmWkr_4iMz13UgRs',
appId: '1:288842837392:web:6ae5bafc6d7d4f407a5715',
messagingSenderId: '288842837392',
projectId: 'we-chat-75f13',
authDomain: 'we-chat-75f13.firebaseapp.com',
storageBucket: 'we-chat-75f13.appspot.com',
);
}