README: link to Android desugaring docs

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-09-27 06:29:25 +05:30
parent f6d175b774
commit 1701e4fde4
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80

View File

@ -22,18 +22,7 @@ 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:
```
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled = true
}
dependencies {
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
}
```
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)
## Translating