realm-kotlin
realm-kotlin copied to clipboard
Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Our current `cinterop` package has a few problems if you want to build and publish packages for each platform independently. This PR fixes those issues. They were discovered while trying...
Seen in master on Android: https://ci.realm.io/job/realm/job/realm-kotlin/job/master/469/testReport/junit/io.realm.kotlin.test.shared/RealmTests/coroutineCancelCausesRollback/ ``` java.lang.AssertionError: expected: but was: at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:120) at kotlin.test.junit.JUnitAsserter.assertEquals(JUnitSupport.kt:32) at kotlin.test.AssertionsKt__AssertionsKt.assertEquals(Assertions.kt:63) at kotlin.test.AssertionsKt.assertEquals(Unknown Source:1) at kotlin.test.AssertionsKt__AssertionsKt.assertEquals$default(Assertions.kt:62) at kotlin.test.AssertionsKt.assertEquals$default(Unknown Source:1) at...
In Realm Java we have a test rule that makes it a lot easier to have a clean slate between unit tests. Among other things it does: - Easy access...
Minification and obfuscation is currently disabled. We need to provide proper definitions for these along with proper consumer definitions for library consumers.
When doing incremental builds, it looks like Jenkins has some logic around the timestamp for test results files. And fail if they are too old. Currently we implemented a work-around...
E.g.: ``` e: [Realm Compiler Plugin] 2021-11-21T14:17:50.921229Z Primary key _id is of type WorkEntryId but must be of type [Byte, Char, Short, Int, Long, String] ``` It should also print...
Inline classes are a great way to allow greater type-safety in API's, e.g. something like: ``` inline class WorkTypeId(val id: Long) class WorkType() : RealmObject { var _id: WorkTypeId =...
Similar to Realm Java we should expose a way to delete all objects of a given type. ```kotlin MutableRealm.delete(clazz: Clazz) ```