Skip to content

Commit

Permalink
uncomment firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderNamedHendrick committed Sep 25, 2024
1 parent d46a3c1 commit 78fa829
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 73 deletions.
136 changes: 68 additions & 68 deletions packages/conferenceapp/lib/firebase_options.dart
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
// // 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: 'AIzaSyCr4B0zjDqTjrx8Gz0F4qUbl87ndx73ubw',
// appId: '1:704850365731:android:e0c6a0d363859091639096',
// messagingSenderId: '704850365731',
// projectId: 'devfest24-810f5',
// storageBucket: 'devfest24-810f5.appspot.com',
// );
//
// static const FirebaseOptions ios = FirebaseOptions(
// apiKey: 'AIzaSyCFQOapCU0ULEvXyHF33twV-HRH9Ihfo-o',
// appId: '1:704850365731:ios:b21c6058ccb3e0c3639096',
// messagingSenderId: '704850365731',
// projectId: 'devfest24-810f5',
// storageBucket: 'devfest24-810f5.appspot.com',
// iosBundleId: 'com.devfestlagos.conferenceapp',
// );
// }
// 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: 'AIzaSyCr4B0zjDqTjrx8Gz0F4qUbl87ndx73ubw',
appId: '1:704850365731:android:e0c6a0d363859091639096',
messagingSenderId: '704850365731',
projectId: 'devfest24-810f5',
storageBucket: 'devfest24-810f5.appspot.com',
);

static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyCFQOapCU0ULEvXyHF33twV-HRH9Ihfo-o',
appId: '1:704850365731:ios:b21c6058ccb3e0c3639096',
messagingSenderId: '704850365731',
projectId: 'devfest24-810f5',
storageBucket: 'devfest24-810f5.appspot.com',
iosBundleId: 'com.devfestlagos.conferenceapp',
);
}
10 changes: 5 additions & 5 deletions packages/conferenceapp/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import 'conference_app.dart';
// import 'firebase_options.dart';
import 'firebase_options.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand All @@ -16,9 +16,9 @@ void main() async {
);
SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}
// await Firebase.initializeApp(
// options: DefaultFirebaseOptions.currentPlatform,
// );
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);

runApp(const ProviderScope(child: ConferenceApp()));
}

0 comments on commit 78fa829

Please sign in to comment.