Runtime requiments/footprint for Kotlin


#1

Hello, I am new to Kotlin and have some basic questions which I have not find in the documentation:

  • Are there any runtime requirements for Kotlin like a runtime library or inline the compiler all needed as bytecode?
  • Does Android include already this runtime library or must every app deploy this footprint?
  • How large is this runtime library footprint?

Volker


#2

Kotlin applications require kotlin-stdlib dependency being shipped with them. You can check its size and method count here: http://www.methodscount.com/?lib=org.jetbrains.kotlin%3Akotlin-stdlib%3A%2B
As of 1.1.2-4 version it’s 900 KB and 6300 methods.