Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Thanks for the feedback on improving the docs. This and other Doodle apps work atop Kotlin and can be KMM or single-target. One of those targets needs to be Javascript (browser) to make something runnable in the browser. They build using gradle tasks that are present when using the kotlin("js") or kotlin("multiplatform") plugin configurations. These result in tasks like jsbrowserProductionWebPack or browserProductionWebPack for KMM and JS-only respectively. These generate Javascript from the Kotlin and output it, along with the HTML and resource files included in the project directory structure. Here is the HTML file for the PhotosFullScreen app. There is a bit of custom build stuff for these demos to avoid including a main function in them directly, so they can be treated as libraries by the DocApps app. It is the one that generates the JS that can be included in the documentation for the site. Otherwise, the all the apps would have their fullScreen functions simply be main and include an HTML file in their resources directory that points to say Photos.js.