Files
mobile-app/lib/config/firebase_config.dart

49 lines
1.5 KiB
Dart
Raw Normal View History

import 'package:firebase_core/firebase_core.dart';
import 'package:real_estate_mobile/config/app_config.dart';
class FirebaseConfig {
static FirebaseOptions get currentOptions {
switch (AppConfig.flavor) {
case Flavor.dev:
return _dev;
case Flavor.demo:
return _demo;
case Flavor.local:
return _local;
}
}
// ── Dev ──
static const _dev = FirebaseOptions(
apiKey: 'AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc', // Android
appId: '1:703616926518:android:4342b796fbabb690fca997',
messagingSenderId: '703616926518',
projectId: 'real-estate-2d71e',
storageBucket: 'real-estate-2d71e.firebasestorage.app',
iosBundleId: 'com.requestn.realEstateMobile.dev',
iosClientId: null,
);
// ── Demo ──
static const _demo = FirebaseOptions(
apiKey: 'AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc',
appId: '1:703616926518:android:270639d6887d2cb4fca997',
messagingSenderId: '703616926518',
projectId: 'real-estate-2d71e',
storageBucket: 'real-estate-2d71e.firebasestorage.app',
iosBundleId: 'com.requestn.realEstateMobile.demo',
iosClientId: null,
);
// ── Local ──
static const _local = FirebaseOptions(
apiKey: 'AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc',
appId: '1:703616926518:android:2eb242f07b174c25fca997',
messagingSenderId: '703616926518',
projectId: 'real-estate-2d71e',
storageBucket: 'real-estate-2d71e.firebasestorage.app',
iosBundleId: 'com.requestn.realEstateMobile.local',
iosClientId: null,
);
}