-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support default schema creation #90
Comments
Things we need to tackle:
Some background from Realm Java
This approach means that app projects work out of the box, while library modules require extra work. So far, this seems to have been a sensible tradeoff, but it is unclear if the same would work for Multiplatform where Realm primarily is used within a library module. |
Also bear in mind the following compiler constraints expressed in #156 (comment) |
Maybe some ideas for doing this can be found here: https://kotlinlang.slack.com/archives/C7L3JB43G/p1634316429144100?thread_ts=1634306190.142200&cid=C7L3JB43G |
Having Realm automatically detect all RealmObjects in a project and use that as a default schema would be great. Any chance this can be re-visited? |
Currently, we have to pass in a class annotated with
RealmModule
which captures some or all the models that we would like to participate in the Realm scheam. This works fines for modules and library but adds an extra step to open a Realm of you want the default behaviour that consist of using all the annotatedRealmObject
classesThe text was updated successfully, but these errors were encountered: