Petros Chariskos
09/24/2025, 7:20 AMSavedStateHandle.toRoute api. My tests are in commonTest target. My app is targeting android and ios (iosX64, iosArm64, iosSimulatorArm64).
- androidx.navigation:navigation-testing does not seem to be compatible with ios.
- I have tried to use androidUnitTest with Robolectric but I get java.lang.NullPointerException: encode(...) must not be null, it is failing in NavUriUtils.encode internally in the androidx.navigation library
- I have not tried to create a new jvm target and write tests in jvmTest, as suggestsed here: https://issuetracker.google.com/issues/349807172, because I am not needing it and creating it would mean a number of actual implementations that would not serve any purpose.
I could not find any source online with a concrete example.
Any help or guidance is more than welcome.