diff --git a/README.md b/README.md index 05efec8..7670f3b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,43 @@ Add this dependency to your project's build file: } ``` +### Using JitPack +[JitPack](https://jitpack.io/) allows you to use a git repository as a source of dependencies in your build file. + +First add jitpack as a repository in your build file. Then import the dependency using the GitHub user and repository names. + +#### Maven +```xml + + + jitpack.io + https://jitpack.io + + + + + com.github.OneSignal + onesignal-java-api + main-SNAPSHOT + +``` + +#### Gradle +```groovy + +repositories { + // ... + maven { url 'https://jitpack.io' } +} + +dependencies { + implementation 'com.github.OneSignal:onesignal-java-api:main-SNAPSHOT' +} + +``` + +You can replace `main-SNAPSHOT` with a specific commit's short hash to use that commit. + ### Others At first generate the JAR by executing: