|
| 1 | +// File generated by FlutterFire CLI. |
| 2 | +// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members |
| 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 | + return android; |
| 25 | + case TargetPlatform.iOS: |
| 26 | + throw UnsupportedError( |
| 27 | + 'DefaultFirebaseOptions have not been configured for ios - ' |
| 28 | + 'you can reconfigure this by running the FlutterFire CLI again.', |
| 29 | + ); |
| 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 web = FirebaseOptions( |
| 53 | + apiKey: 'AIzaSyCI1tBVV1Lodfk6T-eM-wkPdIX3_WQTcaw', |
| 54 | + appId: '1:636132875980:web:939589090afdf463976c69', |
| 55 | + messagingSenderId: '636132875980', |
| 56 | + projectId: 'pathfinder-203d0', |
| 57 | + authDomain: 'pathfinder-203d0.firebaseapp.com', |
| 58 | + storageBucket: 'pathfinder-203d0.appspot.com', |
| 59 | + measurementId: 'G-DRV1L2GXSH', |
| 60 | + ); |
| 61 | + |
| 62 | + static const FirebaseOptions android = FirebaseOptions( |
| 63 | + apiKey: 'AIzaSyC3DbQqmi1O-QBXUboa-j5sa3Ci7mbprAA', |
| 64 | + appId: '1:636132875980:android:90877c609f441821976c69', |
| 65 | + messagingSenderId: '636132875980', |
| 66 | + projectId: 'pathfinder-203d0', |
| 67 | + storageBucket: 'pathfinder-203d0.appspot.com', |
| 68 | + ); |
| 69 | +} |
0 commit comments