Skip to content

Instantly share code, notes, and snippets.

@KAsare1
Forked from mono0926/firebase_options.dart
Created December 7, 2022 18:12
Show Gist options
  • Save KAsare1/8aaa0cf30bf727d7306e1d5a2b70cb70 to your computer and use it in GitHub Desktop.
Save KAsare1/8aaa0cf30bf727d7306e1d5a2b70cb70 to your computer and use it in GitHub Desktop.
// 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