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

Stefan de Kraker

11/22/2023, 10:42 PM
Hey guys, I have made a multiplatform app before, but just for the smartphone, now I wanted to make a smartwatch only app. I have a exciting standalone wearOS app I want to make multiplatform so I could make a iOS version. Does someone have already done this?
p

Pablichjenkov

11/22/2023, 11:12 PM
s

Stefan de Kraker

11/22/2023, 11:23 PM
Those projects all have a mobile app as well, I just want to target wearables
p

Pablichjenkov

11/23/2023, 12:05 AM
Ohh I see. Humm, I don't have one off the top of my mind. If you add only the wearable target, you get any error?
s

Stefan de Kraker

11/23/2023, 9:51 AM
Then I dont have a android an iosApp folder... so nothing to run
I know we can change the androidApp to work as a wearos app, because my source code it just any other app only targeted at a watch
But Im not sure if i could do the same for a iosApp
p

Pablichjenkov

11/23/2023, 12:23 PM
I see your point. I just did some search and found this article https://cafonsomota.medium.com/adding-a-new-target-to-your-kmp-project-hello-watchos-92aeb0272cf8 I would have to test if using the watchOS* whatever targets works standalone.
4 Views