From 122dd10c4c9fbcb8ea27ea6b4b57f558d91ccd79 Mon Sep 17 00:00:00 2001 From: joschy2002 Date: Thu, 15 May 2025 14:55:05 +0200 Subject: [PATCH] firebase initialisiert --- trainerbox/firebase.json | 42 +++++++++++++++++++++++++++- trainerbox/lib/firebase_options.dart | 12 ++------ 2 files changed, 43 insertions(+), 11 deletions(-) diff --git a/trainerbox/firebase.json b/trainerbox/firebase.json index f80f34c..f7b0464 100644 --- a/trainerbox/firebase.json +++ b/trainerbox/firebase.json @@ -1 +1,41 @@ -{"flutter":{"platforms":{"android":{"default":{"projectId":"trainerbox-ad7df","appId":"1:230191525153:android:e81aa0f25d5e49ff41e260","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"trainerbox-ad7df","appId":"1:230191525153:ios:256587ef2d8bdf9d41e260","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"macos":{"default":{"projectId":"trainerbox-ad7df","appId":"1:230191525153:ios:256587ef2d8bdf9d41e260","uploadDebugSymbols":false,"fileOutput":"macos/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"trainerbox-ad7df","configurations":{"android":"1:230191525153:android:e81aa0f25d5e49ff41e260","ios":"1:230191525153:ios:256587ef2d8bdf9d41e260","macos":"1:230191525153:ios:256587ef2d8bdf9d41e260","web":"1:230191525153:web:b2af0668c903a80141e260","windows":"1:230191525153:web:4141eb2fcce10e9841e260"}}}}}} \ No newline at end of file +{ + "flutter": { + "platforms": { + "android": { + "default": { + "projectId": "trainerbox-ad7df", + "appId": "1:230191525153:android:e81aa0f25d5e49ff41e260", + "fileOutput": "android/app/google-services.json" + } + }, + "ios": { + "default": { + "projectId": "trainerbox-ad7df", + "appId": "1:230191525153:ios:256587ef2d8bdf9d41e260", + "uploadDebugSymbols": false, + "fileOutput": "ios/Runner/GoogleService-Info.plist" + } + }, + "macos": { + "default": { + "projectId": "trainerbox-ad7df", + "appId": "1:230191525153:ios:256587ef2d8bdf9d41e260", + "uploadDebugSymbols": false, + "fileOutput": "macos/Runner/GoogleService-Info.plist" + } + }, + "dart": { + "lib/firebase_options.dart": { + "projectId": "trainerbox-ad7df", + "configurations": { + "android": "1:230191525153:android:e81aa0f25d5e49ff41e260", + "ios": "1:230191525153:ios:256587ef2d8bdf9d41e260", + "macos": "1:230191525153:ios:256587ef2d8bdf9d41e260", + "web": "1:230191525153:web:b2af0668c903a80141e260", + "windows": "1:230191525153:web:4141eb2fcce10e9841e260" + } + } + } + } + } +} \ No newline at end of file diff --git a/trainerbox/lib/firebase_options.dart b/trainerbox/lib/firebase_options.dart index 883247b..7196b7e 100644 --- a/trainerbox/lib/firebase_options.dart +++ b/trainerbox/lib/firebase_options.dart @@ -3,17 +3,9 @@ import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb, TargetPlatform; +import 'package:firebase_core/firebase_core.dart'; + -/// Default [FirebaseOptions] for use with your Firebase apps. -/// -/// Example: -/// ```dart -/// import 'firebase_options.dart'; -/// // ... -/// await Firebase.initializeApp( -/// options: DefaultFirebaseOptions.currentPlatform, -/// ); -/// ``` class DefaultFirebaseOptions { static FirebaseOptions get currentPlatform { if (kIsWeb) {