BioFlux/lib/adstools/firebase_optiongs.dart
2026-01-22 16:33:07 +08:00

34 lines
1.1 KiB
Dart

import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart' show defaultTargetPlatform, TargetPlatform;
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
default:
throw UnsupportedError('Unsupported platform');
}
}
static const FirebaseOptions android = FirebaseOptions(
apiKey: 'YOUR_ANDROID_API_KEY',
appId: 'YOUR_ANDROID_APP_ID',
messagingSenderId: 'YOUR_ANDROID_MESSAGING_SENDER_ID',
projectId: 'YOUR_PROJECT_ID',
storageBucket: 'YOUR_STORAGE_BUCKET',
);
static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyCZhzNo-5oukRLhs8yZ2nI9_AX6yrWELq8',
appId: '1:560733077413:ios:c1e6831284a2d5f6f1324c',
messagingSenderId: '560733077413',
projectId: 'bioflux-bb331',
storageBucket: 'bioflux-bb331.firebasestorage.app',
iosBundleId: 'com.bioFluxSmart.bioFluxSmart',
);
}