aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-05-10 04:58:44 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-05-10 04:58:44 +0200
commit3c0f82970c07d11687501196c21ab68337eab34c (patch)
tree8cce3181db6e2ca39f418bff4b60e0cd56eb9468
parentbfc57aefa5d9fd435e93589ea8a37c9747cb7814 (diff)
downloadopen-keychain-3c0f82970c07d11687501196c21ab68337eab34c.tar.gz
open-keychain-3c0f82970c07d11687501196c21ab68337eab34c.tar.bz2
open-keychain-3c0f82970c07d11687501196c21ab68337eab34c.zip
Workaround for Samsung Android 4.2 bug
-rw-r--r--OpenKeychain/build.gradle7
-rw-r--r--OpenKeychain/proguard-rules.pro26
2 files changed, 33 insertions, 0 deletions
diff --git a/OpenKeychain/build.gradle b/OpenKeychain/build.gradle
index 9ea637b62..a4caa1fe7 100644
--- a/OpenKeychain/build.gradle
+++ b/OpenKeychain/build.gradle
@@ -106,6 +106,13 @@ android {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
+
+ buildTypes {
+ release {
+ minifyEnabled true
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
/*
* To sign release build, create file gradle.properties in ~/.gradle/ with this content:
diff --git a/OpenKeychain/proguard-rules.pro b/OpenKeychain/proguard-rules.pro
new file mode 100644
index 000000000..38259dada
--- /dev/null
+++ b/OpenKeychain/proguard-rules.pro
@@ -0,0 +1,26 @@
+# Add project specific ProGuard rules here.
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+
+# Workaround for Samsung Android 4.2 bug
+# https://code.google.com/p/android/issues/detail?id=78377
+# https://code.google.com/p/android/issues/detail?id=78377#c188
+-keepattributes **
+-keep class !android.support.v7.internal.view.menu.**,** {*;}
+-dontpreverify
+-dontoptimize
+-dontshrink
+-dontwarn ** \ No newline at end of file