Open multiport opened 1 year ago
but if I use tvos code as an ios one, it should be possible to works isnt it
No, all dependencies should support tvOS to be able to use it in your project.
Compose can support tvOS in the future, but first we need to bring iOS support to the better state.
but if I use tvos code as an ios one, it should be possible to works isnt it
No, all dependencies should support tvOS to be able to use it in your project.
Compose can support tvOS in the future, but first we need to bring iOS support to the better state.
Thanks for your fast answer, basicaly about what I read the IOS code works directly on TVOS.
So I just plan to make a reponsive IOS app who would execute on tvos too with almost no difference (just plan to manage the key listener and focus change) like an android app on android TV without leanback. Is this not possible currnetly ?
IOS code works directly on TVOS.
It can work in the Apple tooling ecosystem, but Kotlin Multiplatform doesn't support this. Maybe there are some loopholes, but I am not aware of them. Kotlin Multiplatform requires that every dependency should be compiled against the target platform, even if the code is the same.
So it means I can't create a KMM project with compose for android and ios if i target tvos (with a dedicated UI instaead of compose) ?
So it means I can't create a KMM project with compose for android and ios
If you don't use any dependencies (libraries I mean), you can. Also, you can, if all of the dependencies support tvOS.
with compose for android and ios
Just depend on Compose only in androidMain
(not in commonMain
) and use a native UI in iosMain
. Then you be able to depend tvOSMain
on iOSMain
.
Ok thank you very much.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Hello,
First of all, Thanks for that amazing project, I try to use compose with KMM, I know its not avalaible for tvos but I was planing to use the ios part for tvos :
this is my build.gradle.kts for shared code :
As you can see above: the tvos part depends on ios
But i'm getting these error msg :
I dont know how compose works behind but if I use tvos code as an ios one, it should be possible to works isnt it ? If yes , how can I resolve these errors message ? Thanks