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

Tung97 Hl

12/27/2022, 4:39 PM
Hi everyone. I’m trying to config the new KMM project. We have a plan to make both the android and iOS versions, but the iOS app should be started after the android app is done. So the issue is: - I remove all configs about the native target in the Gradle build file (please take a look at the picture below). - If I delete the part from 11-19, the androidMain can not see commonMain. - On the other hand, if I keep it, the “expect” function will complain that I have no “actual” implementation in iOS. I want to declare all “expect” functions and implement them in android first. After that when my team has an iOS developer I will implement it in iOS. Please help me. Thanks in advance.
k

Kirill Zhukov

12/27/2022, 9:53 PM
android()
configures
androidMain
that depends on
commonMain
already, you can probably drop 29-31 configuration.
n

Nicolas Patin

12/28/2022, 9:53 AM
You can also keep the iOS target and fill the
actual
methods in iosMain with some
TODO()
t

Tung97 Hl

12/29/2022, 5:09 AM
Thank you @Nicolas Patin I forgot it 🫠
2 Views