TKK_E32232198/lib/firebase_options.dart

35 lines
1.2 KiB
Dart

import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for web - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
'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: 'AIzaSyC3yrsyuyRX75XCFa28b-KtleshKNfRN9c',
appId: '1:866516546620:android:6b518459a19a373e5eff39',
messagingSenderId: '866516546620',
projectId: 'monitoring-ikan-guppy',
storageBucket: 'monitoring-ikan-guppy.firebasestorage.app',
);
}