Native Android application responsible for OCARIoT platform data acquisition. The application acts as an external services access token manager. Currently, only Fitbit service is available.
MAIN FEATURES:
- Fitbit access token management:
- The Educator and the Health Professional can grant the OCARIoT platform permission to collect Fitbit data from children who have privileges to manage their data according to the consent of those responsible;
- Support to request collection of Fitbit data from the child at any time, automatically saving to the OCARIoT platform;
- Revocation of permission to collect Fitbit data.
- Display of data saved on the OCARIoT platform:
- Physical activity;
- Sleep;
- Weight.
- Display of heart rate data collected in real time. Supported devices:
- Polar OH1;
- H10.
- Android SDK v29
- Latest Android Studio 3.5+
-
Clone this repository and import into Android Studio
git clone https://github.com/ocariot/da-app.git
-
Set up the environment:
- Make a copy of the
gradle.properties.example
file in the/app
directory namedgradle.properties
(This file will not be tracked by git because it is in .gitignore). - Change the values of the variables you find necessary according to your development and production environment.
- Make a copy of the
-
Add the Firebase Android configuration file:
- Sign in to Firebase, then open your project and click Download
google-services.json
to obtain your Firebase Android config file. - Move your config file into the module (app-level) directory of your app.
- Sign in to Firebase, then open your project and click Download
-
Open project in Android Studio:
- From the Android Studio menu, click File > Open.
- Alternatively, on the "Welcome" screen, click > Open an existing Android Studio project.
- Select the project folder and click OK.
From Android Studio:
- Build menu
- Generate Signed APK...
- Fill in the keystore information (you only need to do this once manually and then let Android Studio remember it)
- Fork it
- Create your feature branch
git checkout -b my-new-feature
- Commit your changes
git commit -m 'Add some feature
- Push your branch
git push origin my-new-feature
- Create a new Pull Request