// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
    show defaultTargetPlatform, kIsWeb, TargetPlatform;
import 'package:flutter_dotenv/flutter_dotenv.dart';

class DefaultFirebaseOptions {
  static FirebaseOptions get currentPlatform {
    if (kIsWeb) {
      return web;
    }
    switch (defaultTargetPlatform) {
      case TargetPlatform.android:
        return android;
      case TargetPlatform.iOS:
        return ios;
      case TargetPlatform.macOS:
        throw UnsupportedError(
          'DefaultFirebaseOptions have not been configured for macos - '
              'you can reconfigure this by running the FlutterFire CLI again.',
        );
      case TargetPlatform.windows:
        throw UnsupportedError(
          'DefaultFirebaseOptions have not been configured for windows - '
              'you can reconfigure this by running the FlutterFire CLI again.',
        );
      case TargetPlatform.linux:
        throw UnsupportedError(
          'DefaultFirebaseOptions have not been configured for linux - '
              'you can reconfigure this by running the FlutterFire CLI again.',
        );
      default:
        throw UnsupportedError(
          'DefaultFirebaseOptions are not supported for this platform.',
        );
    }
  }

  static FirebaseOptions web = FirebaseOptions(
    apiKey: dotenv.get('FIREBASE_WEB_API_KEY', fallback: ''),
    appId: dotenv.get('FIREBASE_WEB_APP_ID', fallback: ''),
    messagingSenderId: dotenv.get('FIREBASE_WEB_MESSAGING_SENDER_ID', fallback: ''),
    projectId: dotenv.get('FIREBASE_WEB_PROJECT_ID', fallback: ''),
    authDomain: dotenv.get('FIREBASE_WEB_AUTH_DOMAIN', fallback: ''),
    databaseURL: dotenv.get('FIREBASE_WEB_DATABASE_URL', fallback: ''),
    storageBucket: dotenv.get('FIREBASE_WEB_STORAGE_BUCKET', fallback: ''),
  );

  static FirebaseOptions android = FirebaseOptions(
    apiKey: dotenv.get('FIREBASE_ANDROID_API_KEY', fallback: ''),
    appId: dotenv.get('FIREBASE_ANDROID_APP_ID', fallback: ''),
    messagingSenderId: dotenv.get('FIREBASE_ANDROID_MESSAGING_SENDER_ID', fallback: ''),
    projectId: dotenv.get('FIREBASE_ANDROID_PROJECT_ID', fallback: ''),
    databaseURL: dotenv.get('FIREBASE_ANDROID_DATABASE_URL', fallback: ''),
    storageBucket: dotenv.get('FIREBASE_ANDROID_STORAGE_BUCKET', fallback: ''),
  );

  static FirebaseOptions ios = FirebaseOptions(
    apiKey: dotenv.get('FIREBASE_IOS_API_KEY', fallback: ''),
    appId: dotenv.get('FIREBASE_IOS_APP_ID', fallback: ''),
    messagingSenderId: dotenv.get('FIREBASE_IOS_MESSAGING_SENDER_ID', fallback: ''),
    projectId: dotenv.get('FIREBASE_IOS_PROJECT_ID', fallback: ''),
    databaseURL: dotenv.get('FIREBASE_IOS_DATABASE_URL', fallback: ''),
    storageBucket: dotenv.get('FIREBASE_IOS_STORAGE_BUCKET', fallback: ''),
    iosClientId: dotenv.get('FIREBASE_IOS_CLIENT_ID', fallback: ''),
    iosBundleId: dotenv.get('FIREBASE_IOS_BUNDLE_ID', fallback: ''),
  );
}