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