Join Slack
Powered by
Hi all, I just followed this tutorial - <https://p...
# multiplatform
m
Miguel Fermin
09/21/2019, 5:57 PM
Hi all, I just followed this tutorial -
https://play.kotlinlang.org/hands-on/Targeting%20iOS%20and%20Android%20with%20Kotlin%20Multiplatform/01_Introduction
I got it to work, but now I want to be able to use android packages inside my
androidMain
. ideas?
l
louiscad
09/21/2019, 6:04 PM
Hi, the docs are here, search for Android inside:
https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html
m
Miguel Fermin
09/21/2019, 6:05 PM
thanks
a
alex009
09/22/2019, 4:50 AM
if you want move AndroidManifest & android resources to androidMain - you can use this code
https://github.com/icerockdev/mobile-multiplatform-gradle-plugin/blob/3514bbc0013405662e232b1c398587a92d199b2e/src/main/kotlin/dev/icerock/gradle/MobileMultiPlatformPlugin.kt#L19
or just setup this plugin like here -
https://github.com/icerockdev/moko-mvvm/blob/c669fa61c4356863d1f688f8f949ffc54679ad6f/sample/mpp-library/build.gradle.kts#L4
m
Miguel Fermin
09/23/2019, 11:48 AM
thanks!
Open in Slack
Previous
Next