2017-11-28 16:31:13 +01:00
# Android GUI for [WireGuard](https://www.wireguard.com/)
2017-07-31 03:00:41 +02:00
2018-04-27 16:45:16 +02:00
**[Download from the Play Store](https://play.google.com/store/apps/details?id=com.wireguard.android)**
2017-07-31 03:00:41 +02:00
2018-02-07 19:19:20 +01:00
This is an Android GUI for [WireGuard ](https://www.wireguard.com/ ). It [opportunistically uses the kernel implementation ](https://git.zx2c4.com/android_kernel_wireguard/about/ ), and falls back to using the non-root [userspace implementation ](https://git.zx2c4.com/wireguard-go/about/ ).
2017-07-31 03:00:41 +02:00
2018-04-27 16:45:16 +02:00
## Building
```
2019-10-12 11:43:16 +02:00
$ git clone --recurse-submodules https://git.zx2c4.com/wireguard-android
2018-04-27 16:45:16 +02:00
$ cd wireguard-android
$ ./gradlew assembleRelease
```
2020-03-10 16:26:06 +01:00
2020-04-02 01:48:04 +02:00
macOS users may need [flock(1) ](https://github.com/discoteq/flock ).
2020-03-10 16:26:06 +01:00
## Embedding
2021-02-12 17:37:31 +01:00
The tunnel library is [on Maven Central ](https://search.maven.org/artifact/com.wireguard.android/tunnel ), alongside [extensive class library documentation ](https://javadoc.io/doc/com.wireguard.android/tunnel ).
2020-03-10 16:26:06 +01:00
```
implementation 'com.wireguard.android:tunnel:$wireguardTunnelVersion'
```
2020-10-08 14:58:52 +02:00
The library makes use of Java 8 features, so be sure to support those in your gradle configuration with desugaring:
2020-03-10 16:26:06 +01:00
```
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
2020-10-08 14:58:52 +02:00
coreLibraryDesugaringEnabled = true
}
dependencies {
2021-09-27 02:40:30 +02:00
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
2020-03-10 16:26:06 +01:00
}
```
2020-03-30 01:16:09 +02:00
## Translating
Please help us translate the app into several languages on [our translation platform ](https://crowdin.com/project/WireGuard ).