The GiPStech MDK is implemented in Kotlin and extensively relies on Kotlin coroutines for asynchronous operations. However, Kotlin suspend functions cannot be directly invoked from Java code due to language-level limitations.
If your application is implemented in pure Java, you can work around the lack of coroutine support by implementing one or more Kotlin wrapper classes that expose the MDK’s suspend functions through either runBlocking or by launching coroutines on an appropriate CoroutineDispatcher.
For convenience, and to avoid introducing Kotlin into your Java codebase, we have published a collection of wrapper classes in this GitHub repository (si apre in una nuova scheda).
These classes provide blocking counterparts for the coroutine-based APIs of the GiPStech MDK. They enable seamless interoperability with Java applications by abstracting coroutine usage behind synchronous method calls, allowing integration without requiring any Kotlin knowledge or coroutine infrastructure.