Schema enforcement in Kotlin

Hello, I have question related to new Realm for Kotlin where Builder require specify list of objects (e.g. schema). On iOS it seems that this is not required. I wonder if this is something that is really required or and whenever same requirement will come on iOS. For us it would be better if we could add objects dynamically as long as we have one codebase with multiple configuration using different sets of objects. But if this is required and important we will find a way to handle it.

Currently, it is required due to the way the Kotlin Compiler works. I.e. setting it manually allow us to enable incremental compilation, which is quite significant when compiling the project.

We have some ideas for fixing it, but it will require some experimentation. You can follow Support default schema creation · Issue #90 · realm/realm-kotlin · GitHub for this issue.