Skip to content

Commit dabc331

Browse files
author
Shubham
committed
Upgrade to OBX 5.0.0, download Sync version of C library only (temporarily)
1 parent bf41581 commit dabc331

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

download-c-lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Script used to download objectbox-c shared libraries for all supported platforms. Execute by running `make get-lib`
77
# on first checkout of this repo and any time after changing the objectbox-c lib version.
88

9-
version = "v4.0.0" # see objectbox/c.py required_version
10-
variant = 'objectbox' # or 'objectbox-sync'
9+
version = "v5.0.0" # see objectbox/c.py required_version
10+
variant = 'objectbox-sync' # or 'objectbox-sync'
1111

1212
base_url = "https://github.com/objectbox/objectbox-c/releases/download/"
1313

@@ -21,7 +21,7 @@
2121
"x86_64/libobjectbox.so": "linux-x64.tar.gz",
2222
"aarch64/libobjectbox.so": "linux-aarch64.tar.gz",
2323
"armv7l/libobjectbox.so": "linux-armv7hf.tar.gz",
24-
"armv6l/libobjectbox.so": "linux-armv6hf.tar.gz",
24+
#"armv6l/libobjectbox.so": "linux-armv6hf.tar.gz",
2525

2626
# mac
2727
"macos-universal/libobjectbox.dylib": "macos-universal.zip",

tests/test_sync.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from objectbox.sync import *
2+
3+
4+
def test_sync_protocol_version():
5+
version = SyncClient.protocol_version()
6+
assert version >= 1
7+
8+
9+
def test_sync_client_states(test_store):
10+
server_urls = ["ws://localhost:9999"]
11+
credentials = [SyncCredentials.none()]
12+
client = SyncClient(test_store, server_urls, credentials)
13+
assert client.get_sync_state() == SyncState.CREATED
14+
client.start()
15+
assert client.get_sync_state() == SyncState.STARTED
16+
client.stop()
17+
assert client.get_sync_state() == SyncState.STOPPED
18+
client.close()

0 commit comments

Comments
 (0)