|
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 | 1 |
|
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 |
| - 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 android = FirebaseOptions( |
56 |
| - apiKey: 'AIzaSyAeOmRf75mRRVoXO1g4cm6wqVUoOuUf97I', |
57 |
| - appId: '1:767599767515:android:f96dbb868c7ca38e1e81fe', |
58 |
| - messagingSenderId: '767599767515', |
59 |
| - projectId: 'teste-firebase-zenith', |
60 |
| - storageBucket: 'teste-firebase-zenith.appspot.com', |
61 |
| - ); |
62 |
| -} |
0 commit comments