From 7d31bd2be93221f472fc85e1a2f1d09f8b6eade3 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 2 Apr 2020 00:17:10 +0530 Subject: [PATCH] build: update fragment to 1.2.4 Signed-off-by: Harsh Shandilya --- build.gradle | 2 +- ui/proguard-rules.pro | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a44f0e96..7b54cd47 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ buildscript { coreKtxVersion = '1.2.0' coroutinesVersion = '1.3.5' eddsaVersion = '0.3.0' - fragmentVersion = '1.2.3' + fragmentVersion = '1.2.4' jsr305Version = '3.0.2' junitVersion = '4.13' kotlinVersion = '1.3.71' 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 (); +}