-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
I use realm in KMM.
Realm Object is this.
Unable to find source-code formatter for language: kotlin. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
class ItemEntity : RealmObject { var itemId: String = "" } class HabitEntity : RealmObject { var habitType: String = "" }
Repository is this.
Unable to find source-code formatter for language: kotlin. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
class ItemRepository { lateinit var configuration: RealmConfiguration fun initialize() { configuration = RealmConfiguration.create( schema = setOf( ItemEntity::class, HabitEntity::class ) ) } }
When I start app in Android, app crashed.
I think realm object is good, why I have a crash?
I found same probrem here.
[Mongo DB Realm \- Only subclasses of RealmObject and EmbeddedRealmObject are allowed in the schema \| SolveForum|https://solveforum.com/forums/threads/mongo-db-realm-only-subclasses-of-realmobject-and-embeddedrealmobject-are-allowed-in-the-schema.1463424/]
Is this bug? Or my mistake?
kotlin: 1.6.10
realm: 1.1.0