Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
// File generated by Krow Coding Agent to fix Web Runtime Error.
|
// File generated by FlutterFire CLI.
|
||||||
// Please update the appId for Web with the correct value from Firebase Console.
|
|
||||||
|
|
||||||
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
||||||
import 'package:flutter/foundation.dart'
|
import 'package:flutter/foundation.dart'
|
||||||
show kIsWeb;
|
show defaultTargetPlatform, kIsWeb, TargetPlatform;
|
||||||
|
|
||||||
/// Default [FirebaseOptions] for use with your Firebase apps.
|
/// Default [FirebaseOptions] for use with your Firebase apps.
|
||||||
///
|
///
|
||||||
@@ -20,19 +19,56 @@ class DefaultFirebaseOptions {
|
|||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
return web;
|
return web;
|
||||||
}
|
}
|
||||||
throw UnsupportedError(
|
switch (defaultTargetPlatform) {
|
||||||
'DefaultFirebaseOptions are not supported for this platform.',
|
case TargetPlatform.android:
|
||||||
);
|
return android;
|
||||||
|
case TargetPlatform.iOS:
|
||||||
|
return ios;
|
||||||
|
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 web = FirebaseOptions(
|
static const FirebaseOptions web = FirebaseOptions(
|
||||||
apiKey: 'AIzaSyBqRtZPMGU-Sz5x5UnRrunKu5NSWYyPRn8',
|
apiKey: 'AIzaSyBqRtZPMGU-Sz5x5UnRrunKu5NSWYyPRn8',
|
||||||
// TODO: STOP! You must replace this placeholder with the actual Web App ID from your Firebase Console.
|
appId: '1:933560802882:web:173a841992885bb27757db',
|
||||||
// Go to Project Settings -> General -> Your apps -> Web App -> appId
|
|
||||||
appId: '1:933560802882:web:173a841992885bb27757db',
|
|
||||||
messagingSenderId: '933560802882',
|
messagingSenderId: '933560802882',
|
||||||
projectId: 'krow-workforce-dev',
|
projectId: 'krow-workforce-dev',
|
||||||
authDomain: 'krow-workforce-dev.firebaseapp.com',
|
authDomain: 'krow-workforce-dev.firebaseapp.com',
|
||||||
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static const FirebaseOptions android = FirebaseOptions(
|
||||||
|
apiKey: 'AIzaSyDBYhflhK6DThKnS7RM-9raKdvyKzLUjY4',
|
||||||
|
appId: '1:933560802882:android:da13569105659ead7757db',
|
||||||
|
messagingSenderId: '933560802882',
|
||||||
|
projectId: 'krow-workforce-dev',
|
||||||
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
|
);
|
||||||
|
|
||||||
|
static const FirebaseOptions ios = FirebaseOptions(
|
||||||
|
apiKey: 'AIzaSyDyEXkzZAWpXXe4dAesYaZflt5BEtMn9tA',
|
||||||
|
appId: '1:933560802882:ios:d2b6d743608e2a527757db',
|
||||||
|
messagingSenderId: '933560802882',
|
||||||
|
projectId: 'krow-workforce-dev',
|
||||||
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
|
iosBundleId: 'com.krowwithus.client',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
// File generated by Krow Coding Agent to fix Web Runtime Error.
|
// File generated by FlutterFire CLI.
|
||||||
// Please update the appId for Web with the correct value from Firebase Console.
|
|
||||||
|
|
||||||
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
|
||||||
import 'package:flutter/foundation.dart'
|
import 'package:flutter/foundation.dart'
|
||||||
show kIsWeb;
|
show defaultTargetPlatform, kIsWeb, TargetPlatform;
|
||||||
|
|
||||||
/// Default [FirebaseOptions] for use with your Firebase apps.
|
/// Default [FirebaseOptions] for use with your Firebase apps.
|
||||||
///
|
///
|
||||||
@@ -20,17 +19,56 @@ class DefaultFirebaseOptions {
|
|||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
return web;
|
return web;
|
||||||
}
|
}
|
||||||
throw UnsupportedError(
|
switch (defaultTargetPlatform) {
|
||||||
'DefaultFirebaseOptions are not supported for this platform.',
|
case TargetPlatform.android:
|
||||||
);
|
return android;
|
||||||
|
case TargetPlatform.iOS:
|
||||||
|
return ios;
|
||||||
|
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 web = FirebaseOptions(
|
static const FirebaseOptions web = FirebaseOptions(
|
||||||
apiKey: 'AIzaSyBqRtZPMGU-Sz5x5UnRrunKu5NSWYyPRn8',
|
apiKey: 'AIzaSyBqRtZPMGU-Sz5x5UnRrunKu5NSWYyPRn8',
|
||||||
appId: '1:933560802882:web:4508ef1ee6d4e6907757db',
|
appId: '1:933560802882:web:4508ef1ee6d4e6907757db',
|
||||||
messagingSenderId: '933560802882',
|
messagingSenderId: '933560802882',
|
||||||
projectId: 'krow-workforce-dev',
|
projectId: 'krow-workforce-dev',
|
||||||
authDomain: 'krow-workforce-dev.firebaseapp.com',
|
authDomain: 'krow-workforce-dev.firebaseapp.com',
|
||||||
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static const FirebaseOptions android = FirebaseOptions(
|
||||||
|
apiKey: 'AIzaSyDBYhflhK6DThKnS7RM-9raKdvyKzLUjY4',
|
||||||
|
appId: '1:933560802882:android:d49b8c0f4d19e95e7757db',
|
||||||
|
messagingSenderId: '933560802882',
|
||||||
|
projectId: 'krow-workforce-dev',
|
||||||
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
|
);
|
||||||
|
|
||||||
|
static const FirebaseOptions ios = FirebaseOptions(
|
||||||
|
apiKey: 'AIzaSyDyEXkzZAWpXXe4dAesYaZflt5BEtMn9tA',
|
||||||
|
appId: '1:933560802882:ios:fa584205b356de937757db',
|
||||||
|
messagingSenderId: '933560802882',
|
||||||
|
projectId: 'krow-workforce-dev',
|
||||||
|
storageBucket: 'krow-workforce-dev.firebasestorage.app',
|
||||||
|
iosBundleId: 'com.krowwithus.staff',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
1665
docs/QA_TESTING_CHECKLIST.md
Normal file
1665
docs/QA_TESTING_CHECKLIST.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user