Skip to content

Commit

Permalink
provide link to simple dotenv maven example
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Apr 25, 2018
1 parent 298934b commit ba8386d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dotenv["MY_ENV_VAR1"]
dotenv["MY_ENV_VAR1"]
```

**Note:** The above configuration is required because dot files in `/assets` do not appear to resolve on Android. *(Seeking assistance from an Android expert if there is a better way)*
**Note:** The above configuration is required because dot files in `/assets` do not appear to resolve on Android. *(Seeking recommendations from the Android community on how `java-dotenv` configuration should work in order to provide the best experience for Android developers)*

Alternatively, if you are using Provider `android.resource` you may specify

Expand Down Expand Up @@ -217,11 +217,12 @@ dotenv["HOME"]


## Examples

- with [Spring Framework](https:/cdimascio/kotlin-swagger-spring-functional-template)
- with [Maven (simple)](https:/cdimascio/java-dotenv-example)
- with [Spring Framework](https:/cdimascio/kotlin-swagger-spring-functional-template)
- with [Android](https:/cdimascio/android-example/blob/master/app/src/main/java/com/example/dimascio/myapp/MainActivity.kt)
- see [Kotlin DSL tests](./src/test/kotlin/tests/DslTests.kt)
- see [Java tests](./src/test/java/tests/JavaTests.java)
- with [Android](https:/cdimascio/android-example/blob/master/app/src/main/java/com/example/dimascio/myapp/MainActivity.kt)

## FAQ

**Q:** Why should I use `dotenv.get("MY_ENV_VAR")` instead of `System.getenv("MY_ENV_VAR")`
Expand Down

0 comments on commit ba8386d

Please sign in to comment.