72 lines
2.5 KiB
Dart
72 lines
2.5 KiB
Dart
// File generated by FlutterFire CLI.
|
|
// ignore_for_file: type=lint
|
|
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
|
import 'package:flutter/foundation.dart'
|
|
show defaultTargetPlatform, kIsWeb, TargetPlatform;
|
|
|
|
/// Default [FirebaseOptions] for use with your Firebase apps.
|
|
///
|
|
/// Example:
|
|
/// ```dart
|
|
/// import 'firebase_options.dart';
|
|
/// // ...
|
|
/// await Firebase.initializeApp(
|
|
/// options: DefaultFirebaseOptions.currentPlatform,
|
|
/// );
|
|
/// ```
|
|
class DefaultFirebaseOptions {
|
|
static FirebaseOptions get currentPlatform {
|
|
if (kIsWeb) {
|
|
return web;
|
|
}
|
|
switch (defaultTargetPlatform) {
|
|
case TargetPlatform.android:
|
|
return android;
|
|
case TargetPlatform.iOS:
|
|
throw UnsupportedError(
|
|
'DefaultFirebaseOptions have not been configured for ios - '
|
|
'you can reconfigure this by running the FlutterFire CLI again.',
|
|
);
|
|
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 const FirebaseOptions android = FirebaseOptions(
|
|
apiKey: 'AIzaSyDMvuXqr-QLQrpb0IlbTsbGyh3Rr1cnY3s',
|
|
appId: '1:997970373985:android:6a448781dfa138686e2920',
|
|
messagingSenderId: '997970373985',
|
|
projectId: 'doorguard-7fe8c',
|
|
databaseURL: 'https://doorguard-7fe8c-default-rtdb.firebaseio.com',
|
|
storageBucket: 'doorguard-7fe8c.firebasestorage.app',
|
|
);
|
|
|
|
static const FirebaseOptions web = FirebaseOptions(
|
|
apiKey: 'AIzaSyAyYNU6Bq-ir48NZlGvPkgeY1qSI9e7dxs',
|
|
appId: '1:997970373985:web:ab362b215e89e0926e2920',
|
|
messagingSenderId: '997970373985',
|
|
projectId: 'doorguard-7fe8c',
|
|
authDomain: 'doorguard-7fe8c.firebaseapp.com',
|
|
databaseURL: 'https://doorguard-7fe8c-default-rtdb.firebaseio.com',
|
|
storageBucket: 'doorguard-7fe8c.firebasestorage.app',
|
|
measurementId: 'G-Q5ZNKEQ4Z1',
|
|
);
|
|
|
|
} |