Fix Android unit test failures
requested to merge paxbun/uniffi-kotlin-multiplatform-bindings:fix/jnidispatch-not-found-in-android-unit-test into main
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
soandroidUnitTest
use the .jar version of JNA and does not fail to findlibjnidispatch.so
. - Added
HasJvmProperties.androidUnitTest
. - Made
CargoPlugin
checkHasJvmProperties.androidUnitTest
and copy JVM binaries to Android local unit tests. - Added a unit test for example
arithmetic-procmacro
.
Edited by Chanjung Kim