1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00

Work around for Samsung's MenuBuilder bug (fixes #307).

This commit is contained in:
Lode Hoste 2015-03-25 20:13:29 +01:00
parent 4f98061325
commit b73aaad0f5
2 changed files with 5 additions and 0 deletions

View file

@ -72,6 +72,8 @@ android {
debuggable true
}
release {
minifyEnabled true
proguardFile getDefaultProguardFile('proguard-android.txt')
if (System.getenv("key_alias")) {
signingConfig signingConfigs.release
}

3
proguard-android.txt Normal file
View file

@ -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.** { *; }