From 04f3090c5e93f5fcbf7bbcc7a86d6fb76130126a Mon Sep 17 00:00:00 2001 From: Italo Matos Date: Wed, 21 Aug 2024 19:59:07 -0300 Subject: [PATCH] hide firebase options --- lib/firebase_options.dart | 61 --------------------------------------- 1 file changed, 61 deletions(-) diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index 7d9c2f2..8b13789 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -1,62 +1 @@ -// File generated by FlutterFire CLI. -// ignore_for_file: type=lint -import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; -import 'package:flutter/foundation.dart' - show defaultTargetPlatform, kIsWeb, TargetPlatform; -/// 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) { - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for web - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); - } - switch (defaultTargetPlatform) { - case TargetPlatform.android: - return android; - case TargetPlatform.iOS: - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for ios - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); - case TargetPlatform.macOS: - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for macos - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); - case TargetPlatform.windows: - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for windows - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); - case TargetPlatform.linux: - throw UnsupportedError( - 'DefaultFirebaseOptions have not been configured for linux - ' - 'you can reconfigure this by running the FlutterFire CLI again.', - ); - default: - throw UnsupportedError( - 'DefaultFirebaseOptions are not supported for this platform.', - ); - } - } - - static const FirebaseOptions android = FirebaseOptions( - apiKey: 'AIzaSyAeOmRf75mRRVoXO1g4cm6wqVUoOuUf97I', - appId: '1:767599767515:android:f96dbb868c7ca38e1e81fe', - messagingSenderId: '767599767515', - projectId: 'teste-firebase-zenith', - storageBucket: 'teste-firebase-zenith.appspot.com', - ); -}