Adrian Niculescu
Committed by GitHub

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 +---
  2 +"client-sdk-android": patch
  3 +---
  4 +
  5 +Fixed ProGuard rules to keep JniInit class for WebRTC native registration (#735)
@@ -24,6 +24,12 @@ @@ -24,6 +24,12 @@
24 ######################################### 24 #########################################
25 -keep class livekit.org.webrtc.** { *; } 25 -keep class livekit.org.webrtc.** { *; }
26 26
  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 +
27 # NIST sdp parser 33 # NIST sdp parser
28 ######################################### 34 #########################################
29 -keep class android.gov.nist.** { *; } 35 -keep class android.gov.nist.** { *; }