Complete refactoring SFM App Source Code
This commit is contained in:
86
lib/firebase_options.dart
Normal file
86
lib/firebase_options.dart
Normal file
@@ -0,0 +1,86 @@
|
||||
// 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:
|
||||
return ios;
|
||||
case TargetPlatform.macOS:
|
||||
return macos;
|
||||
case TargetPlatform.windows:
|
||||
return windows;
|
||||
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 web = FirebaseOptions(
|
||||
apiKey: 'AIzaSyCD8s_CD1dzXuY2EdgzulRJqZV7TY-1chY',
|
||||
appId: '1:910110439150:web:b3dc22fa9ecb953b5b65ff',
|
||||
messagingSenderId: '910110439150',
|
||||
projectId: 'sfm-notification',
|
||||
authDomain: 'sfm-notification.firebaseapp.com',
|
||||
storageBucket: 'sfm-notification.firebasestorage.app',
|
||||
);
|
||||
|
||||
static const FirebaseOptions android = FirebaseOptions(
|
||||
apiKey: 'AIzaSyADdZ66_q4HALlb0-yEGgeyGnsbwmlvDsA',
|
||||
appId: '1:910110439150:android:c3dbc3b4a85d7cb75b65ff',
|
||||
messagingSenderId: '910110439150',
|
||||
projectId: 'sfm-notification',
|
||||
storageBucket: 'sfm-notification.firebasestorage.app',
|
||||
);
|
||||
|
||||
static const FirebaseOptions ios = FirebaseOptions(
|
||||
apiKey: 'AIzaSyCpcnAulIA5fxrSM0uHSf0uWSzzlM208Fw',
|
||||
appId: '1:910110439150:ios:1d111f0cdd0240a35b65ff',
|
||||
messagingSenderId: '910110439150',
|
||||
projectId: 'sfm-notification',
|
||||
storageBucket: 'sfm-notification.firebasestorage.app',
|
||||
iosBundleId: 'com.example.sfmApp',
|
||||
);
|
||||
|
||||
static const FirebaseOptions macos = FirebaseOptions(
|
||||
apiKey: 'AIzaSyCpcnAulIA5fxrSM0uHSf0uWSzzlM208Fw',
|
||||
appId: '1:910110439150:ios:1d111f0cdd0240a35b65ff',
|
||||
messagingSenderId: '910110439150',
|
||||
projectId: 'sfm-notification',
|
||||
storageBucket: 'sfm-notification.firebasestorage.app',
|
||||
iosBundleId: 'com.example.sfmApp',
|
||||
);
|
||||
|
||||
static const FirebaseOptions windows = FirebaseOptions(
|
||||
apiKey: 'AIzaSyCD8s_CD1dzXuY2EdgzulRJqZV7TY-1chY',
|
||||
appId: '1:910110439150:web:7c413e6bc22555575b65ff',
|
||||
messagingSenderId: '910110439150',
|
||||
projectId: 'sfm-notification',
|
||||
authDomain: 'sfm-notification.firebaseapp.com',
|
||||
storageBucket: 'sfm-notification.firebasestorage.app',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user