|
| 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 | +classDefaultFirebaseOptions { |
| 18 | +staticFirebaseOptionsget currentPlatform { |
| 19 | +if (kIsWeb) { |
| 20 | +return web; |
| 21 | + } |
| 22 | +switch (defaultTargetPlatform) { |
| 23 | +caseTargetPlatform.android: |
| 24 | +return android; |
| 25 | +caseTargetPlatform.iOS: |
| 26 | +return ios; |
| 27 | +caseTargetPlatform.macOS: |
| 28 | +return macos; |
| 29 | +caseTargetPlatform.windows: |
| 30 | +throwUnsupportedError( |
| 31 | +'DefaultFirebaseOptions have not been configured for windows - ' |
| 32 | +'you can reconfigure this by running the FlutterFire CLI again.', |
| 33 | + ); |
| 34 | +caseTargetPlatform.linux: |
| 35 | +throwUnsupportedError( |
| 36 | +'DefaultFirebaseOptions have not been configured for linux - ' |
| 37 | +'you can reconfigure this by running the FlutterFire CLI again.', |
| 38 | + ); |
| 39 | +default: |
| 40 | +throwUnsupportedError( |
| 41 | +'DefaultFirebaseOptions are not supported for this platform.', |
| 42 | + ); |
| 43 | + } |
| 44 | + } |
| 45 | + |
| 46 | +staticconstFirebaseOptions web=FirebaseOptions( |
| 47 | + apiKey:'AIzaSyAqMmYgf00OVc6equ6AXXsW9zo89fbxtzQ', |
| 48 | + appId:'1:758124052811:web:4bf7e0c84dbf1a463c68ce', |
| 49 | + messagingSenderId:'758124052811', |
| 50 | + projectId:'flutter-news-8c3d7', |
| 51 | + authDomain:'flutter-news-8c3d7.firebaseapp.com', |
| 52 | + storageBucket:'flutter-news-8c3d7.appspot.com', |
| 53 | + measurementId:'G-86630CTV89', |
| 54 | + ); |
| 55 | + |
| 56 | +staticconstFirebaseOptions android=FirebaseOptions( |
| 57 | + apiKey:'AIzaSyAEHB3CU5jRzUFhYKvhVbWxWf5RmsGIV-k', |
| 58 | + appId:'1:758124052811:android:f434793e0805ce4b3c68ce', |
| 59 | + messagingSenderId:'758124052811', |
| 60 | + projectId:'flutter-news-8c3d7', |
| 61 | + storageBucket:'flutter-news-8c3d7.appspot.com', |
| 62 | + ); |
| 63 | + |
| 64 | +staticconstFirebaseOptions ios=FirebaseOptions( |
| 65 | + apiKey:'AIzaSyA_gK5e9tys4srJ_rw-4wQ_Dp_PQ7zcwBg', |
| 66 | + appId:'1:758124052811:ios:2dd4583dd48a59843c68ce', |
| 67 | + messagingSenderId:'758124052811', |
| 68 | + projectId:'flutter-news-8c3d7', |
| 69 | + storageBucket:'flutter-news-8c3d7.appspot.com', |
| 70 | + iosClientId:'758124052811-bsgc75rn2qng5vfsqhdi6hq3vpagtcu7.apps.googleusercontent.com', |
| 71 | + iosBundleId:'com.ysn.flutterNewsApp', |
| 72 | + ); |
| 73 | + |
| 74 | +staticconstFirebaseOptions macos=FirebaseOptions( |
| 75 | + apiKey:'AIzaSyA_gK5e9tys4srJ_rw-4wQ_Dp_PQ7zcwBg', |
| 76 | + appId:'1:758124052811:ios:2dd4583dd48a59843c68ce', |
| 77 | + messagingSenderId:'758124052811', |
| 78 | + projectId:'flutter-news-8c3d7', |
| 79 | + storageBucket:'flutter-news-8c3d7.appspot.com', |
| 80 | + iosClientId:'758124052811-bsgc75rn2qng5vfsqhdi6hq3vpagtcu7.apps.googleusercontent.com', |
| 81 | + iosBundleId:'com.ysn.flutterNewsApp', |
| 82 | + ); |
| 83 | +} |