Using Gradle Script Kotlin for Android
Arturo Gutiérrez
3109

Hi Arturo:

Nice article! I can use gradle script kotlin to build an android app now. But I have a question, How did you find out the usage of project.schema.json??

I am trying to use Kotlin2Js in same project to share some source code between android and web front end, but I don’t how to find the correct setting for compileKotlin2Js. Here is the setting for groovy

compileKotlin2Js {
kotlinOptions.outputFile = "${projectDir}/web/js/app.js"
kotlinOptions.suppressWarnings = true
kotlinOptions.moduleKind = "amd"
kotlinOptions.verbose = true
kotlinOptions.sourceMap = true
}

Do you have any suggestion?

Like what you read? Give Freddie Wang a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.