October 2019
Intermediate to advanced
434 pages
11h 54m
English
We now want to create a new Gradle module in our project that will contain the Android project. You can do this by right-clicking the root package in the IDE and navigating to New | Module. We'll name this module :androidapp and, after its initial creation, it should have the following structure:
root/androidapp build.gradle src/main/java/com/packt/kotlinmultiplatform/MainActivity.kt src/main/res/* AndroidManifest.xml
The src/main/res/ directory will simply contain the default resources created by Android Studio or IntelliJ and these aren't a factor in how we will consume our shared Kotlin code.
androidapp/build.gradle is a standard Android build.gradle file as we saw previously in Chapter 13, Kotlin on Android, with ...
Read now
Unlock full access