languages

A collection of programs made with different programming languages.
git clone git://evanalba.com/languages
Log | Files | Refs

firebase_options.dart (2348B)


      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'
      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       throw UnsupportedError(
     21         'DefaultFirebaseOptions have not been configured for web - '
     22         'you can reconfigure this by running the FlutterFire CLI again.',
     23       );
     24     }
     25     switch (defaultTargetPlatform) {
     26       case TargetPlatform.android:
     27         return android;
     28       case TargetPlatform.iOS:
     29         return ios;
     30       case TargetPlatform.macOS:
     31         throw UnsupportedError(
     32           'DefaultFirebaseOptions have not been configured for macos - '
     33           'you can reconfigure this by running the FlutterFire CLI again.',
     34         );
     35       case TargetPlatform.windows:
     36         throw UnsupportedError(
     37           'DefaultFirebaseOptions have not been configured for windows - '
     38           'you can reconfigure this by running the FlutterFire CLI again.',
     39         );
     40       case TargetPlatform.linux:
     41         throw UnsupportedError(
     42           'DefaultFirebaseOptions have not been configured for linux - '
     43           'you can reconfigure this by running the FlutterFire CLI again.',
     44         );
     45       default:
     46         throw UnsupportedError(
     47           'DefaultFirebaseOptions are not supported for this platform.',
     48         );
     49     }
     50   }
     51 
     52   static const FirebaseOptions android = FirebaseOptions(
     53     apiKey: 'AIzaSyBPFkMEaFScQSkFZus__MRklt-LPrwN_GI',
     54     appId: '1:43128747107:android:a07019303dd73aaad43456',
     55     messagingSenderId: '43128747107',
     56     projectId: 'penny-9e673',
     57     storageBucket: 'penny-9e673.appspot.com',
     58   );
     59 
     60   static const FirebaseOptions ios = FirebaseOptions(
     61     apiKey: 'AIzaSyDeXAQ67vycHnLxfJ48mqemuQP0g6bApvo',
     62     appId: '1:43128747107:ios:3a8cb0a698d2904ed43456',
     63     messagingSenderId: '43128747107',
     64     projectId: 'penny-9e673',
     65     storageBucket: 'penny-9e673.appspot.com',
     66     iosBundleId: 'com.example.penny',
     67   );
     68 
     69 }