aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-04-02 00:17:10 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-01 22:05:24 -0600
commit7d31bd2be93221f472fc85e1a2f1d09f8b6eade3 (patch)
treeb177a74f639a9d1c42fa715b7e47142802c2e038 /ui
parentbuild: update agp to 3.6.2 (diff)
downloadwireguard-android-7d31bd2be93221f472fc85e1a2f1d09f8b6eade3.tar.xz
wireguard-android-7d31bd2be93221f472fc85e1a2f1d09f8b6eade3.zip
build: update fragment to 1.2.4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui')
-rw-r--r--ui/proguard-rules.pro8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/proguard-rules.pro b/ui/proguard-rules.pro
index 8eabaf86..fc3eb888 100644
--- a/ui/proguard-rules.pro
+++ b/ui/proguard-rules.pro
@@ -4,3 +4,11 @@
# Retain some information to keep stacktraces usable
-keepattributes SourceFile,LineNumberTable
+
+# 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>();
+}