Commit 0b09bea
committed
Fixed data tracks failing to load in apps minified with R8
The data track bindings call Rust through JNA. libjnidispatch resolves JNA's
classes and fields by name, and JNA reads the bindings' Structure and Callback
subclasses reflectively, but neither JNA nor livekit-uniffi-android ships keep
rules, so R8 renamed or stripped them and the native library failed to load.
Added the rules from JNA's FAQ to the consumer rules.1 parent 12433f2 commit 0b09bea
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments