0011-Bug-28051-Tell-Proguard-it-should-keep-an-unused-met.patch 984 B

123456789101112131415161718192021222324252627282930313233
  1. From 10f169fd4f963f1cdcd7e6a2b8306322bb54e901 Mon Sep 17 00:00:00 2001
  2. From: Matthew Finkel <Matthew.Finkel@gmail.com>
  3. Date: Tue, 27 Nov 2018 15:37:22 +0000
  4. Subject: [PATCH 11/13] Bug 28051 - Tell Proguard it should keep an unused
  5. method
  6. ---
  7. app/proguard-rules.txt | 10 +++++++++-
  8. 1 file changed, 9 insertions(+), 1 deletion(-)
  9. diff --git a/app/proguard-rules.txt b/app/proguard-rules.txt
  10. index b1120f82..3a8d4ef9 100644
  11. --- a/app/proguard-rules.txt
  12. +++ b/app/proguard-rules.txt
  13. @@ -11,4 +11,12 @@
  14. -keep class okhttp3.** { *; }
  15. -keep interface okhttp3.** { *; }
  16. -dontwarn okhttp3.**
  17. --dontwarn okio.**
  18. \ No newline at end of file
  19. +-dontwarn okio.**
  20. +
  21. +# This method is called in the main Application (which is now
  22. +# Fennec's GeckoApplication), so we must explicitly keep this
  23. +# or else proguard sees it is not used when then library is
  24. +# compiled and prunes it.
  25. +-keep class org.torproject.android.settings.Languages {
  26. + void setup(java.lang.Class, int);
  27. +}
  28. --
  29. 2.17.1