63 lines
2.3 KiB
Dart
63 lines
2.3 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) {
|
|
return web;
|
|
}
|
|
switch (defaultTargetPlatform) {
|
|
case TargetPlatform.android:
|
|
return android;
|
|
case TargetPlatform.iOS:
|
|
return ios;
|
|
case TargetPlatform.macOS:
|
|
return macos;
|
|
case TargetPlatform.windows:
|
|
return web;
|
|
default:
|
|
throw UnsupportedError('DefaultFirebaseOptions are not supported for this platform.');
|
|
}
|
|
}
|
|
|
|
static const FirebaseOptions web = FirebaseOptions(
|
|
apiKey: 'AIzaSyBDgAc6RhZ-fBWDUCgMTcv-abMuXv9xpTc',
|
|
appId: '1:118937325550:web:45e635b9aa8c432cebc8ff',
|
|
messagingSenderId: '118937325550',
|
|
projectId: 'timbangan-ae018',
|
|
authDomain: 'timbangan-ae018.firebaseapp.com',
|
|
databaseURL: 'https://timbangan-ae018-default-rtdb.firebaseio.com',
|
|
storageBucket: 'timbangan-ae018.firebasestorage.app',
|
|
measurementId: 'G-NMSQ1VXK02',
|
|
);
|
|
|
|
static const FirebaseOptions android = FirebaseOptions(
|
|
apiKey: 'AIzaSyD4d8iQGuSVDt0Sy2SCJf43Qe4MgOtvfgA',
|
|
appId: '1:118937325550:android:1d1483c3e12deb03ebc8ff',
|
|
messagingSenderId: '118937325550',
|
|
projectId: 'timbangan-ae018',
|
|
databaseURL: 'https://timbangan-ae018-default-rtdb.firebaseio.com',
|
|
storageBucket: 'timbangan-ae018.firebasestorage.app',
|
|
);
|
|
|
|
static const FirebaseOptions ios = FirebaseOptions(
|
|
apiKey: 'AIzaSyDQ0zYJrQqCMrAU0-iO0qtCmXCR3wnG0wc',
|
|
appId: '1:118937325550:ios:dae2703f66fed9f1ebc8ff',
|
|
messagingSenderId: '118937325550',
|
|
projectId: 'timbangan-ae018',
|
|
databaseURL: 'https://timbangan-ae018-default-rtdb.firebaseio.com',
|
|
storageBucket: 'timbangan-ae018.firebasestorage.app',
|
|
iosBundleId: 'com.example.tugasakhir',
|
|
);
|
|
|
|
static const FirebaseOptions macos = FirebaseOptions(
|
|
apiKey: 'AIzaSyDQ0zYJrQqCMrAU0-iO0qtCmXCR3wnG0wc',
|
|
appId: '1:118937325550:ios:dae2703f66fed9f1ebc8ff',
|
|
messagingSenderId: '118937325550',
|
|
projectId: 'timbangan-ae018',
|
|
databaseURL: 'https://timbangan-ae018-default-rtdb.firebaseio.com',
|
|
storageBucket: 'timbangan-ae018.firebasestorage.app',
|
|
iosBundleId: 'com.example.tugasakhir',
|
|
);
|
|
}
|