Proove of Concept for Is it possible to create library for Java & JavaScript/TypeScript
This is an example kotlin library that can be accessed by both Java and JavaScript/Angular code.
- The source files can be found in
src/commonMain/kotlin
. - The compiled kotlin JVM classes can be found under
build/classes/kotlin/jvm/main
. - The compiled kotlin JavaScript package can be found under
build/js/packages/kotlinToJavaAndJS
. - A java module using this library can be found in
java-mod
. - An Angular module using this library can be found in
angular-mod
.