Skip to content

Commit 6438006

Browse files
CHANGELOG: put some important things first.
1 parent 3b43e72 commit 6438006

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

objectbox/CHANGELOG.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
## latest
22

3-
* Avoid conflicts with entity class names in generated code [#519](https://github.com/objectbox/objectbox-dart/issues/519)
4-
* For Flutter apps: `loadObjectBoxLibraryAndroidCompat()` is now called by default when using
5-
`openStore()` (effective after re-running `flutter pub run build_runner build`). For devices
6-
running Android 6 or older this will pre-load the ObjectBox library in Java to prevent errors when
7-
loading it in Dart.
8-
9-
If your code was calling the compat method manually, remove the call and re-run above command.
10-
11-
Let us know if there are issues with this change in [#369](https://github.com/objectbox/objectbox-dart/issues/369)!
3+
* Support creating file-less in-memory databases, for example for caching or testing. To create one
4+
pass an in-memory identifier together with `Store.inMemoryPrefix` as the `directory`:
5+
```dart
6+
final inMemoryStore =
7+
Store(getObjectBoxModel(), directory: "${Store.inMemoryPrefix}test-db");
8+
```
9+
See the `Store` documentation for details.
10+
* Add `Store.removeDbFiles()` to conveniently delete database files or an in-memory database.
11+
* Add `Store.dbFileSize()` to get the size in bytes of the main database file or memory occupied by
12+
an in-memory database.
1213
* Add `relationCount()` query condition to match objects that have a certain number of related
1314
objects pointing to them. E.g. `Customer_.orders.relationCount(2)` will match all customers with
1415
two orders. `Customer_.orders.relationCount(0)` will match all customers with no associated order.
@@ -40,16 +41,15 @@
4041
int get computedValue => TODO;
4142
set computedValue(int value) => TODO;
4243
```
43-
* Support creating file-less in-memory databases, for example for testing. To create one pass an
44-
in-memory identifier together with `Store.inMemoryPrefix` as the `directory`:
45-
```dart
46-
final inMemoryStore =
47-
Store(getObjectBoxModel(), directory: "${Store.inMemoryPrefix}test-db");
48-
```
49-
See the `Store` documentation for details.
50-
* Add `Store.removeDbFiles()` to conveniently delete database files or an in-memory database.
51-
* Add `Store.dbFileSize()` to get the size in bytes of the main database file or memory occupied by
52-
an in-memory database.
44+
* For Flutter apps: `loadObjectBoxLibraryAndroidCompat()` is now called by default when using
45+
`openStore()` (effective after re-running `flutter pub run build_runner build`). For devices
46+
running Android 6 or older this will pre-load the ObjectBox library in Java to prevent errors when
47+
loading it in Dart.
48+
49+
If your code was calling the compat method manually, remove the call and re-run above command.
50+
51+
Let us know if there are issues with this change in [#369](https://github.com/objectbox/objectbox-dart/issues/369)!
52+
* Avoid conflicts with entity class names in generated code [#519](https://github.com/objectbox/objectbox-dart/issues/519)
5353
* Flutter for Linux/Windows, Dart Native: update to [objectbox-c 0.21.0](https://github.com/objectbox/objectbox-c/releases/tag/v0.21.0).
5454
* Flutter for Android: update to [objectbox-android 3.8.0](https://github.com/objectbox/objectbox-java/releases/tag/V3.8.0).
5555
If you are [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make sure to

0 commit comments

Comments
 (0)