eigentliche Handwerksapp
This commit is contained in:
49
firebase_options.dart
Normal file
49
firebase_options.dart
Normal file
@@ -0,0 +1,49 @@
|
||||
// Ersetze diese Datei durch die Ausgabe von:
|
||||
// dart pub global activate flutterfire_cli
|
||||
// flutterfire configure
|
||||
// Bis dahin: Platzhalter-Werte (Auth schlägt ohne echtes Firebase-Projekt fehl).
|
||||
|
||||
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(
|
||||
'Screen 1: Bitte zuerst iOS- oder Android-Gerät/Simulator nutzen '
|
||||
'(oder Web in Firebase anlegen + flutterfire configure).',
|
||||
);
|
||||
}
|
||||
switch (defaultTargetPlatform) {
|
||||
case TargetPlatform.android:
|
||||
return android;
|
||||
case TargetPlatform.iOS:
|
||||
return ios;
|
||||
case TargetPlatform.macOS:
|
||||
// Entwicklung: gleiche Firebase-App wie iOS (flutterfire configure mit macOS ergänzen).
|
||||
return ios;
|
||||
default:
|
||||
throw UnsupportedError(
|
||||
'Nur iOS und Android sind für Screen 1 vorgesehen.',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
static const FirebaseOptions android = FirebaseOptions(
|
||||
apiKey: 'REPLACE_ME',
|
||||
appId: '1:000000000000:android:0000000000000000000000',
|
||||
messagingSenderId: '000000000000',
|
||||
projectId: 'handwerksapp-placeholder',
|
||||
storageBucket: 'handwerksapp-placeholder.appspot.com',
|
||||
);
|
||||
|
||||
static const FirebaseOptions ios = FirebaseOptions(
|
||||
apiKey: 'REPLACE_ME',
|
||||
appId: '1:000000000000:ios:0000000000000000000000',
|
||||
messagingSenderId: '000000000000',
|
||||
projectId: 'handwerksapp-placeholder',
|
||||
storageBucket: 'handwerksapp-placeholder.appspot.com',
|
||||
iosBundleId: 'com.example.handwerksapp',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user