Kotlin is an actively used programming language created in 2011. Kotlin is a statically-typed programming language that runs on the Java virtual machine and also can be compiled to JavaScript source code or use the LLVM compiler infrastructure. Its primary development is from a team of JetBrains programmers based in Saint Petersburg, Russia. While the syntax is not compatible with Java, Kotlin is designed to interoperate with Java code and is reliant on Java code from the existing Java Class Library, such as the collections framework. Read more on Wikipedia...

8Years Old 35,876Users 32Jobs

Example code from the Hello World Collection:

// Hello world in Kotlin

fun main(args : Array<String>) {
    println("Hello, world!")

Example code from Linguist:

package addressbook

class Contact(
  val name : String,
  val emails : List<EmailAddress>,
  val addresses : List<PostalAddress>,
  val phonenums : List<PhoneNumber>

class EmailAddress(
  val user : String,
  val host : String

class PostalAddress(
  val streetAddress : String,
  val city : String,
  val zip : String,
  val state : USState?,
  val country : Country
) {
   assert {(state == null) xor (country == Countries["US"]) }

class PhoneNumber(
  val country : Country,
  val areaCode : Int,
  val number : Long

object Countries {
  fun get(id : CountryID) : Country = countryTable[id]
  private var table : Map<String, Country>? = null
  private val countryTable : Map<String, Country>
    get() {
      if (table == null) {
        table = HashMap()
        for (line in TextFile("countries.txt").lines(stripWhiteSpace = true)) {
          table[line] = Country(line)
      return table

class Country(val name : String)

Example code from Wikipedia:

// returns null if...
  // - foo() returns null,
  // - or if foo() is non-null, but bar() returns null,
  // - or if foo() and bar() are non-null, but baz() returns null.
  // vice versa, return value is non-null if and only if foo(), bar() and baz() are non-null

Trending Repos

repo stars description
iosched 19058 The Google I/O 2019 Android App
tachiyomi 4268 Free and open source manga reader for Android
tivi 2337 Tivi is a work-in-progress TV show tracking Android app, which connects to Trakt.tv. It is still in its early stages of development and currently only contains two pieces of UI. It is under heavy development.
Design-Patterns-In-Kotlin 3176 Design Patterns implemented in Kotlin
kotlinx.coroutines 5850 Library support for Kotlin coroutines
android-architecture-components 14412 Samples for Android Architecture Components.
CalendarView 979 A highly customizable calendar library for Android, powered by RecyclerView.
android-sunflower 8355 A gardening app illustrating Android development best practices with Android Jetpack.
android-UniversalMusicPlayer 11093 This sample shows how to implement an audio media app that works across multiple form factors and provide a consistent user experience on Android phones, tablets, Auto, Wear and Cast devices
shadowsocks-android 26014 A shadowsocks client for Android
fq-book 1392 📖 《这本书能让你连接互联网》科学上网Freestyle,了解网络基础知识与实践蹭网操作
plaid 13763 An Android app which provides design news & inspiration as well as being an example of implementing material design.
Exposed 2964 Kotlin SQL Framework
MvRx 3188 MvRx: Android on Autopilot
awesome-kotlin 7695 A curated list of awesome Kotlin related stuff Inspired by awesome-java.
kotlin 28954 The Kotlin Programming Language
sqldelight 2745 SQLDelight - Generates typesafe Kotlin APIs from SQL
UserLAnd 1312 Main UserLAnd Repository
android-dynamic-features 401
koin 4173 KOIN - a pragmatic lightweight dependency injection framework for Kotlin
kitsunebi-android 546 A fully-featured V2Ray client for Android.
Android-Kotlin-Clean-Architecture 767 Android Sample Clean Architecture App written in Kotlin
detekt 2289 Static code analysis for Kotlin
Lightning-Browser 1442 A lightweight Android browser with modern navigation
fuel 3012 The easiest HTTP networking library for Kotlin/Android

Last updated October 14th, 2019