Table of Contents
Study apps can be helpful for the successful conduct of medical and psychological studies. Especially the use of sensors, for example from smartphones or wearables, can provide useful data to support the study.
Therefore, the development of such apps should be as simple as possible in order to be able to use them without great effort. That's why we develop a smart sensing library, which can be used to easily implement cross-platform apps with Flutter.
This library will be able to track sensors from the smartphone and some wearables, collect the sensor data and save it. Additionally, it will be possible to either get live data or store and process the data.
- Prerequisites:
- Make sure you have Flutter and Dart installed on your development machine
- Check if you are using the latest version of the Flutter framework.
- Clone the project:
- Open the command line or a suitable terminal on your computer.
- Navigate to the desired location for the project.
- Clone the project repository from version control (e.g. Git) using the following command:
git clone https://gitlab.uni-ulm.de/se-anwendungsprojekt-22-23/smart-sensing-library.git
- Install dependencies:
-
Navigate to the root directory of the Flutter project.
-
Run the following command to install the required dependencies:
flutter pub get
-
Execute setup script
On Windows run:.\setup.ps1
On Linux/macOS run:
bash setup.sh
- Configure emulator or device:
- Ensure that an emulator or physical device is properly configured.
- If using a physical device, connect your device via USB and enable developer mode
- Start the application:
- Open the command line or terminal and navigate to the example directory of the Flutter project.
- Execute the following command to start the Flutter application:
flutter run
Note: Please ensure you have a stable internet connection to successfully download the dependencies during installation. Make sure all required SDKs and tools are up to date to ensure a smooth installation process.
We use an .editorconfig
file to define coding styles in this repo.
In order to apply to these coding style, following IDEs/editors need to be configured:
- VSCode: The plugin EditorConfig for VS Code needs to be installed
- Android Studio: Enable EditorConfig support by navigating to
Settings
->Editor
->Code Style
and checkEnable EditorConfig support