File tree 8 files changed +27
-19
lines changed
example/flutter/objectbox_demo_sync/lib
8 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ android {
12
12
13
13
dependencies {
14
14
// https://bintray.com/objectbox/objectbox/io.objectbox%3Aobjectbox-android
15
- implementation " io.objectbox:objectbox-android:2.8 .0"
15
+ implementation " io.objectbox:objectbox-android:2.9 .0"
16
16
}
Original file line number Diff line number Diff line change @@ -4,19 +4,21 @@ set -euo pipefail
4
4
# NOTE: run this script before publishing
5
5
6
6
# https://github.com/objectbox/objectbox-swift/releases/
7
- obxSwiftVersion=" 1.4.1 "
7
+ obxSwiftVersion=" 1.5.0 "
8
8
9
9
dir=$( dirname " $0 " )
10
10
11
- url=" https://github.com/objectbox/objectbox-swift/releases/download/v${obxSwiftVersion} /ObjectBox-framework -${obxSwiftVersion} .zip"
11
+ url=" https://github.com/objectbox/objectbox-swift/releases/download/v${obxSwiftVersion} /ObjectBox-xcframework -${obxSwiftVersion} .zip"
12
12
zip=" ${dir} /fw.zip"
13
13
14
14
curl --location --fail --output " ${zip} " " ${url} "
15
15
16
+ frameworkPath=Carthage/Build/ObjectBox.xcframework/ios-arm64/ObjectBox.framework
17
+
16
18
rm -rf " ${dir} /Carthage"
17
19
unzip " ${zip} " -d " ${dir} " \
18
- " Carthage/Build/iOS/ObjectBox.framework /Headers/*" \
19
- " Carthage/Build/iOS/ObjectBox.framework /ObjectBox" \
20
- " Carthage/Build/iOS/ObjectBox.framework /Info.plist"
20
+ " ${frameworkPath} /Headers/*" \
21
+ " ${frameworkPath} /ObjectBox" \
22
+ " ${frameworkPath} /Info.plist"
21
23
22
24
rm " ${zip} "
Original file line number Diff line number Diff line change 8
8
# * update lib/src/bindings/objectbox.h
9
9
# * execute pub run ffigen
10
10
# * have a look at the changed files to see if some call sites need to be updated
11
- cLibVersion=0.11 .0
11
+ cLibVersion=0.12 .0
12
12
os=$( uname)
13
13
14
14
# if there's no tty this is probably part of a docker build - therefore we install the c-api explicitly
Original file line number Diff line number Diff line change
1
+ ## latest
2
+
3
+ * Update to objectbox-c v0.12.0
4
+ * Update to objectbox-android v2.9.0
5
+ * Update to objectbox-swift v1.5.0
6
+
1
7
## 0.11.0 (2021-02-01)
2
8
3
9
* Add ` ToOne<> ` class to wrap related entities. See examples for details.
Original file line number Diff line number Diff line change 30
30
"name" : " date" ,
31
31
"type" : 6
32
32
}
33
- ]
33
+ ],
34
+ "relations" : []
34
35
}
35
36
],
36
37
"lastEntityId" : " 1:2802681814019499133" ,
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ android {
12
12
13
13
dependencies {
14
14
// https://bintray.com/objectbox/objectbox/io.objectbox%3Aobjectbox-android
15
- implementation " io.objectbox:objectbox-android:2.8 .0-sync"
15
+ implementation " io.objectbox:objectbox-android:2.9 .0-sync"
16
16
}
Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ set -euo pipefail
3
3
4
4
# NOTE: run this script before publishing
5
5
6
- echo " Sync-enabled objectbox-swift isn't released yet"
7
- exit 1
8
-
9
6
# https://github.com/objectbox/objectbox-swift/releases/
10
- obxSwiftVersion=" 1.4.1 "
7
+ obxSwiftVersion=" 1.5.0-sync-rc5 "
11
8
12
9
dir=$( dirname " $0 " )
13
10
14
- url=" https://github.com/objectbox/objectbox-swift/releases/download/v${obxSwiftVersion} /ObjectBox-framework-${obxSwiftVersion} .zip"
11
+ # url="https://github.com/objectbox/objectbox-swift/releases/download/v${obxSwiftVersion}/ObjectBox-framework-${obxSwiftVersion}.zip"
12
+ url=" https://github.com/objectbox/objectbox-swift-spec-staging/releases/download/v1.x/ObjectBox-xcframework-${obxSwiftVersion} .zip"
15
13
zip=" ${dir} /fw.zip"
16
14
17
15
curl --location --fail --output " ${zip} " " ${url} "
18
16
17
+ frameworkPath=Carthage/Build/ObjectBox.xcframework/ios-arm64/ObjectBox.framework
18
+
19
19
rm -rf " ${dir} /Carthage"
20
20
unzip " ${zip} " -d " ${dir} " \
21
- " Carthage/Build/iOS/ObjectBox.framework /Headers/*" \
22
- " Carthage/Build/iOS/ObjectBox.framework /ObjectBox" \
23
- " Carthage/Build/iOS/ObjectBox.framework /Info.plist"
21
+ " ${frameworkPath} /Headers/*" \
22
+ " ${frameworkPath} /ObjectBox" \
23
+ " ${frameworkPath} /Info.plist"
24
24
25
25
rm " ${zip} "
Original file line number Diff line number Diff line change 4
4
5
5
echo " Downloading iOS dependencies for package flutter libs"
6
6
" ${root} " /flutter_libs/ios/download-framework.sh
7
- # TODO enable once objectbox-swift with Sync is released
8
- # "${root}"/sync_flutter_libs/ios/download-framework.sh
7
+ " ${root} " /sync_flutter_libs/ios/download-framework.sh
9
8
10
9
echo " Commenting-out Carthage in .gitignore in flutter libs"
11
10
update flutter_libs/ios/.gitignore " s/^Carthage/#Carthage/g"
You can’t perform that action at this time.
0 commit comments