Skip to content

V3.8.0

Compare
Choose a tag to compare
@greenrobot-team greenrobot-team released this 13 Feb 14:15
· 57 commits to main since this release
  • Support creating file-less in-memory databases, e.g. for caching and testing. To create one use inMemory() when building a BoxStore:
    store = MyObjectBox.builder()
            .androidContext(context)
            .inMemory("test-db")
            .build();
    See the BoxStoreBuilder.inMemory() documentation for details.
  • Change BoxStore.deleteAllFiles() to support deleting an in-memory database.
  • The maxDataSizeInKByte() option when building a store is ready for production use. This is different from the existing maxSizeInKByte() option in that it is possible to remove data after reaching the limit and continue to use the database. See its documentation for more details.
  • Admin will now print a warning when it does not have permission to show the Admin notification. When testing your app on a device with Android 13 or newer, developers should manually turn on notifications to make use of the Admin notification.
  • Added examples on how to use Kotlin's unsigned integer types to https://docs.objectbox.io/advanced/custom-types
  • Restore compatibility with Kotlin 1.5. However, need to exclude kotlin-stdlib 1.8 from objectbox-kotlin as it includes classes previously in the -jdk7/-jdk8 libraries to avoid duplicate class file errors. So if not absolutely needed, we still recommend to use at least Kotlin 1.8.