Made with :heartbeat: from Nepal
A project you can clone to build your next project with Flutter with Firebase services.
How to start your project based on this.
Clone this repository locally. The folder structure is somewhat based on clean code architecture
Delete .git
folder to clear git history
Using change_app_package_name
package change the package name to whatever you want your package name to be
For changing iOS package name use the text editors Find and Replace in whole project folder where you need to find com.popupbits.firebasestarter
and with the package name you want
Using the same Find and replace in whole project folder search for firebasestarter
(package name for dart/flutter project) and replace it with your own suitable name. (check the flutter package naming standards for acceptable format)
Using the same Find and replace in whole project folder search for Firebase Starter
(display name, launcher name) and replace it with your own suitable name for your app
Copy google-services.json
for dev firebase project in android/app/src/dev/
and prod firebase project in android/app/src/prod/
Copy GoogleService-Info.plist
for dev firebase project in ios/Runner/firebase/dev/
and prod firebase project in ios/Runner/firebase/prod
For android signing, modify android/key.properties
with your signing details and replace keys/keystore.jks
with your own keystore or provide different location in android/key.properties
for your keystore
For google sign in to work copy value of REVERSED_CLIENT_ID
from appropriate (dev, prod) GoogleService-Info.plist
and paste in Xcode->Target Runner->Build Settings tab -> GSI_CLIENT_ID user defined variable. Value for Debug-dev
and Release-dev
configuration should be the one from dev GoogleService-Info.plist
and rest should be from prod GoogleService-Info.plist
For push notifications to work on iOS, you need to follow following two steps as described in firebase_messaging iOS integration section
Flutter Intl: Add locale
to add new locale, Tools | Flutter Intl
menu and find Add Locale
command.Contribution (suggestions, issues, feature request, pull requests) are highly welcome. Also looking for help in making it testable by adding unit, widget and integration tests.