-
Notifications
You must be signed in to change notification settings - Fork 5
Deploying OpenSchema Android Demo
The repository can be cloned to work locally using git with the following command:
git clone https://github.com/magma/openschema.git
You will need to get values used when deploying your OpenSchema Backend:
-
Get the .crt (server.crt) file you used to deploy OpenSchema Backend and put it inside app/src/main/res/raw/.
-
Create a file named keys.xml inside app/src/main/res/values/ and fill it with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="backend_base_url">YOUR_BACKEND_URL</string>
<string name="backend_username">YOUR_BACKEND_USERNAME</string>
<string name="backend_password">YOUR_BACKEND_PASSWORD</string>
<string name="google_maps_key">YOUR_GOOGLE_MAPS_KEY</string>
</resources>
The demo app uses Firebase Crashlytics to debug crashes. You will need a google-services.json file. This file can be downloaded from the Firebase console after configuring your own project. You might need to change your demo app's package name.
Alternatively, you can disable Crashlytics by removing the following lines at the top of the app's build.gradle
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
You can generate an APK using Android Studio.