Skip to content

Commit 3feb15a

Browse files
committed
1.1.15
fix crashes due to proguard
1 parent 9384e8a commit 3feb15a

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
buildscript {
1010

1111

12-
ext.PLUGIN_VERSION = "1.1.14"
12+
ext.PLUGIN_VERSION = "1.1.15"
1313
ext.ATAK_VERSION = "5.4.0"
1414

1515
def takdevVersion = '3.+'

app/proguard-gradle.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,36 @@
120120
-dontwarn java.lang.instrument.ClassFileTransformer
121121
-dontwarn java.lang.ClassValue
122122
-dontwarn android.content.res.XmlResourceParser
123+
124+
125+
# Keep kotlin.Pair class
126+
-keep class kotlin.Pair { *; }
127+
128+
# Keep your specific Meshtastic plugin classes if needed
129+
-keep class atakplugin.Meshtastic.** { *; }
130+
131+
# Optional: Keep class metadata for Kotlin (important if you use reflection or serialization)
132+
-keepattributes *Annotation*
133+
-keep class kotlin.Metadata { *; }
134+
135+
# If you're using Gson, Moshi, or Kotlinx.serialization
136+
-keep class **Kt$* { *; }
137+
-keepclassmembers class ** {
138+
*** Companion;
139+
}
140+
141+
# Keep all Kotlin text extension classes
142+
-keep class kotlin.text.** { *; }
143+
144+
# Keep all Kotlin runtime (core reflection and intrinsics)
145+
-keep class kotlin.** { *; }
146+
-dontwarn kotlin.**
147+
148+
# Retain Kotlin Metadata for reflection and serializers
149+
-keep class kotlin.Metadata { *; }
150+
-keepattributes KotlinMetadata
151+
-keepattributes *Annotation*
152+
153+
# Needed for kotlinx.serialization to work properly
154+
-keep class kotlinx.serialization.** { *; }
155+
-dontwarn kotlinx.serialization.**

0 commit comments

Comments
 (0)