EDIT: [Since the problem was fixed, this edit is now removed.]
So, we've always ran into the same problem of not having a block for something once in our lives or so.
I've created PlainKotlin, a custom extension (made with vibe-coding
) that allows you to insert Kotlin into your app.
PlainKotlinFIXED.aix (23.4 KB)
## Overview of Blocks:
whenPlainKotlin.ExecutionFailed: Does something when Kotlin execution fails.whenPlainKotlin.ExecutionFinished: Same asExecutionFailed, but does something if execution finishes instead.callPlainKotlin.RunRawKotlinCode: Runs your Custom Kotlin Code.PlainKotlin: Reporter Block for PlainKotlin.
PlainKotlin's Blocks
Example Usage:
PlainKotlin_ExampleApp_FIXED.aia (24.1 KB)
OR
This PlainKotlin use example solves a classic of the limitations of App Inventor blocks: It can't measure the execution time of code down to the milliseconds/nanoseconds to see how fast it runs.
Even the Clock component just updates in coarse intervals!
Any other Custom Kotlin-related things?
I'm happy to accept them.

