From b73aaad0f55a946ad0941820d33de15ba19b1b8d Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Wed, 25 Mar 2015 20:13:29 +0100 Subject: [PATCH] Work around for Samsung's MenuBuilder bug (fixes #307). --- build.gradle | 2 ++ proguard-android.txt | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 proguard-android.txt diff --git a/build.gradle b/build.gradle index 0da523a6..8bde38af 100644 --- a/build.gradle +++ b/build.gradle @@ -72,6 +72,8 @@ android { debuggable true } release { + minifyEnabled true + proguardFile getDefaultProguardFile('proguard-android.txt') if (System.getenv("key_alias")) { signingConfig signingConfigs.release } diff --git a/proguard-android.txt b/proguard-android.txt new file mode 100644 index 00000000..fb4c375e --- /dev/null +++ b/proguard-android.txt @@ -0,0 +1,3 @@ +# Fix appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2 (https://code.google.com/p/android/issues/detail?id=78377) +-keep class !android.support.v7.internal.view.menu.MenuBuilder, !android.support.v7.internal.view.menu.SubMenuBuilder, android.support.v7.** { *; } +-keep interface android.support.v7.** { *; }