Skip to content

Commit 06306c6

Browse files
committed
README: re-add desugaring block
People are never gonna figure it out otherwise. This reverts commit 1701e4f. Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent d19e126 commit 06306c6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ The tunnel library is [on Maven Central](https://search.maven.org/artifact/com.w
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 with [desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring)
25+
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):
26+
27+
```
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_1_8
30+
targetCompatibility JavaVersion.VERSION_1_8
31+
coreLibraryDesugaringEnabled = true
32+
}
33+
dependencies {
34+
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
35+
}
36+
```
2637

2738
## Translating
2839

0 commit comments

Comments
 (0)