1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00

Merge pull request #308 from Zillode/fix-samsungs-bug

Work around for Samsung's MenuBuilder bug (fixes #307).
This commit is contained in:
Felix Ableitner 2015-03-27 17:28:41 +01:00
commit c8020fd9c2
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.** { *; }