Skip to content

Commit 0d98007

Browse files
Merge branch '134-jwt-and-multi-credentials' into 'main'
Support JWT and multiple credentials #134 See merge request objectbox/objectbox-dart!99
2 parents 72397ca + 8cc0c4d commit 0d98007

File tree

21 files changed

+1087
-88
lines changed

21 files changed

+1087
-88
lines changed

dev-doc/updating-c-library.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,61 +19,61 @@ for the binding update script (see below) and
1919
for Flutter (`flutter_libs` and `sync_flutter_libs` plugins) on Linux and Windows:
2020

2121
```bash
22-
./tool/set-c-version.sh 4.0.2
22+
./tool/set-c-version.sh 4.1.0
2323
```
2424

2525
```text
26-
* Flutter for Linux/Windows, Dart Native: update to [objectbox-c 4.0.2](https://github.com/objectbox/objectbox-c/releases/tag/v4.0.2).
26+
* Flutter for Linux/Windows, Dart Native: update to [objectbox-c 4.1.0](https://github.com/objectbox/objectbox-c/releases/tag/v4.1.0).
2727
```
2828

2929
```text
30-
Update C library [4.0.1 -> 4.0.2]
30+
Update C library [4.0.2 -> 4.1.0]
3131
```
3232

3333
### Android
3434

3535
For the Flutter plugins on Android ([view releases](https://github.com/objectbox/objectbox-java/releases)):
3636

3737
```bash
38-
./tool/set-android-version.sh 4.0.3
38+
./tool/set-android-version.sh 4.1.0
3939
```
4040

4141
```text
42-
* Flutter for Android: update to [objectbox-android 4.0.3](https://github.com/objectbox/objectbox-java/releases/tag/V4.0.3).
42+
* Flutter for Android: update to [objectbox-android 4.1.0](https://github.com/objectbox/objectbox-java/releases/tag/V4.1.0).
4343
If your project is [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make sure to
44-
update to `io.objectbox:objectbox-android-objectbrowser:4.0.3` in `android/app/build.gradle`.
44+
update to `io.objectbox:objectbox-android-objectbrowser:4.1.0` in `android/app/build.gradle`.
4545
```
4646

4747
```text
48-
Update objectbox-android [4.0.2 -> 4.0.3]
48+
Update objectbox-android [4.0.3 -> 4.1.0]
4949
50-
Bundled with C API 4.0.1 and ObjectBox 4.0.2-2024-10-15
50+
Bundled with C API 4.1.0 and ObjectBox 4.1.0-2025-01-28
5151
```
5252

5353
Note: the embedded C API and ObjectBox version can be looked up
54-
from the relevant objectbox repository release tag (like `java-4.0.3`).
54+
from the relevant objectbox repository release tag (like `java-4.1.0`).
5555

5656
### Apple OSs
5757

5858
For the Flutter plugins on iOS/macOS ([view releases](https://github.com/objectbox/objectbox-swift/releases))
5959

6060
```bash
61-
./tool/set-swift-version.sh 4.0.1
61+
./tool/set-swift-version.sh 4.1.0
6262
```
6363

6464
```text
65-
* Flutter for iOS/macOS: update to [objectbox-swift 4.0.1](https://github.com/objectbox/objectbox-swift/releases/tag/v4.0.1).
65+
* Flutter for iOS/macOS: update to [objectbox-swift 4.1.0](https://github.com/objectbox/objectbox-swift/releases/tag/v4.1.0).
6666
For existing projects, run `pod repo update` and `pod update ObjectBox` in the `ios` or `macos` directories.
6767
```
6868

6969
```text
7070
Update ObjectBox Swift [4.0.0 -> 4.0.1]
7171
72-
Bundled with C API 4.0.2 and ObjectBox 4.0.2-2024-10-15
72+
Bundled with C API 4.1.0 and ObjectBox 4.1.0-2025-01-30
7373
```
7474

7575
Note: the embedded C API and ObjectBox version can be looked up
76-
from the objectbox-swift release tag (like `v4.0.1`) and
76+
from the objectbox-swift release tag (like `v4.1.0`) and
7777
the objectbox commit it points to (see `external/objectbox`).
7878

7979
## Dart C API bindings
@@ -96,5 +96,5 @@ Then manually:
9696
- Commit as
9797

9898
```text
99-
Update C-API [4.0.1 -> 4.0.2]
99+
Update C-API [4.0.2 -> 4.1.0]
100100
```

flutter_libs/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ android {
5252
// ObjectBox Android library that includes an ObjectBox C library version compatible with
5353
// the C API binding of the ObjectBox Dart package.
5454
// https://central.sonatype.com/search?q=g:io.objectbox%20objectbox-android
55-
implementation "io.objectbox:objectbox-android:4.0.3"
55+
implementation "io.objectbox:objectbox-android:4.1.0"
5656
}
5757
}

flutter_libs/ios/objectbox_flutter_libs.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.source_files = 'Classes/**/*'
1919

2020
s.dependency 'Flutter'
21-
s.dependency 'ObjectBox', '4.0.1'
21+
s.dependency 'ObjectBox', '4.1.0'
2222

2323
# Flutter.framework does not contain a i386 slice.
2424
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

flutter_libs/linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
4444
# ----------------------------------------------------------------------
4545
# Download and add objectbox-c prebuilt library.
4646

47-
set(OBJECTBOX_VERSION 4.0.2)
47+
set(OBJECTBOX_VERSION 4.1.0)
4848

4949
set(OBJECTBOX_ARCH ${CMAKE_SYSTEM_PROCESSOR})
5050
if (${OBJECTBOX_ARCH} MATCHES "x86_64")

flutter_libs/macos/objectbox_flutter_libs.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.source_files = 'Classes/**/*'
1919

2020
s.dependency 'FlutterMacOS'
21-
s.dependency 'ObjectBox', '4.0.1'
21+
s.dependency 'ObjectBox', '4.1.0'
2222

2323
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
2424
s.swift_version = '5.3'

flutter_libs/windows/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ set(objectbox_flutter_libs_bundled_libraries
5050
# ----------------------------------------------------------------------
5151
# Download and add objectbox-c prebuilt library.
5252

53-
set(OBJECTBOX_VERSION 4.0.2)
53+
set(OBJECTBOX_VERSION 4.1.0)
5454

5555
set(OBJECTBOX_ARCH ${CMAKE_SYSTEM_PROCESSOR})
5656
if (${OBJECTBOX_ARCH} MATCHES "AMD64")

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -eu
55
# It's important that the generated dart bindings and the c-api library version match. Dart won't error on C function
66
# signature mismatch, leading to obscure memory bugs.
77
# For how to upgrade the version see dev-doc/updating-c-library.md
8-
cLibVersion=4.0.2
8+
cLibVersion=4.1.0
99
os=$(uname)
1010
cLibArgs="$*"
1111

objectbox/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
## latest
22

3+
* Flutter for Linux/Windows, Dart Native: update to [objectbox-c 4.1.0](https://github.com/objectbox/objectbox-c/releases/tag/v4.1.0).
4+
* Flutter for Android: update to [objectbox-android 4.1.0](https://github.com/objectbox/objectbox-java/releases/tag/V4.1.0).
5+
If your project is [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make sure to
6+
update to `io.objectbox:objectbox-android-objectbrowser:4.1.0` in `android/app/build.gradle`.
7+
* Flutter for iOS/macOS: update to [objectbox-swift 4.1.0](https://github.com/objectbox/objectbox-swift/releases/tag/v4.1.0).
8+
For existing projects, run `pod repo update` and `pod update ObjectBox` in the `ios` or `macos` directories.
9+
10+
### Sync
11+
12+
* Add [JWT authentication](https://sync.objectbox.io/sync-server-configuration/jwt-authentication).
13+
* Sync clients can send multiple credentials for login.
14+
315
## 4.0.3 (2024-10-17)
416

517
* Generator: replace cryptography library, allows to use newer versions of the transitive `js` dependency. [#638](https://github.com/objectbox/objectbox-dart/issues/638)

objectbox/example/flutter/objectbox_demo_relations/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ dependencies {
8282
// Add objectbox-android-objectbrowser only for debug builds.
8383
// Warning: when objectbox_flutter_libs updates check if version
8484
// needs update, e.g. check https://github.com/objectbox/objectbox-dart/releases.
85-
debugImplementation("io.objectbox:objectbox-android-objectbrowser:4.0.3")
85+
debugImplementation("io.objectbox:objectbox-android-objectbrowser:4.1.0")
8686
}

objectbox/lib/src/native/bindings/bindings.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@ ObjectBoxC? _tryObjectBoxLibFile() {
9494

9595
// Require the minimum C API version of all supported platform-specific
9696
// libraries.
97-
// Library | C API version | Core version
98-
// objectbox-c | 4.0.2 | 4.0.2-2024-10-15
99-
// ObjectBox Swift 4.0.1 | 4.0.2 | 4.0.2-2024-10-15
100-
// objectbox-android 4.0.3 | 4.0.1 | 4.0.2-2024-10-15
97+
// Library | C API | Core
98+
// ------------------------|-------|-----------------
99+
// objectbox-c | 4.1.0 | 4.1.0-2025-01-28
100+
// ObjectBox Swift 4.1.0 | 4.1.0 | 4.1.0-2025-01-30
101+
// objectbox-android 4.1.0 | 4.1.0 | 4.1.0-2025-01-28
101102
var _obxCminMajor = 4;
102-
var _obxCminMinor = 0;
103-
var _obxCminPatch = 1;
103+
var _obxCminMinor = 1;
104+
var _obxCminPatch = 0;
104105
// Require minimum core version guaranteeing actual C API availability.
105-
var _obxCoreMinVersion = "4.0.2-2024-10-15";
106+
var _obxCoreMinVersion = "4.1.0-2025-01-28";
106107

107108
bool _isSupportedVersion(ObjectBoxC obxc) {
108109
if (!obxc.version_is_at_least(_obxCminMajor, _obxCminMinor, _obxCminPatch)) {

0 commit comments

Comments
 (0)