dotenv-java icon indicating copy to clipboard operation
dotenv-java copied to clipboard

the README.md android example is slightly wrong

Open williamheelis opened this issue 3 years ago • 0 comments

 Dotenv dotenv = Dotenv.configure()
    .directory("/assets")
    .filename("env"); // instead of '.env', use 'env'

 dotenv.get("MY_ENV_VAR1");

should be

Dotenv dotenv = Dotenv.configure()
   .directory("/assets")
   .filename("env").load(); // instead of '.env', use 'env'

dotenv.get("MY_ENV_VAR1");

thanks for your work, PS: did you ever get to the bottom of the .env filename thing?

williamheelis avatar Sep 16 '22 12:09 williamheelis