Created
December 7, 2021 05:29
-
-
Save mono0926/4976867dd533012588a8558ad15f4d8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File generated by FlutterFire CLI. | |
// ignore_for_file: lines_longer_than_80_chars | |
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; | |
} | |
// ignore: missing_enum_constant_in_switch | |
switch (defaultTargetPlatform) { | |
case TargetPlatform.android: | |
return android; | |
case TargetPlatform.iOS: | |
return ios; | |
case TargetPlatform.macOS: | |
return macos; | |
} | |
throw UnsupportedError( | |
'DefaultFirebaseOptions are not supported for this platform.', | |
); | |
} | |
static const FirebaseOptions web = FirebaseOptions( | |
apiKey: 'xxxxxxxxxxxxxxxxxxx', | |
appId: 'xxxxxxxxxxxxxxxxxxx', | |
messagingSenderId: 'xxxxxxxxxxxxxxxxxxx', | |
projectId: 'xxxxxxxxxxxxxxxxxxx', | |
authDomain: 'xxxxxxxxxxxxxxxxxxx', | |
databaseURL: 'xxxxxxxxxxxxxxxxxxx', | |
storageBucket: 'xxxxxxxxxxxxxxxxxxx', | |
measurementId: 'xxxxxxxxxxxxxxxxxxx', | |
); | |
static const FirebaseOptions android = FirebaseOptions( | |
apiKey: 'xxxxxxxxxxxxxxxxxxx', | |
appId: 'xxxxxxxxxxxxxxxxxxx', | |
messagingSenderId: 'xxxxxxxxxxxxxxxxxxx', | |
projectId: 'xxxxxxxxxxxxxxxxxxx', | |
databaseURL: 'xxxxxxxxxxxxxxxxxxx', | |
storageBucket: 'xxxxxxxxxxxxxxxxxxx', | |
); | |
static const FirebaseOptions ios = FirebaseOptions( | |
apiKey: 'xxxxxxxxxxxxxxxxxxx', | |
appId: 'xxxxxxxxxxxxxxxxxxx', | |
messagingSenderId: 'xxxxxxxxxxxxxxxxxxx', | |
projectId: 'xxxxxxxxxxxxxxxxxxx', | |
databaseURL: 'xxxxxxxxxxxxxxxxxxx', | |
storageBucket: 'xxxxxxxxxxxxxxxxxxx', | |
androidClientId: 'xxxxxxxxxxxxxxxxxxx', | |
iosClientId: 'xxxxxxxxxxxxxxxxxxx', | |
iosBundleId: 'xxxxxxxxxxxxxxxxxxx', | |
); | |
static const FirebaseOptions macos = FirebaseOptions( | |
apiKey: 'xxxxxxxxxxxxxxxxxxx', | |
appId: 'xxxxxxxxxxxxxxxxxxx', | |
messagingSenderId: 'xxxxxxxxxxxxxxxxxxx', | |
projectId: 'xxxxxxxxxxxxxxxxxxx', | |
databaseURL: 'xxxxxxxxxxxxxxxxxxx', | |
storageBucket: 'xxxxxxxxxxxxxxxxxxx', | |
androidClientId: 'xxxxxxxxxxxxxxxxxxx', | |
iosClientId: 'xxxxxxxxxxxxxxxxxxx', | |
iosBundleId: 'xxxxxxxxxxxxxxxxxxx', | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THX