|
| 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 | + 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: 'AIzaSyCZ_IsPq6f2zFfa4m3FZTI7_IZah3jprYA', |
| 57 | + appId: '1:601686189968:web:bfb96e28481162ec91f515', |
| 58 | + messagingSenderId: '601686189968', |
| 59 | + projectId: 'mcgamejam-temporary', |
| 60 | + authDomain: 'mcgamejam-temporary.firebaseapp.com', |
| 61 | + storageBucket: 'mcgamejam-temporary.appspot.com', |
| 62 | + measurementId: 'G-14B9ZWV5B5', |
| 63 | + ); |
| 64 | +} |
0 commit comments