Opening the Project
- Fork the project and clone it to your local machine.
- Open the project in Android Studio.
- Android Studio will automatically create
local.properties
file with Android SDK path. (If not, create it manually.)
Building the project​
This is a multi-step process, which requires you to have multiple accounts from Google and Mapbox.
Aquire the necessary keys​
You will need the following confidential keys and files to build the project:
- Firebase
google-services.json
. Tutorial here. - Mapbox
MAPBOX_ACCESS_TOKEN
,MAPBOX_DOWNLOADS_TOKEN
,SDK_REGISTRY_TOKEN
. Tutorial here. - AdMob
ADMOB_APPLICATION_ID
andADMOB_AD_UNIT_ID
. Tutorial here. - Release and debug keys for signing the app, which can be created using Android Studio.
Referencing release and debug keys​
Reference your release and debug keys in local.properties
.
RELEASE_KEYSTORE_PASSWORD=your_keystore_password
RELEASE_KEY_PASSWORD=your_key_password
RELEASE_KEY_ALIAS=your_key_alias
RELEASE_KEY_PATH=your_key_path
DEBUG_KEYSTORE_PASSWORD=your_keystore_password
DEBUG_KEY_PASSWORD=your_key_password
DEBUG_KEY_ALIAS=your_key_alias
DEBUG_KEY_PATH=your_key_path
Project setup​
- Place your keys into the
local.properties
file and files underapp
directory in the root folder. - Change the package name to your own (what you set up in Firebase).
Running the project​
- Sync the project with Gradle files.
- Build the project.
- Run the project on an emulator or a physical device.
Congratulations! You have successfully built and ran the project. 🎉