aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-07-07 12:04:34 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-08 03:26:42 +0200
commit08a961b4c937e128cfee185769727b5c0518577b (patch)
treec8f5f5cf579b04bf5efa21cfac3dc34a4f273b7c
parentgradle: bump build tools version (diff)
downloadwireguard-android-08a961b4c937e128cfee185769727b5c0518577b.tar.xz
wireguard-android-08a961b4c937e128cfee185769727b5c0518577b.zip
Build with different name and ID in debug mode
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/debug/res/values/strings.xml4
-rw-r--r--app/src/main/AndroidManifest.xml4
3 files changed, 10 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index b344581..c93223d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -40,6 +40,10 @@ android {
release {
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
}
+ debug {
+ applicationIdSuffix ".debug"
+ versionNameSuffix "-debug"
+ }
}
externalNativeBuild {
cmake {
diff --git a/app/src/debug/res/values/strings.xml b/app/src/debug/res/values/strings.xml
new file mode 100644
index 0000000..60e016e
--- /dev/null
+++ b/app/src/debug/res/values/strings.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">WireGuard β</string>
+</resources>
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 13c5a22..e422c56 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -9,7 +9,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission
- android:name="com.wireguard.android.permission.CONTROL_TUNNELS"
+ android:name="${applicationId}.permission.CONTROL_TUNNELS"
android:protectionLevel="dangerous"
android:icon="@mipmap/ic_launcher"
android:label="@string/permission_label"
@@ -59,7 +59,7 @@
<receiver
android:name=".model.TunnelManager$IntentReceiver"
- android:permission="com.wireguard.android.permission.CONTROL_TUNNELS">
+ android:permission="${applicationId}.permission.CONTROL_TUNNELS">
<intent-filter>
<action android:name="com.wireguard.android.action.REFRESH_TUNNEL_STATES" />
<action android:name="com.wireguard.android.action.SET_TUNNEL_UP" />