Skip to content

Flutter: Update Android Config for Release Build #632

@moven0831

Description

@moven0831

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:

E/AndroidRuntime(17363): java.lang.UnsatisfiedLinkError: Can't obtain peer field ID for class com.sun.jna.Pointer

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

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions