Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Universal Kotlin

Application -> Mobile -> JVM -> Android

Module with an Android application.

It uses the common modules as dependencies.

Setting Up

export enabledModules="application-mobile-jvm-android"

Building

./gradlew :application-mobile-jvm-android:build

or in a simplified way (can run more tasks):

./gradlew build

Testing

./gradlew :application-mobile-jvm-android:check

or in a simplified way (can run more tasks):

./gradlew check

Running

Update the Android SDK or the Android Studio to its latest version, so the latest Android SDK will be available.

Make sure to enable the Android module, so IntelliJ will be able to automatically recognize the Android app and pre-configure it.

Create a new Run/Debug Configurations of type Android App on IntelliJ choosing the Android module.

Run the application through the simulator or mobile phone and wait until the application is installed and launched.

The output should be similar to this one:

["com.company.team.project.common.multiple_sources.jvm","com.company.team.project.common.single_source.common","com.company.team.project.common.single_source.jvm.common","com.company.team.project.application.mobile.jvm.android"]