From c2973608d7d904b4d942eebab3ee2ed6bd93b638 Mon Sep 17 00:00:00 2001
From: akwizgran <michael@briarproject.org>
Date: Wed, 19 Jun 2019 16:36:39 +0100
Subject: [PATCH] Keep enum methods used by ZXing.

---
 briar-android/proguard-rules.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/briar-android/proguard-rules.txt b/briar-android/proguard-rules.txt
index b0148dae44..ffa9736ca9 100644
--- a/briar-android/proguard-rules.txt
+++ b/briar-android/proguard-rules.txt
@@ -5,6 +5,10 @@
 
 # QR codes
 -keep class com.google.zxing.Result
+-keepclassmembers enum * {
+    public static **[] values();
+    public static ** valueOf(java.lang.String);
+}
 
 # RSS libraries
 -keep,includedescriptorclasses class com.rometools.rome.feed.synd.impl.** { *; }
-- 
GitLab