From ee263ba68e848f16ab4a0f789e3be7ce581eda96 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 10 Mar 2020 09:26:06 -0600 Subject: [PATCH] README: note JCenter addition Signed-off-by: Jason A. Donenfeld --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 4db9a33e..07e3fd26 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,20 @@ $ git clone --recurse-submodules https://git.zx2c4.com/wireguard-android $ cd wireguard-android $ ./gradlew assembleRelease ``` + +## Embedding + +The tunnel library is [on JCenter](https://bintray.com/wireguard/wireguard-android/wireguard-android/_latestVersion): + +``` +implementation 'com.wireguard.android:tunnel:$wireguardTunnelVersion' +``` + +The library makes use of Java 8 features, so be sure to support those in your gradle configuration: + +``` +compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 +} +```