summaryrefslogtreecommitdiffhomepage
path: root/app
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
commitc696e9f2755e236afffffd1135e01c51cc25682b (patch)
treec8f5f5cf579b04bf5efa21cfac3dc34a4f273b7c /app
parent707c8c19a8e8f67e8dee366487b3343387ed5ac9 (diff)
Build with different name and ID in debug mode
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'app')
-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 b344581d..c93223dd 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 00000000..60e016ea
--- /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 13c5a223..e422c566 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" />