This Gist hopes to document my efforts to try and get past the Firebase Setup Step of the Fireship.io Flutter course and to understand Flutter and Fireship
From Step 3 of CodeLab Firebase get to know Flutter
See also Firebase docs here
firebase
command line tool- Have created a Firebase project
- Be logged in from the command line
flutter pub add firebase_core
flutter pub add firebase_auth
flutter pub add cloud_firestore
flutter pub add provider
dart pub global activate flutterfire_cli
flutterfire configure
This should add all the files and configs needed for the course:
android/app/google-services.json
android/app/src/main/java/
ios/firebase_app_id_file.json
lib/firebase_options.dart
Add the following to the file ./android/app/build.gradle
android {
defaultConfig {
minSdkVersion 19
} }
}
- From the FireStore Project settings, download the IOS
GoogleService-Info.plist
file. - Open your Flutter Project
./ios
directory in Xcode - Copy
GoogleService-Info.plist
to the./Runner
directory - A dialog will appear, make sure
Copy items if needed
is selected and pressFinish
In ./ios/Podfile
add or uncomment the following line and set the platform to 11.0
or whatever is appropriate.
platform :ios, '11.0'
After making any app configuration changes it helps to run flutterfire configure
just to be sure 😉
flutter run