![]() Using File > Settings, check compiler settings for Kotlin compiler. In our case we will call it library: package org.sample fun factorial ( n : Int ): Long = if ( n = 0 ) 1 else n * factorial ( n - 1 ) Let’s create a new Kotlin file under the source folder. ![]() We should now have the new project created and the following folder structure Of cource, you can choose copy library to some directory in your project, if you prefer. sample-library), and click the Create for Kotlin JS library. Which includes the JavaScript debugger and other JavaScript support features. The tutorial works with IntelliJ IDEA Community Edition as well as IntelliJ IDEA Ultimate.įor best experience developing Kotlin/JavaScript applications, we recommend using IntelliJ IDEA Ultimate, This tutorials walks us through creating a simple Kotlin/JavaScript library using IntelliJ IDEA. Creating Kotlin/JavaScript library with IntelliJ IDEA
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |