From d7c000d18a3a2913134a81e7880d6351e076dab6 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 12 Jun 2022 23:13:07 +0200 Subject: [PATCH] [android] Proguard fix for release and beta builds Signed-off-by: Alexander Borsuk --- android/proguard-mwm.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/proguard-mwm.txt b/android/proguard-mwm.txt index 9d653e79a6..9562c5bb3b 100644 --- a/android/proguard-mwm.txt +++ b/android/proguard-mwm.txt @@ -1,3 +1,11 @@ +# obfuscate supportV7 menu subclasses. it fixes bug with some Samsung and other devices ROMS based on android 4.2.2. +# more details here : https://code.google.com/p/android/issues/detail?id=78377 +# For some reason, this line disables optimizations and avoids crashes due to missing @Keep attributes. +# Looks like R8 keeps EVERYTHING except that unused support lib :) +# TODO: Remove this line after properly marking all JNI-called classes and methods with @Keep. +# Also remove everything else what is not needed. +-keep class !android.support.v7.internal.view.menu.**,** {*;} + # Gson support -keep class com.mapswithme.util.Gsonable -keep class * implements com.mapswithme.util.Gsonable