mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: disable code shrinking and optimization
This commit is contained in:
parent
12c8a2dc77
commit
a3a914abce
1 changed files with 4 additions and 10 deletions
14
app/proguard-rules.pro
vendored
14
app/proguard-rules.pro
vendored
|
|
@ -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 <fields>; }
|
||||
|
||||
# Needed for protobufs
|
||||
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageV3 { <fields>; }
|
||||
-keep class com.geeksville.mesh.**{*;}
|
||||
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { <fields>; }
|
||||
# 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
|
||||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue