aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-04-27 13:12:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2023-04-27 13:12:02 +0200
commit0797e9955983ced98a8a50f5276978efcd7886ec (patch)
tree05ad263a9e6fc77bccc07babd2f60933c5b4e622 /ui
parentbuild: bump activity-ktx and fragment-ktx (diff)
downloadwireguard-android-0797e9955983ced98a8a50f5276978efcd7886ec.tar.xz
wireguard-android-0797e9955983ced98a8a50f5276978efcd7886ec.zip
proguard: cleanup unused parts
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/build.gradle2
-rw-r--r--ui/proguard-android-optimize.txt3
-rw-r--r--ui/proguard-rules.pro14
3 files changed, 2 insertions, 17 deletions
diff --git a/ui/build.gradle b/ui/build.gradle
index abd71827..dd2abe8d 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -34,7 +34,7 @@ android {
release {
minifyEnabled true
shrinkResources true
- proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
+ proguardFiles "proguard-android-optimize.txt"
packagingOptions {
exclude "DebugProbesKt.bin"
exclude "kotlin-tooling-metadata.json"
diff --git a/ui/proguard-android-optimize.txt b/ui/proguard-android-optimize.txt
index e2095ad6..7bbc2b88 100644
--- a/ui/proguard-android-optimize.txt
+++ b/ui/proguard-android-optimize.txt
@@ -1,7 +1,6 @@
-allowaccessmodification
--dontpreverify
-dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
+-dontobfuscate
-verbose
-keepattributes *Annotation*
diff --git a/ui/proguard-rules.pro b/ui/proguard-rules.pro
deleted file mode 100644
index d7864f48..00000000
--- a/ui/proguard-rules.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-# Squelch all warnings, they're harmless but ProGuard
-# escalates them as errors.
--dontwarn sun.misc.Unsafe
-
-# Fragment 1.2.4 allows Fragment classes to be obfuscated but
-# databinding references in XML seem to not be rewritten to
-# match, so we preserve the names as 1.2.3 did.
--if public class ** extends androidx.fragment.app.Fragment
--keep public class <1> {
- public <init>();
-}
-
-# Don't obfuscate
--dontobfuscate