Skip to content

Commit 9566f59

Browse files
Fixed ProGuard rules to keep JniInit class for WebRTC native registration (#735) (#736)
* Fixed ProGuard rules to keep JniInit class for WebRTC native registration (#735) * Added changeset for ProGuard JniInit fix
1 parent 7fa8e40 commit 9566f59

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"client-sdk-android": patch
3+
---
4+
5+
Fixed ProGuard rules to keep JniInit class for WebRTC native registration (#735)

livekit-android-sdk/consumer-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
#########################################
2525
-keep class livekit.org.webrtc.** { *; }
2626

27+
# JNI Zero initialization (required for WebRTC native method registration)
28+
-keep class livekit.org.jni_zero.JniInit {
29+
# Keep the init method un-obfuscated for native code callback
30+
private static java.lang.Object[] init();
31+
}
32+
2733
# NIST sdp parser
2834
#########################################
2935
-keep class android.gov.nist.** { *; }

0 commit comments

Comments
 (0)