From 3a4bf35c77d3725c98af22aa00502686c69597d5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 8 Oct 2020 14:58:52 +0200 Subject: [PATCH] README: mention desugaring Signed-off-by: Jason A. Donenfeld --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 875e291d..20d4ad80 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,16 @@ The tunnel library is [on JCenter](https://bintray.com/wireguard/wireguard-andro implementation 'com.wireguard.android:tunnel:$wireguardTunnelVersion' ``` -The library makes use of Java 8 features, so be sure to support those in your gradle configuration: +The library makes use of Java 8 features, so be sure to support those in your gradle configuration with desugaring: ``` compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 + coreLibraryDesugaringEnabled = true +} +dependencies { + coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10" } ```