aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-10-29 17:18:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-10-29 17:19:00 +0200
commit06306c669deb800ca960b54496f6d3c94888e86d (patch)
treeb80a5d2efe8f2c669a652dbd30ea2400b146f68d
parenttools: bump libwg-go (diff)
downloadwireguard-android-06306c669deb800ca960b54496f6d3c94888e86d.tar.xz
wireguard-android-06306c669deb800ca960b54496f6d3c94888e86d.zip
README: re-add desugaring block
People are never gonna figure it out otherwise. This reverts commit 1701e4fde4d167d0812f55460c6b4c6e534ea627. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--README.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 866237f2..ff827538 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,18 @@ The tunnel library is [on Maven Central](https://search.maven.org/artifact/com.w
implementation 'com.wireguard.android:tunnel:$wireguardTunnelVersion'
```
-The library makes use of Java 8 features, so be sure to support those in your gradle configuration with [desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring)
+The library makes use of Java 8 features, so be sure to support those in your gradle configuration with [desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring):
+
+```
+compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ coreLibraryDesugaringEnabled = true
+}
+dependencies {
+ coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
+}
+```
## Translating