41b0180b44
flutterfire configure registered the iOS/Android apps under project block-seasons and generated firebase_options.dart + native config. main() now initializes Firebase and routes analytics through FirebaseAnalyticsBackend in release builds (console logger in debug, so dev traffic never pollutes GA4). Firebase init is guarded — failure falls back to the debug logger rather than blocking startup. firebase.json keeps the existing Hosting config and gains the FlutterFire platform section. Client config files are committed (they ship in the binary; Firebase security is enforced by rules, not config secrecy). flutter analyze clean, all 161 tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
69 lines
2.3 KiB
Dart
69 lines
2.3 KiB
Dart
// 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:
|
|
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 android = FirebaseOptions(
|
|
apiKey: 'AIzaSyCd_3Tw5IxlO6ysp3XMQ9tBsOM1yMYl2MU',
|
|
appId: '1:190209969950:android:e08dc30877b1821b44c30f',
|
|
messagingSenderId: '190209969950',
|
|
projectId: 'block-seasons',
|
|
storageBucket: 'block-seasons.firebasestorage.app',
|
|
);
|
|
|
|
static const FirebaseOptions ios = FirebaseOptions(
|
|
apiKey: 'AIzaSyAIl2LM2fDrr7OH70K7uJnAwKwXMzPCBMI',
|
|
appId: '1:190209969950:ios:f9d4578ec86f92c844c30f',
|
|
messagingSenderId: '190209969950',
|
|
projectId: 'block-seasons',
|
|
storageBucket: 'block-seasons.firebasestorage.app',
|
|
iosBundleId: 'com.airkjw.blockseasons',
|
|
);
|
|
}
|