feat: migrate prosapp_web_app from Firebase to NestJS API
- Replace Firebase Auth with JWT stored in SharedPreferences - Replace Firestore with REST API calls via new ApiService - Replace Firebase Storage with POST /storage/upload - Remove firebase_auth, firebase_core, cloud_firestore, firebase_storage, firebase_messaging, google_sign_in deps - Add api_service.dart as central HTTP client Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
1c20d0c0cd
commit
b95e0630de
@@ -1,89 +1,2 @@
|
||||
// File generated by FlutterFire CLI.
|
||||
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
|
||||
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) {
|
||||
return web;
|
||||
}
|
||||
switch (defaultTargetPlatform) {
|
||||
case TargetPlatform.android:
|
||||
return android;
|
||||
case TargetPlatform.iOS:
|
||||
return ios;
|
||||
case TargetPlatform.macOS:
|
||||
return macos;
|
||||
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 web = FirebaseOptions(
|
||||
apiKey: 'AIzaSyCNpUV_4cMEL9QZx7NESXK7QAlRjRGwx_Y',
|
||||
appId: '1:245204384533:web:1b8f0b4c1d9ae21d9f871c',
|
||||
messagingSenderId: '245204384533',
|
||||
projectId: 'prosapp-5747a',
|
||||
authDomain: 'prosapp-5747a.firebaseapp.com',
|
||||
databaseURL: 'https://prosapp-5747a-default-rtdb.firebaseio.com',
|
||||
storageBucket: 'prosapp-5747a.appspot.com',
|
||||
measurementId: 'G-EVBEQRZEDY',
|
||||
);
|
||||
|
||||
static const FirebaseOptions android = FirebaseOptions(
|
||||
apiKey: 'AIzaSyBp7vsJvD6oXz0FORBLEeIELwId4a2onHQ',
|
||||
appId: '1:245204384533:android:e01772831d86f5c79f871c',
|
||||
messagingSenderId: '245204384533',
|
||||
projectId: 'prosapp-5747a',
|
||||
databaseURL: 'https://prosapp-5747a-default-rtdb.firebaseio.com',
|
||||
storageBucket: 'prosapp-5747a.appspot.com',
|
||||
);
|
||||
|
||||
static const FirebaseOptions ios = FirebaseOptions(
|
||||
apiKey: 'AIzaSyDUhnkNkeEPkqcwVo5EWr63q3oEX6bDGic',
|
||||
appId: '1:245204384533:ios:1d58f5624d0df4859f871c',
|
||||
messagingSenderId: '245204384533',
|
||||
projectId: 'prosapp-5747a',
|
||||
databaseURL: 'https://prosapp-5747a-default-rtdb.firebaseio.com',
|
||||
storageBucket: 'prosapp-5747a.appspot.com',
|
||||
androidClientId: '245204384533-04oabs744hp8fjbdreijp4h16nvfmeti.apps.googleusercontent.com',
|
||||
iosClientId: '245204384533-nv7e2n7d4vj5kfkc55mlmiiju0ch2qhn.apps.googleusercontent.com',
|
||||
iosBundleId: 'com.example.prosappco',
|
||||
);
|
||||
|
||||
static const FirebaseOptions macos = FirebaseOptions(
|
||||
apiKey: 'AIzaSyDUhnkNkeEPkqcwVo5EWr63q3oEX6bDGic',
|
||||
appId: '1:245204384533:ios:1d58f5624d0df4859f871c',
|
||||
messagingSenderId: '245204384533',
|
||||
projectId: 'prosapp-5747a',
|
||||
databaseURL: 'https://prosapp-5747a-default-rtdb.firebaseio.com',
|
||||
storageBucket: 'prosapp-5747a.appspot.com',
|
||||
androidClientId: '245204384533-04oabs744hp8fjbdreijp4h16nvfmeti.apps.googleusercontent.com',
|
||||
iosClientId: '245204384533-nv7e2n7d4vj5kfkc55mlmiiju0ch2qhn.apps.googleusercontent.com',
|
||||
iosBundleId: 'com.example.prosappco',
|
||||
);
|
||||
}
|
||||
// ponytail: Firebase removed; this file is kept as an empty stub so any lingering references compile.
|
||||
// No imports, no exports needed.
|
||||
|
||||
Reference in New Issue
Block a user