/android-example-kotlin

An example of basic Android application setup using Kotlin. It can run Robolectric and Espresso tests.

Primary LanguageKotlin

Android Example Kotlin

An example of basic Android application setup using Kotlin, including Robolectric tests.

This is an example built from the three following sources

  • Deckard Gradle (from the Robolectric team) demonstrates the base structure for running Robolectric tests through gradle.
  • tests-app-robolectric-junit (by Paul Blundell) demonstrates how to use a components based structure in order to make Robolectric tests well supported by Android Studio.
  • Kotlin Android Tutorial On how to convert the existing Java sctructure to Kotlin.

I haven't done any extra work on making the code nicer using Kotlin. This project is just a nice minimal starter for any android project using Kotlin and Robolectric.

Setup

Use Android Studio