firebase_options.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // File generated by FlutterFire CLI.
  2. // ignore_for_file: type=lint
  3. import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
  4. import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb, TargetPlatform;
  5. /// Default [FirebaseOptions] for use with your Firebase apps.
  6. ///
  7. /// Example:
  8. /// ```dart
  9. /// import 'firebase_options.dart';
  10. /// // ...
  11. /// await Firebase.initializeApp(
  12. /// options: DefaultFirebaseOptions.currentPlatform,
  13. /// );
  14. /// ```
  15. class DefaultFirebaseOptions {
  16. static FirebaseOptions get currentPlatform {
  17. if (kIsWeb) {
  18. throw UnsupportedError(
  19. 'DefaultFirebaseOptions have not been configured for web - '
  20. 'you can reconfigure this by running the FlutterFire CLI again.',
  21. );
  22. }
  23. switch (defaultTargetPlatform) {
  24. case TargetPlatform.android:
  25. return android;
  26. case TargetPlatform.iOS:
  27. // return ios;
  28. throw UnsupportedError(
  29. 'DefaultFirebaseOptions have not been configured for ios - '
  30. 'you can reconfigure this by running the FlutterFire CLI again.',
  31. );
  32. case TargetPlatform.macOS:
  33. throw UnsupportedError(
  34. 'DefaultFirebaseOptions have not been configured for macos - '
  35. 'you can reconfigure this by running the FlutterFire CLI again.',
  36. );
  37. case TargetPlatform.windows:
  38. throw UnsupportedError(
  39. 'DefaultFirebaseOptions have not been configured for windows - '
  40. 'you can reconfigure this by running the FlutterFire CLI again.',
  41. );
  42. case TargetPlatform.linux:
  43. throw UnsupportedError(
  44. 'DefaultFirebaseOptions have not been configured for linux - '
  45. 'you can reconfigure this by running the FlutterFire CLI again.',
  46. );
  47. default:
  48. throw UnsupportedError('DefaultFirebaseOptions are not supported for this platform.');
  49. }
  50. }
  51. // 合作伙伴的firebase信息
  52. static const FirebaseOptions android = FirebaseOptions(
  53. apiKey: 'AIzaSyBRbzz8F7u4uIzQV6nqybwKI9XawIlADK0',
  54. appId: '1:1034630421426:android:735a56b7d9b13238f322ab',
  55. messagingSenderId: '1034630421426',
  56. projectId: 'jigsort-186f6',
  57. storageBucket: 'jigsort-186f6.firebasestorage.app',
  58. );
  59. }