From a3a914abce186885fb62f6607450e260355ab712 Mon Sep 17 00:00:00 2001 From: andrekir Date: Mon, 18 Mar 2024 08:21:27 -0300 Subject: [PATCH] refactor: disable code shrinking and optimization --- app/proguard-rules.pro | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 3f67b6b71..534db9b64 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -20,15 +20,9 @@ # hide the original source file name. #-renamesourcefileattribute SourceFile -# per https://medium.com/@kenkyee/android-kotlin-coroutine-best-practices-bc033fed62e7 --keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} --keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} --keepclassmembernames class kotlinx.** { volatile ; } - -# Needed for protobufs --keepclassmembers class * extends com.google.protobuf.GeneratedMessageV3 { ; } --keep class com.geeksville.mesh.**{*;} --keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { ; } +# Disable code shrinking and optimization +-dontshrink +-dontoptimize # eclipse.paho.client -keep class org.eclipse.paho.client.mqttv3.logging.JSR47Logger { *; } @@ -49,4 +43,4 @@ # Our app is opensource no need to obsfucate -dontobfuscate --optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable \ No newline at end of file +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable