summaryrefslogtreecommitdiff
path: root/taler-kotlin-android
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-07-31 10:58:20 -0300
committerTorsten Grote <t@grobox.de>2020-07-31 10:58:20 -0300
commit4bd0ec921e7ba0b074fef28604febd7ad9d57d01 (patch)
tree0d9035dfccc83e080c00c1293e1d1f44903d7d7b /taler-kotlin-android
parentdabc0ce62c93f8d78ed800e0f3c63b7fd5cb9e25 (diff)
downloadtaler-android-4bd0ec921e7ba0b074fef28604febd7ad9d57d01.tar.gz
taler-android-4bd0ec921e7ba0b074fef28604febd7ad9d57d01.tar.bz2
taler-android-4bd0ec921e7ba0b074fef28604febd7ad9d57d01.zip
Enable code minification for release builds of all apps
Attention: This brings a high run-time crash risk. So all release builds need to be thoroughly tested before publication. Nightly builds have been switched to release builds for that reason.
Diffstat (limited to 'taler-kotlin-android')
-rw-r--r--taler-kotlin-android/consumer-rules.pro15
1 files changed, 15 insertions, 0 deletions
diff --git a/taler-kotlin-android/consumer-rules.pro b/taler-kotlin-android/consumer-rules.pro
index e69de29..854cdfd 100644
--- a/taler-kotlin-android/consumer-rules.pro
+++ b/taler-kotlin-android/consumer-rules.pro
@@ -0,0 +1,15 @@
+-dontobfuscate
+
+# This is broad, but better leave a few common class and still optimize the rest out
+-keep class net.taler.common.** {*;}
+
+# AndroidX navigation
+-keepnames class androidx.navigation.fragment.NavHostFragment
+
+# Jackson serialization
+-keep class kotlin.Metadata { *; }
+-keep class kotlin.reflect.** { *; }
+
+# KotlinX serialization
+-keepattributes *Annotation*, InnerClasses
+-dontnote kotlinx.serialization.SerializationKt