aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2018-12-18 22:18:00 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2018-12-18 22:18:00 +0530
commit37ae5520d645e726ba9755430ad23a1bbd90bf15 (patch)
treeb171ff4f68a68cb5244850e0fc2fc32eda2ccf3b
parentVersion bump (diff)
downloadwireguard-android-37ae5520d645e726ba9755430ad23a1bbd90bf15.tar.xz
wireguard-android-37ae5520d645e726ba9755430ad23a1bbd90bf15.zip
Enable proguard and wire up rules
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r--app/build.gradle2
-rw-r--r--app/proguard-rules.pro5
2 files changed, 7 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 9416d57..284cbee 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -46,6 +46,8 @@ android {
arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}"
}
}
+ minifyEnabled true
+ proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
debug {
applicationIdSuffix ".debug"
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..b221446
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,5 @@
+# Squelch all warnings, they're harmless but ProGuard
+# escalates them as errors.
+-dontwarn sun.misc.Unsafe
+# We're OSS anyway and who doesn't love a readable log
+-dontobfuscate