|
| 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 | + return ios; |
| 27 | + case TargetPlatform.macOS: |
| 28 | + return macos; |
| 29 | + case TargetPlatform.windows: |
| 30 | + throw UnsupportedError( |
| 31 | + 'DefaultFirebaseOptions have not been configured for windows - ' |
| 32 | + 'you can reconfigure this by running the FlutterFire CLI again.', |
| 33 | + ); |
| 34 | + case TargetPlatform.linux: |
| 35 | + throw UnsupportedError( |
| 36 | + 'DefaultFirebaseOptions have not been configured for linux - ' |
| 37 | + 'you can reconfigure this by running the FlutterFire CLI again.', |
| 38 | + ); |
| 39 | + default: |
| 40 | + throw UnsupportedError( |
| 41 | + 'DefaultFirebaseOptions are not supported for this platform.', |
| 42 | + ); |
| 43 | + } |
| 44 | + } |
| 45 | + |
| 46 | + static const FirebaseOptions web = FirebaseOptions( |
| 47 | + apiKey: 'AIzaSyDC-X89w34CRpXhsYj-yg11GP6xAZqtEWM', |
| 48 | + appId: '1:755324536390:web:5c0990ad75b624269aec47', |
| 49 | + messagingSenderId: '755324536390', |
| 50 | + projectId: 'portfolio-300c3', |
| 51 | + authDomain: 'portfolio-300c3.firebaseapp.com', |
| 52 | + storageBucket: 'portfolio-300c3.appspot.com', |
| 53 | + measurementId: 'G-XCRCBL3FRJ', |
| 54 | + ); |
| 55 | + |
| 56 | + static const FirebaseOptions android = FirebaseOptions( |
| 57 | + apiKey: 'AIzaSyCHHYfnrhzawOnMubdlzyKIV-OnpFeJksY', |
| 58 | + appId: '1:755324536390:android:5eae78da0261c3809aec47', |
| 59 | + messagingSenderId: '755324536390', |
| 60 | + projectId: 'portfolio-300c3', |
| 61 | + storageBucket: 'portfolio-300c3.appspot.com', |
| 62 | + ); |
| 63 | + |
| 64 | + static const FirebaseOptions ios = FirebaseOptions( |
| 65 | + apiKey: 'AIzaSyAtHfF3jJ2isRhoc702rehlFFwSUyQ8c-Q', |
| 66 | + appId: '1:755324536390:ios:1682adbd2a990b279aec47', |
| 67 | + messagingSenderId: '755324536390', |
| 68 | + projectId: 'portfolio-300c3', |
| 69 | + storageBucket: 'portfolio-300c3.appspot.com', |
| 70 | + iosClientId: '755324536390-ovi75d7m4c1slmbm38rqsja23u82603o.apps.googleusercontent.com', |
| 71 | + iosBundleId: 'com.example.portfolio', |
| 72 | + ); |
| 73 | + |
| 74 | + static const FirebaseOptions macos = FirebaseOptions( |
| 75 | + apiKey: 'AIzaSyAtHfF3jJ2isRhoc702rehlFFwSUyQ8c-Q', |
| 76 | + appId: '1:755324536390:ios:1682adbd2a990b279aec47', |
| 77 | + messagingSenderId: '755324536390', |
| 78 | + projectId: 'portfolio-300c3', |
| 79 | + storageBucket: 'portfolio-300c3.appspot.com', |
| 80 | + iosClientId: '755324536390-ovi75d7m4c1slmbm38rqsja23u82603o.apps.googleusercontent.com', |
| 81 | + iosBundleId: 'com.example.portfolio', |
| 82 | + ); |
| 83 | +} |
0 commit comments