https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Damiano Giusti

01/29/2019, 4:46 PM
To whom will be interested, I managed to solve this problem by adding the
com.android.libray
plugin, allowing the
kotlin-multiplatform
plugin create the
presets.android
extension. You’ll need to create a
main
folder in your source root and add a valid AndroidManifest file, specifying the package name that will be used
👍 3
r

ribesg

01/30/2019, 8:59 AM
Note that you can change the name/location of that
main
folder
Copy code
android {

    …

    sourceSets {
        val main by getting {
            setRoot("src/androidMain")
        }
        val test by getting {
            setRoot("src/androidTest")
        }
    }

    …

}
(This is the android plugin block and not the kotlin MPP android target block)
👍 2
d

Damiano Giusti

01/30/2019, 9:08 AM
Thanks for the tip