Previously, our Android release builds were incompatible with code shrinking and obfuscation due to UniFFI's dependency on JNA. This resulted in runtime crashes:
E/AndroidRuntime(17363): java.lang.UnsatisfiedLinkError: Can't obtain peer field ID for class com.sun.jna.Pointer
Background
Previously, our Android release builds were incompatible with code shrinking and obfuscation due to UniFFI's dependency on JNA. This resulted in runtime crashes:
Solution
With the migration to Flutter Rust Bridge (FRB) in #583, we've removed the UniFFI/JNA dependency. This enables us to re-enable Android build optimizations that were previously disabled as a workaround.
Tasks
android/app/build.gradleReferences