wgtunnel / wireguard-android

My fork of WireGuard's Android library. Official repository is at https://git.zx2c4.com/wireguard-android

Repository from Github https://github.comwgtunnel/wireguard-androidRepository from Github https://github.comwgtunnel/wireguard-android

Android GUI for WireGuard

Download from the Play Store

This is an Android GUI for WireGuard. It opportunistically uses the kernel implementation, and falls back to using the non-root userspace implementation.

Building

$ git clone --recurse-submodules https://github.com/zaneschepke/wireguard-android.git
$ cd wireguard-android
$ ./gradlew assembleRelease

macOS users may need flock(1).

Embedding

The tunnel library is on Maven Central, alongside extensive class library documentation.

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_17
    targetCompatibility JavaVersion.VERSION_17
    coreLibraryDesugaringEnabled = true
}
dependencies {
    coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.3"
}

Publishing

 ./gradlew publishAllPublicationsToCentralPortal

Translating

Please help us translate the app into several languages on our translation platform.

About

My fork of WireGuard's Android library. Official repository is at https://git.zx2c4.com/wireguard-android

License:Apache License 2.0


Languages

Language:Kotlin 51.8%Language:Java 45.9%Language:Go 0.9%Language:C 0.5%Language:CMake 0.5%Language:Makefile 0.4%Language:Shell 0.1%