From 10f169fd4f963f1cdcd7e6a2b8306322bb54e901 Mon Sep 17 00:00:00 2001
From: Matthew Finkel <Matthew.Finkel@gmail.com>
Date: Tue, 27 Nov 2018 15:37:22 +0000
Subject: [PATCH 11/13] Bug 28051 - Tell Proguard it should keep an unused
 method

---
 app/proguard-rules.txt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/app/proguard-rules.txt b/app/proguard-rules.txt
index b1120f82..3a8d4ef9 100644
--- a/app/proguard-rules.txt
+++ b/app/proguard-rules.txt
@@ -11,4 +11,12 @@
 -keep class okhttp3.** { *; }
 -keep interface okhttp3.** { *; }
 -dontwarn okhttp3.**
--dontwarn okio.**
\ No newline at end of file
+-dontwarn okio.**
+
+# This method is called in the main Application (which is now
+# Fennec's GeckoApplication), so we must explicitly keep this
+# or else proguard sees it is not used when then library is
+# compiled and prunes it.
+-keep class org.torproject.android.settings.Languages {
+    void setup(java.lang.Class, int);
+}
-- 
2.17.1

