Skip to content

Commit e1043c6

Browse files
committed
update native dependencies to the latest versions
C-API v0.12.0 Java v2.9.0 Swift v1.5.0
1 parent f053728 commit e1043c6

File tree

8 files changed

+27
-19
lines changed

8 files changed

+27
-19
lines changed

flutter_libs/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ android {
1212

1313
dependencies {
1414
// 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"
1616
}

flutter_libs/ios/download-framework.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ set -euo pipefail
44
# NOTE: run this script before publishing
55

66
# https://github.com/objectbox/objectbox-swift/releases/
7-
obxSwiftVersion="1.4.1"
7+
obxSwiftVersion="1.5.0"
88

99
dir=$(dirname "$0")
1010

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"
1212
zip="${dir}/fw.zip"
1313

1414
curl --location --fail --output "${zip}" "${url}"
1515

16+
frameworkPath=Carthage/Build/ObjectBox.xcframework/ios-arm64/ObjectBox.framework
17+
1618
rm -rf "${dir}/Carthage"
1719
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"
2123

2224
rm "${zip}"

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -eu
88
# * update lib/src/bindings/objectbox.h
99
# * execute pub run ffigen
1010
# * 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
1212
os=$(uname)
1313

1414
# if there's no tty this is probably part of a docker build - therefore we install the c-api explicitly

objectbox/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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+
17
## 0.11.0 (2021-02-01)
28

39
* Add `ToOne<>` class to wrap related entities. See examples for details.

objectbox/example/flutter/objectbox_demo_sync/lib/objectbox-model.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"name": "date",
3131
"type": 6
3232
}
33-
]
33+
],
34+
"relations": []
3435
}
3536
],
3637
"lastEntityId": "1:2802681814019499133",

sync_flutter_libs/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ android {
1212

1313
dependencies {
1414
// 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"
1616
}

sync_flutter_libs/ios/download-framework.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ set -euo pipefail
33

44
# NOTE: run this script before publishing
55

6-
echo "Sync-enabled objectbox-swift isn't released yet"
7-
exit 1
8-
96
# https://github.com/objectbox/objectbox-swift/releases/
10-
obxSwiftVersion="1.4.1"
7+
obxSwiftVersion="1.5.0-sync-rc5"
118

129
dir=$(dirname "$0")
1310

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"
1513
zip="${dir}/fw.zip"
1614

1715
curl --location --fail --output "${zip}" "${url}"
1816

17+
frameworkPath=Carthage/Build/ObjectBox.xcframework/ios-arm64/ObjectBox.framework
18+
1919
rm -rf "${dir}/Carthage"
2020
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"
2424

2525
rm "${zip}"

tool/publish.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
echo "Downloading iOS dependencies for package flutter libs"
66
"${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
98

109
echo "Commenting-out Carthage in .gitignore in flutter libs"
1110
update flutter_libs/ios/.gitignore "s/^Carthage/#Carthage/g"

0 commit comments

Comments
 (0)