The Luftdaten App is a mobile application that allows users to visualize real-time air quality data based on measurements from air quality sensors. The app is developed using Flutter, an open-source framework by Google that enables cross-platform mobile applications (iOS, Android) to be built from a single codebase.
# On macOS/Linux:
export PATH="$PATH:/path/to/flutter/bin"
# On Windows:
# Add the path to Flutter `C:\path\to\flutter\bin` to your environment variables.
git clone https://github.com/luftdaten-at/luftdaten-app.git
cd luftdaten-app
Make sure to install all the required packages:
flutter pub get
If you are developing for Android, make sure the Android emulator or a physical Android device is set up properly. Check that the Android SDK tools are available:
flutter doctor --android-licenses
If you are developing for iOS, ensure that Xcode and its related tools are correctly installed. You can verify everything is set up by running:
flutter doctor
To run the app on an Android or iOS device/emulator, use the following command:
flutter run
This command will start the app in a debug environment. Ensure a device (either physical or virtual) is connected.
Create a release build of the app:
Android:
flutter build apk
For an App Bundle (recommended for Google Play Store):
flutter build appbundle
iOS:
flutter build ios
Note that building for iOS only works on macOS.
Here are some useful Flutter commands:
Managing dependencies:
flutter pub get
Analyzing the Flutter project:
flutter analyze
Automatically format code:
flutter format .
Running tests:
flutter test
Clean the project (remove old build files):
flutter clean
Contributions to this project are always welcome! To contribute:
git checkout -b feature/YourFeature
.git commit -m 'Add some feature'
.git push origin feature/YourFeature
.This project is licensed under the AGPL-3.0 license.