Skip to content

basedapps/based-vpn-android

Repository files navigation

BasedVPN Android

Project setup

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

For bash:

  1. Open ~/.bash_profile file with preferred editor
    nano ~/.bash_profile
    vim ~/.bash_profile
    vi ~/.bash_profile
    
  2. Add export BASED_VPN_MAPS_KEY=XXXX
  3. Save file
  4. Execute source ~/.bash_profileto load environmental variables into current session
  5. Execute printenv to check if variable is set

For more detailed explanation check out Set evrionmental variable in BASH.

For zsh

For zsh:

  1. Open ~/.zshrc file with preferred editor
   nano ~/.zshrc
   vim ~/.zshrc
   vi ~/.zshrc
  1. Add export BASED_VPN_MAPS_KEY=XXXX
  2. Save file
  3. Execute source ~/.zshrcto load environmental variables into current session
  4. Execute printenv to check if variable is set

For more detailed explanation check out Set evrionmental variable in ZSH.

Publishing

Maven Local

./gradlew :based_vpn:publishToMavenLocal

Maven Global

./gradlew :based_vpn:publish