firebase_options.dart 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. /// Default [FirebaseOptions] for use with your Firebase apps.
  7. ///
  8. /// Example:
  9. /// ```dart
  10. /// import 'firebase_options.dart';
  11. /// // ...
  12. /// await Firebase.initializeApp(
  13. /// options: DefaultFirebaseOptions.currentPlatform,
  14. /// );
  15. /// ```
  16. class DefaultFirebaseOptions {
  17. static FirebaseOptions get currentPlatform {
  18. if (kIsWeb) {
  19. throw UnsupportedError(
  20. 'DefaultFirebaseOptions have not been configured for web - '
  21. 'you can reconfigure this by running the FlutterFire CLI again.',
  22. );
  23. }
  24. switch (defaultTargetPlatform) {
  25. case TargetPlatform.android:
  26. return android;
  27. case TargetPlatform.iOS:
  28. return ios;
  29. case TargetPlatform.macOS:
  30. throw UnsupportedError(
  31. 'DefaultFirebaseOptions have not been configured for macos - '
  32. 'you can reconfigure this by running the FlutterFire CLI again.',
  33. );
  34. case TargetPlatform.windows:
  35. throw UnsupportedError(
  36. 'DefaultFirebaseOptions have not been configured for windows - '
  37. 'you can reconfigure this by running the FlutterFire CLI again.',
  38. );
  39. case TargetPlatform.linux:
  40. throw UnsupportedError(
  41. 'DefaultFirebaseOptions have not been configured for linux - '
  42. 'you can reconfigure this by running the FlutterFire CLI again.',
  43. );
  44. default:
  45. throw UnsupportedError(
  46. 'DefaultFirebaseOptions are not supported for this platform.',
  47. );
  48. }
  49. }
  50. static const FirebaseOptions android = FirebaseOptions(
  51. apiKey: 'AIzaSyDtGnAiB9i7hhKxC9nNBEh_h7rWoL6QSNs',
  52. appId: '1:788019391064:android:c17f707ddb9f52a383b82d',
  53. messagingSenderId: '788019391064',
  54. projectId: 'flutter-zshop',
  55. databaseURL: 'https://flutter-zshop-default-rtdb.firebaseio.com',
  56. storageBucket: 'flutter-zshop.appspot.com',
  57. );
  58. static const FirebaseOptions ios = FirebaseOptions(
  59. apiKey: 'AIzaSyCHQViBhtByFijfEB4vqaQQIQKoOMyKwng',
  60. appId: '1:788019391064:ios:8b200edfacfaf84383b82d',
  61. messagingSenderId: '788019391064',
  62. projectId: 'flutter-zshop',
  63. databaseURL: 'https://flutter-zshop-default-rtdb.firebaseio.com',
  64. storageBucket: 'flutter-zshop.appspot.com',
  65. iosBundleId: 'com.example.putraGo',
  66. );
  67. }