Skip to content

Releases: objectbox/objectbox-java

V3.0.0-alpha2

24 Mar 13:59
Compare
Choose a tag to compare
V3.0.0-alpha2 Pre-release
Pre-release

Note: this is a preview release. Future releases may add, change or remove APIs.

  • Add Kotlin infix extension functions for creating conditions using the new Query API. See the documentation for examples.
  • The old Query API now also supports setting an alias after combining conditions using and() or or(). #834
  • Add documentation that string property conditions ignore case by default. Point to using case-sensitive conditions for high-performance look-ups, e.g. when using string UIDs.
  • Java's String[] and Kotlin's Array<String> are now a supported database type. A converter is no longer necessary to store these types. Using the arrayProperty.equal("item") condition, it is possible to query for entities where "item" is equal to one of the array items.
  • Support @Unsigned to indicate that values of an integer property (e.g. Integer and Long in Java) should be treated as unsigned when doing queries or creating indexes. See the Javadoc of the annotation for more details.
  • Support marking 64-bit integer properties (e.g. Long in Java) with @Type(DateNano) to indicate the database should treat these values as time with nanosecond precision. Note: to store time in millisecond precision continue to use java.util.Date (without annotation). This is not ready, yet.
  • Add new library to support RxJava 3, objectbox-rxjava3. In addition, objectbox-kotlin adds extension functions to more easily obtain Rx types, e.g. use query.observable() to get an Observable. #839

To use this release change the version of objectbox-gradle-plugin to 3.0.0-alpha2. The plugin now properly adds the preview version of objectbox-java to your dependencies.

buildscript {
    dependencies {
        classpath "io.objectbox:objectbox-gradle-plugin:3.0.0-alpha2"
    }
}

dependencies {
    // Artifacts with native code remain at 2.5.1.
    implementation "io.objectbox:objectbox-android:2.5.1"
}

The objectbox-android, objectbox-linux, objectbox-macos and objectbox-windows artifacts shipping native code remain at version 2.5.1 as there have been no changes. If you explicitly include them, make sure to specify their version as 2.5.1.

V3.0.0-alpha1

09 Mar 12:36
Compare
Choose a tag to compare
V3.0.0-alpha1 Pre-release
Pre-release

Note: this is a preview release. Future releases may add, change or remove APIs.

  • A new Query API provides support for nested AND and OR conditions. See the documentation for examples and notable changes. #201
  • Subscriptions now publish results in serial instead of in parallel (using a single thread vs. multiple threads per publisher). Publishing in parallel could previously lead to outdated results getting delivered after the latest results. As a side-effect transformers now run in serial instead of in parallel as well (on the same single thread per publisher). #793
  • Turn on incremental annotation processing by default. #620

To use this release change the version of objectbox-gradle-plugin to 3.0.0-alpha1 and add a dependency on objectbox-java version 3.0.0-alpha1.

buildscript {
    dependencies {
        classpath "io.objectbox:objectbox-gradle-plugin:3.0.0-alpha1"
    }
}

dependencies {
    implementation "io.objectbox:objectbox-java:3.0.0-alpha1"
    // Artifacts with native code remain at 2.5.1.
    implementation "io.objectbox:objectbox-android:2.5.1"
}

The objectbox-android, objectbox-linux, objectbox-macos and objectbox-windows artifacts shipping native code remain at version 2.5.1 as there have been no changes. However, if your project explicitly depends on them they will pull in version 2.5.1 of objectbox-java. Make sure to add an explicit dependency on of objectbox-java version 3.0.0-alpha1 as mentioned above.

V2.5.1

17 Feb 09:00
Compare
Choose a tag to compare
  • Support Android Gradle Plugin 3.6.0. #817

  • Support for incremental annotation processing. #620
    It is off by default. To turn it on set objectbox.incremental to true in build.gradle:

    android {
        defaultConfig {
            javaCompileOptions {
                annotationProcessorOptions {
                    arguments = [ "objectbox.incremental" : "true" ]
                }
            }
        }
    }

https://docs.objectbox.io/#v-2-5-1-2020-02-10

V2.5.0

30 Jun 10:31
Compare
Choose a tag to compare
  • Important bug fix - please update if you are using N:M relations!
  • Several improvements, e.g. for property queries

See changelogs for details.

V2.4.1

04 Nov 08:22
Compare
Choose a tag to compare
  • More helpful error messages if annotations can not be combined.
  • Improved documentation on various annotations.

https://docs.objectbox.io/#v-2-4-1-2019-10-29

V2.4.0

15 Oct 13:01
Compare
Choose a tag to compare

This release has mainly quality of life improvements and resolves reported issues.

Android: after updating to this version your app might require changes before it can build successfully. See the upgrade notes for details: https://docs.objectbox.io/#v-2-4-0-2019-10-15

Release notes: https://docs.objectbox.io/

V2.4.0 Release Candidate

03 Oct 15:31
Compare
Choose a tag to compare
Pre-release

Changelog: https://docs.objectbox.io/

This is not the final release; and we will be very happy to get your feedback on it!

V2.3.4 Bug fix release

20 Mar 15:00
Compare
Choose a tag to compare

V2.3.3 Bug fix release

14 Feb 17:14
Compare
Choose a tag to compare

Fixed a bug introduced by V2.3.2 affecting older Android versions 4.3 and below (#656)
Changelog: https://docs.objectbox.io/

V2.3.1 Bug fix release

08 Jan 13:08
Compare
Choose a tag to compare