Add the jitpack repository to you app's build.gradle or settings.gradle
repositories {
maven { url 'https://jitpack.io' }
}
implementation 'com.github.dotenv-org:dotenv-vault-kotlin:0.0.1'
implementation("com.github.dotenv-org:dotenv-vault-kotlin:0.0.1")
Set your DotenvVault key to your environment variables
export DOTENV_KEY="dotenv://....."
or Add the key to your local.properties
file on Android
DOTENV_KEY=dotenv://.....
Add env.vault
(no dot) to your src/main/assets
folder
Use the -SNAPSHOT for the latest snapshot version
See all available versions: https://jitpack.io/#dotenv-org/dotenv-vault-kotlin/