- Install the Android SDK via the Android plugin or Android Studio
- Install fvm (flutter version manager)
- Install flutter
fvm install
- [Optional] Open IntelliJ settings and
- Install the Android plugin and set the Android SDK path
- Install the Dart plugin and set the Dart SDK path
- Install the Flutter plugin and set the Flutter SDK path
There are two options to connect your app to the Grüne API for development:
- Generate an access token for the staging Grüne API
- Copy staging environment
cp .env.staging .env
- Add your
GRUENE_API_ACCESS_TOKEN
to.env
- Make sure the Grüne API is setup and running. For documentation on the necessary steps, refer to the Grüne API README.
- Configure local environment
cp .env.dev .env
- Update translations
fvm dart run slang
- Run build runner to update API definitions
fvm dart run build_runner build
- [Optional] If you are running the app on a real device and use a local Grüne API, you need to expose the ports:
adb reverse tcp:8080 tcp:8080 && adb reverse tcp:5000 tcp:5000
- Run the app (
development
)