-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
180 changed files
with
2,691 additions
and
5,194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/.gradle/ | ||
/.idea/*.xml | ||
/.idea/caches/ | ||
/.idea/dictionaries/ | ||
/.idea/libraries/ | ||
/captures/ | ||
/local.properties | ||
.DS_Store | ||
.cxx/ | ||
Thumbs.db | ||
build/ | ||
*.apk | ||
*.class | ||
*.dex | ||
*.iml | ||
*.jks | ||
gradlew.bat | ||
maint/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,15 @@ | ||
# Android GUI for [WireGuard](https://www.wireguard.com/) | ||
# Android GUI for [AmneziaWG](https://amnezia.org/learn-more/31_amneziawg) | ||
|
||
**[Download from the Play Store](https://play.google.com/store/apps/details?id=com.wireguard.android)** | ||
**[Download from the Play Store](https://play.google.com/store/apps/details?id=org.amnezia.awg)** | ||
|
||
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/). | ||
This is an Android GUI for [AmneziaWG](https://amnezia.org/learn-more/31_amneziawg). | ||
|
||
## Building | ||
|
||
``` | ||
$ git clone --recurse-submodules https://git.zx2c4.com/wireguard-android | ||
$ cd wireguard-android | ||
$ git clone --recurse-submodules https://github.com/amnezia-vpn/amneziawg-android | ||
$ cd amneziawg-android | ||
$ ./gradlew assembleRelease | ||
``` | ||
|
||
macOS users may need [flock(1)](https://github.com/discoteq/flock). | ||
|
||
## Embedding | ||
|
||
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). | ||
|
||
``` | ||
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](https://developer.android.com/studio/write/java8-support#library-desugaring): | ||
|
||
``` | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
coreLibraryDesugaringEnabled = true | ||
} | ||
dependencies { | ||
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.0.3" | ||
} | ||
``` | ||
|
||
## Translating | ||
|
||
Please help us translate the app into several languages on [our translation platform](https://crowdin.com/project/WireGuard). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ | |
import org.gradle.api.tasks.testing.logging.TestLogEvent | ||
|
||
val pkg: String = providers.gradleProperty("amneziawgPackageName").get() | ||
val cmakeAndroidPackageName: String = providers.environmentVariable("ANDROID_PACKAGE_NAME").getOrElse(pkg) | ||
|
||
plugins { | ||
alias(libs.plugins.android.library) | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
android { | ||
|
@@ -36,14 +35,14 @@ android { | |
release { | ||
externalNativeBuild { | ||
cmake { | ||
arguments("-DANDROID_PACKAGE_NAME=${pkg}") | ||
arguments("-DANDROID_PACKAGE_NAME=${cmakeAndroidPackageName}") | ||
} | ||
} | ||
} | ||
debug { | ||
externalNativeBuild { | ||
cmake { | ||
arguments("-DANDROID_PACKAGE_NAME=${pkg}.debug") | ||
arguments("-DANDROID_PACKAGE_NAME=${cmakeAndroidPackageName}.debug") | ||
} | ||
} | ||
} | ||
|
@@ -52,12 +51,6 @@ android { | |
disable += "LongLogTag" | ||
disable += "NewApi" | ||
} | ||
publishing { | ||
singleVariant("release") { | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
|
@@ -66,59 +59,3 @@ dependencies { | |
compileOnly(libs.jsr305) | ||
testImplementation(libs.junit) | ||
} | ||
|
||
publishing { | ||
publications { | ||
register<MavenPublication>("release") { | ||
groupId = pkg | ||
artifactId = "tunnel" | ||
version = providers.gradleProperty("amneziawgVersionName").get() | ||
afterEvaluate { | ||
from(components["release"]) | ||
} | ||
pom { | ||
name.set("WireGuard Tunnel Library") | ||
description.set("Embeddable tunnel library for WireGuard for Android") | ||
url.set("https://www.wireguard.com/") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:https://git.zx2c4.com/wireguard-android") | ||
developerConnection.set("scm:git:https://git.zx2c4.com/wireguard-android") | ||
url.set("https://git.zx2c4.com/wireguard-android") | ||
} | ||
developers { | ||
organization { | ||
name.set("WireGuard") | ||
url.set("https://www.wireguard.com/") | ||
} | ||
developer { | ||
name.set("WireGuard") | ||
email.set("[email protected]") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "sonatype" | ||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = providers.environmentVariable("SONATYPE_USER").orNull | ||
password = providers.environmentVariable("SONATYPE_PASSWORD").orNull | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
sign(publishing.publications) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.