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
正在显示
2 个修改的文件
包含
11 行增加
和
0 行删除
.changeset/fix-proguard-jni-zero.md
0 → 100644
| @@ -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.** { *; } |
-
请 注册 或 登录 后发表评论