Currently, in documentation, nothing in the documentation said what the project structure should be to make generated code work. I have found few cases when it doesn't work.
It works if kaluga:resourses imported in a shared project and was not exported to a framework.
It doesn't work if
kaluga:resourses was exported to a framework
We have a base project and kaluga:resourses was imported there, then the subproject was exported as a framework.
Currently, in documentation, nothing in the documentation said what the project structure should be to make generated code work. I have found few cases when it doesn't work.
It works if
kaluga:resourses
imported in a shared project and was not exported to a framework.It doesn't work if
kaluga:resourses
was exported to a frameworkkaluga:resourses
was imported there, then the subproject was exported as a framework.A concrete example.
We have a project with structure:
In build.gradle.kts(:shared):
In build.gradle.kts(:fit):
This structure will work with
kaluga-swiftui
Now let's assume we have some code in shared we want to export in the framework. So we add such configuration in build.grade(:fit):
This structure will NOT work with
kaluga-swiftui
The project will not compile because it will not find ResourcesColor