Skip to content

Fix Android unit test failures

Android local unit tests run in the host machine's JVM. We need to provide the same condition that the JVM targets have to Android targets, but only for unit tests.

Changes

  • Modified UniffiPlugin so androidUnitTest use the .jar version of JNA and does not fail to find libjnidispatch.so.
  • Added HasJvmProperties.androidUnitTest.
  • Made CargoPlugin check HasJvmProperties.androidUnitTest and copy JVM binaries to Android local unit tests.
  • Added a unit test for example arithmetic-procmacro.
Edited by Chanjung Kim

Merge request reports