[x] Imported firebase_core and called Firebase.initializeApp() in main.dart
[x] Updated Gradle version to 5.4.1 in gradle-wrapper.properties
[x] Updated firebase_auth, cloud_firestore to latest versions
[x] Migrated all FirebaseAuth and Firestore code. As part of this, removed the User class (now using User from firebase_auth instead).
[x] Replaced flutter_facebook_login with flutter_login_facebook and updated code using this.
[x] Made LandingPage more testable by adding a databaseBuilder argument + fixed tests
[x] Removed PlatformWidget, PlatformAlertDialog, PlatformExceptionAlertDialog. Replaced with showAlertDialog, showExceptionAlertDialog
[x] All exception handling code now works with FirebaseException rather than PlatformException
Note: Following this updated, this error is printed when launching the app on Android:
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project.
Included changes:
firebase_core
and calledFirebase.initializeApp()
inmain.dart
gradle-wrapper.properties
firebase_auth
,cloud_firestore
to latest versionsUser
class (now usingUser
fromfirebase_auth
instead).flutter_facebook_login
withflutter_login_facebook
and updated code using this.LandingPage
more testable by adding adatabaseBuilder
argument + fixed testsPlatformWidget
,PlatformAlertDialog
,PlatformExceptionAlertDialog
. Replaced withshowAlertDialog
,showExceptionAlertDialog
FirebaseException
rather thanPlatformException
Note: Following this updated, this error is printed when launching the app on Android:
This will be addressed separately.