Wednesday, February 24, 2021

pydroid

A small update has been released for PYDroid bringing it to 22.6.1.

The only API change in this release is hopefully minor - it changes setState functions to allow for the stateChange lambda to be a suspending function. For Kotlin users there should be basically zero code change. For Java users, this will change the function signature because in Java suspending functions are implemented as Continuation resume callbacks. While this change may be slightly more painful for Java, as Android continues moving to a Kotlin first ecosystem modern codebases must be ready to follow. PYDroid is Kotlin first and Java friendly, but I cannot make Java compatibility guarantees as I largely do not use Java anymore.

If the change to suspending state change callbacks causes issues, please file a bug report and let me know.

Stay tuned!