Hello devs,
We are developing a custom Cordova Android plugin in Kotlin that wraps the Clerk Android SDK (com.clerk:clerk-android-api:1.0.35) for shared session synchronization across sibling OutSystems Native Mobile applications.
My problem :Simple Java plugins (Echo.java) work instantly and return callbacks to the Webview. When using Kotlin (ClerkPlugin.kt), exec() stays pending without throwing a visible error in JavaScript. Clerk.initialize is dispatched on cordova.activity.runOnUiThread.
Is there a specific classloader setting or reflection requirement for Kotlin plugin entry points in OutSystems Mobile App Builder?
We would like to get recommendations and best practices from the community regarding Kotlin version compatibility, Gradle plugin configuration, and MAB build engine behavior for custom Kotlin-native plugins.Any advice or insights from the community would be greatly appreciated! Context For plugin pls refer thishttps://github.com/mohans1136-dev/echo-test-plugin#main
Plugin & Environment Details
Extensibility Configuration (Service Studio)
plugin.xml
build-extras.gradleFolder Struture