@@ -5,30 +5,23 @@ Dart won't error on C function signature mismatch, leading to obscure memory bug
5
5
6
6
## C libraries
7
7
8
- For Dart Native and unit tests:
8
+ For Dart Native and unit tests and for Flutter (` flutter_libs ` and ` sync_flutter_libs ` plugins)
9
+ on Linux and Windows:
10
+ ```
11
+ ./tool/set-c-version.sh 0.20.0
12
+ ```
9
13
10
- - Update [ install.sh] ( ../install.sh ) .
14
+ For the Flutter plugins on Android ([ view releases] ( https://github.com/objectbox/objectbox-java/releases ) ):
15
+ ```
16
+ ./tool/set-android-version.sh 3.7.1
17
+ ```
11
18
12
- For Flutter (` flutter_libs ` and ` sync_flutter_libs ` plugins):
19
+ For the Flutter plugins on iOS/macOS ([ view releases] ( https://github.com/objectbox/objectbox-swift/releases ) )
20
+ ```
21
+ ./tool/set-swift-version.sh 1.9.1
22
+ ```
13
23
14
- - Linux and Windows
15
- - Shortcut: search and replace e.g. ` set(OBJECTBOX_VERSION 0.20.0) ` in ` CMakeLists.txt ` .
16
- - [ flutter_libs Linux] ( ../flutter_libs/linux/CMakeLists.txt )
17
- - [ flutter_libs Windows] ( ../flutter_libs/windows/CMakeLists.txt )
18
- - [ sync_flutter_libs Linux] ( ../sync_flutter_libs/linux/CMakeLists.txt )
19
- - [ sync_flutter_libs Windows] ( ../sync_flutter_libs/windows/CMakeLists.txt )
20
- - Android ([ view releases] ( https://github.com/objectbox/objectbox-java/releases ) )
21
- ```
22
- ./tool/set-android-version.sh 3.7.1
23
- ```
24
- - Swift (iOS/macOS) ([ view releases] ( https://github.com/objectbox/objectbox-swift/releases ) )
25
- ```
26
- ./tool/set-swift-version.sh 1.9.1
27
- ```
28
-
29
- Note: the embedded C library and core version can be looked up
30
- for Android from the relevant core repository release tag and
31
- for Swift from its repos release tag and the core commit it points to.
24
+ For each, add an entry (see previous releases) to the [ CHANGELOG] ( ../objectbox/CHANGELOG.md ) .
32
25
33
26
## Dart C API bindings
34
27
Download source code of an [ objectbox-c release version] ( https://github.com/objectbox/objectbox-c/releases ) .
@@ -40,7 +33,11 @@ Download source code of an [objectbox-c release version](https://github.com/obje
40
33
- Execute ` dart run ffigen ` in the ` objectbox ` directory. This requires LLVM libraries
41
34
(see [ ffigen docs] ( https://pub.dev/packages/ffigen#installing-llvm )
42
35
and the ffigen section in [ pubspec.yaml] ( ../objectbox/pubspec.yaml ) ).
43
- - Copy/update enums from [ objectbox_c.dart] ( ../objectbox/lib/src/native/bindings/objectbox_c.dart )
44
- in [ enums.dart] ( ../objectbox/lib/src/modelinfo/enums.dart ) that need to be exposed to users .
36
+ - Copy/update enums that need to be exposed to users from [ objectbox_c.dart] ( ../objectbox/lib/src/native/bindings/objectbox_c.dart )
37
+ to [ enums.dart] ( ../objectbox/lib/src/modelinfo/enums.dart ) .
45
38
- Have a look at the changed files to see if some call sites need to be updated.
46
- - Update minimum C library and core version and notes in [ bindings.dart] ( ../objectbox/lib/src/native/bindings/bindings.dart ) .
39
+ - ⚠️ Update minimum C library and core version and notes as needed in [ bindings.dart] ( ../objectbox/lib/src/native/bindings/bindings.dart ) .
40
+
41
+ Note: the embedded C library and core version can be looked up
42
+ for Android from the relevant core repository release tag and
43
+ for Swift from its repos release tag and the core commit it points to.
0 commit comments