Before building and running the project, some initial setup is needed.
BuildConfig file needs access to BASED_VPN_MAPS_KEY
system environment variable. This variable can be set through terminal using commands in next section.
For bash
- Open
~/.bash_profile
file with preferred editornano ~/.bash_profile vim ~/.bash_profile vi ~/.bash_profile
- Add
export BASED_VPN_MAPS_KEY=XXXX
- Save file
- Execute
source ~/.bash_profile
to load environmental variables into current session - Execute
printenv
to check if variable is set
For more detailed explanation check out Set evrionmental variable in BASH.
For zsh
- Open
~/.zshrc
file with preferred editor
nano ~/.zshrc
vim ~/.zshrc
vi ~/.zshrc
- Add
export BASED_VPN_MAPS_KEY=XXXX
- Save file
- Execute
source ~/.zshrc
to load environmental variables into current session - Execute
printenv
to check if variable is set
For more detailed explanation check out Set evrionmental variable in ZSH.
./gradlew :based_vpn:publishToMavenLocal
./gradlew :based_vpn:publish