Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/two-sloths-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"client-sdk-android": patch
---

Proguard rule optimizations
23 changes: 11 additions & 12 deletions livekit-android-sdk/consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,27 @@
}

-keep,includedescriptorclasses class io.livekit.android.**$$serializer { *; }
-keepclassmembers class io.livekit.android.** {
*** Companion;
}

-keepclasseswithmembers class io.livekit.android.** {
kotlinx.serialization.KSerializer serializer(...);
}

# WebRTC
#########################################
-keep class livekit.org.webrtc.** { *; }

# JNI Zero initialization (required for WebRTC native method registration)
-keep class livekit.org.jni_zero.JniInit {
# Keep the init method un-obfuscated for native code callback
private static java.lang.Object[] init();
# Ensure java methods called from Native are preserved.
-keepclasseswithmembers,includedescriptorclasses class * {
@livekit.org.webrtc.CalledByNative <methods>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
@livekit.org.webrtc.CalledByNativeUnchecked <methods>;
}

# NIST sdp parser
#########################################
-keep class android.gov.nist.** { *; }
-dontwarn com.sun.nio.sctp.**
-dontwarn org.apache.log4j.**
# Preserve reflection used for Parser registrations
-keep class android.gov.nist.javax.sdp.parser.*Parser { *; }
-keep class android.gov.nist.javax.sdp.parser.ParserFactory { *; }
-keep class android.gov.nist.javax.sdp.parser.SDPParser { *; }

# Protobuf
#########################################
Expand Down
Loading