A workout app for Android written in Flutter and Firebase.
- Set up Flutter with the editor of your choice.
- Create a Firebase account
- Set up a Firebase project for knuffiworkout.
Instructions for creating a Firebase project in Flutter can be found in the Codelab.
Make sure to follow through steps 5 and 6:
- The Android package name should match
AndroidManifest.xml
(per default de.fmutzel.knuffiworkout) - Add SHA fingerprints for your projects as described in Authenticating your Client.
- Download
google-services.json
from the Firebase console and place it in android/app.
- The Android package name should match
- Configure your Firebase project to allow sign-in with Google in the Authentication tab.
- Create a Firebase database and set up rules to allow read/write access for each user's data:
{
"rules": {
"user": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
- Run the project using
flutter run
or open it in your IDE.
Pull requests welcome! :)
I don't have an iOS device (nor do I have an Apple developer account or a Mac with XCode), so the iOS code is just the default from the Flutter framework.
The built_value .g.dart
files can be regenerated from the corresponding .dart
files using
flutter packages pub run build_runner build --delete-conflicting-outputs
For signing release builds, you need a keystore and some additional information in android/key.properties
.
Instructions can be found on the Flutter homepage under "Signing the app".
- Presets for other popular workouts (5x5, Starting Strength, ...)