Skip to content

Open Source app for Android and iOS for using Luftdaten.at devices, written in Flutter/Dart.

License

Notifications You must be signed in to change notification settings

luftdaten-at/luftdaten-app

Repository files navigation

Luftdaten App

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.

Table of Contents

  1. Installation
  2. Project Setup
  3. Using the App
  4. Flutter Commands
  5. Contributing
  6. License

Installation

Prerequisites

  • Flutter SDK: You need Flutter to build and run the project. Download Flutter here.
  • Android Studio or Xcode: Install one of these development environments to develop for Android or iOS.
  • Git: You need Git to clone the repository.

Installing Flutter

# 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.

Cloning the Project

git clone https://github.com/luftdaten-at/luftdaten-app.git
cd luftdaten-app

Project Setup

Installing Dependencies

Make sure to install all the required packages:

flutter pub get

Android Configuration

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

iOS Configuration

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

Using the App

Running the App on an Emulator or Device

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.

Building a Release

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.

Flutter Commands

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

Contributing

Contributions to this project are always welcome! To contribute:

  1. Fork this repository.
  2. Create a branch for your feature: git checkout -b feature/YourFeature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to your branch: git push origin feature/YourFeature.
  5. Open a Pull Request.

License

This project is licensed under the AGPL-3.0 license.

About

Open Source app for Android and iOS for using Luftdaten.at devices, written in Flutter/Dart.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published