From 934784826493e14496fe6a5de6018580828cb770 Mon Sep 17 00:00:00 2001 From: Uwe <13865709+greenrobot-team@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:16:45 +0200 Subject: [PATCH] Prepare Java release 4.0.3 --- README.md | 2 +- build.gradle.kts | 2 +- objectbox-java/src/main/java/io/objectbox/BoxStore.java | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1972b659..f79cf9dc 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ For Android projects, add the ObjectBox Gradle plugin to your root `build.gradle ```groovy buildscript { - ext.objectboxVersion = "4.0.2" + ext.objectboxVersion = "4.0.3" repositories { mavenCentral() } diff --git a/build.gradle.kts b/build.gradle.kts index a135e32a..a9c1fadc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ buildscript { // To publish a release, typically, only edit those two: val objectboxVersionNumber = "4.0.3" // without "-SNAPSHOT", e.g. "2.5.0" or "2.4.0-RC" val objectboxVersionRelease = - false // set to true for releasing to ignore versionPostFix to avoid e.g. "-dev" versions + true // set to true for releasing to ignore versionPostFix to avoid e.g. "-dev" versions // version post fix: "-" or "" if not defined; e.g. used by CI to pass in branch name val versionPostFixValue = project.findProperty("versionPostFix") diff --git a/objectbox-java/src/main/java/io/objectbox/BoxStore.java b/objectbox-java/src/main/java/io/objectbox/BoxStore.java index 5e67e1ab..bf97c030 100644 --- a/objectbox-java/src/main/java/io/objectbox/BoxStore.java +++ b/objectbox-java/src/main/java/io/objectbox/BoxStore.java @@ -73,10 +73,11 @@ public class BoxStore implements Closeable { /** Prefix supplied with database directory to signal a file-less and in-memory database should be used. */ public static final String IN_MEMORY_PREFIX = "memory:"; - /** Change so ReLinker will update native library when using workaround loading. */ - public static final String JNI_VERSION = "4.0.2"; + /** ReLinker uses this as a suffix for the extracted shared library file. If different, it will update it. */ + public static final String JNI_VERSION = "4.0.2-2024-10-15"; - private static final String VERSION = "4.0.2-2024-08-19"; + /** The native or core version of ObjectBox the Java library is known to work with. */ + private static final String VERSION = "4.0.2-2024-10-15"; private static BoxStore defaultStore; /** Currently used DB dirs with values from {@link #getCanonicalPath(File)}. */