Skip to content

This project is a minimum example of Kotlin Multiplatform Project.

Notifications You must be signed in to change notification settings

AAkira/mpp-example

Repository files navigation

Kotlin Multiplatform Project Example

This project is a minimum mpp project.

This application has Android, iOS, Web and Server modules.
The server returns a simple JSON object and clients show it on each view.

Example for

I made this repository for explaining my presentation and book.
I'm sorry both are in Japanese.

  • Kotlin Fest 2019発表時のサンプルはこちら
    Tag: KotlinFest2019
    Slide link: Speaker deck

  • みんなのKotlin執筆時のサンプルはこちら
    Tag: KotlinForEveryone
    Book link: Amazon

Run on each platform

Android

It works on Android Studio.

preview-android

iOS

It works on XCode.

preview-ios

Web

It works on Web browsers.

preview-web

  • Build command

./gradlew :web:browserWebpack

  • Open this file on your browser after building.

/web/src/main/resources/index.html

Server

It works on localhost:8080.

preview-server

  • Run

./gradlew :server:run