Skip to content

Commit c3cdfeb

Browse files
authored
Update proguard-rules (#1906)
1 parent 0c2ff96 commit c3cdfeb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/proguard-rules.pro

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
########## BASELINE / ATTRIBUTES ##########
44
# Core attrs (serialization/DI/reflective access often rely on these)
5-
-keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod,MethodParameters,Record
5+
-keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod,MethodParameters,Record,KotlinMetadata
6+
7+
# Keep Kotlin collection singleton
8+
-keep class kotlin.collections.EmptySet { *; }
9+
-keep class kotlin.collections.EmptyList { *; }
10+
-keep class kotlin.collections.EmptyMap { *; }
611

712
# Honor @Keep if present
813
-keep @androidx.annotation.Keep class * { *; }
@@ -136,6 +141,10 @@
136141
-keep class org.session.libsession.messaging.utilities.UpdateMessageData { *; }
137142
-keep class org.session.libsession.messaging.utilities.UpdateMessageData$* { *; }
138143
-keepnames class org.session.libsession.messaging.utilities.UpdateMessageData$*
144+
-keep class org.session.libsession.messaging.utilities.Data { *; }
145+
-keepnames class org.session.libsession.messaging.utilities.Data
146+
-keep class org.session.libsession.messaging.messages.Message { *; }
147+
-keepnames class org.session.libsession.messaging.messages.Message
139148

140149
########## HUAWEI / HMS (minified builds) ##########
141150
# Device-only classes referenced by HMS internals — not present on Maven.

0 commit comments

Comments
 (0)