icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.03k stars 119 forks source link

Moko resources and tvOS support #739

Open muralex-e opened 1 week ago

muralex-e commented 1 week ago

Hello!

I have a few questions about tvOS platform compatibility with moko resources.

A general question: are there any plans to support tvOS?

If not, are there any suggestions how to manage moko resources and tvOS app in one project? So, I have a KMP project where I am already using moko resources for Android and iOS. However, if moko resources are included or enabled in the some shared module exported to tvOS app, it makes impossible to build the app.

For example, I have a separate resources module, but as it is described in the section Multi-module Gradle projects

You should enable moko-resources gradle plugin in resources module, that contains resources, AND in shared module

But in this case, tvOS target can't be included into this shared module since moko resources will conflict with tvOS app.

Any suggestions or examples how to handle this situation?

Alex009 commented 1 week ago

hi. i think you can add support of tvOS same way as #648 core implementation already done in Apple generators. so you can do same as in #648 and send PR to us