Skip to content

Commit 3a4bf35

Browse files
committed
README: mention desugaring
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 46b37c0 commit 3a4bf35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ The tunnel library is [on JCenter](https://bintray.com/wireguard/wireguard-andro
2222
implementation 'com.wireguard.android:tunnel:$wireguardTunnelVersion'
2323
```
2424

25-
The library makes use of Java 8 features, so be sure to support those in your gradle configuration:
25+
The library makes use of Java 8 features, so be sure to support those in your gradle configuration with desugaring:
2626

2727
```
2828
compileOptions {
2929
sourceCompatibility JavaVersion.VERSION_1_8
3030
targetCompatibility JavaVersion.VERSION_1_8
31+
coreLibraryDesugaringEnabled = true
32+
}
33+
dependencies {
34+
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10"
3135
}
3236
```
3337

0 commit comments

Comments
 (0)