Skip to content

Commit 73b0a94

Browse files
author
Ivan Dlugos
committed
c-api - update to v0.13.0
1 parent aedc56f commit 73b0a94

File tree

7 files changed

+5
-25
lines changed

7 files changed

+5
-25
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
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.12.0
11+
cLibVersion=0.13.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/lib/src/native/query/query.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@ class Query<T> {
714714
String describe() => dartStringFromC(C.query_describe(_cQuery));
715715

716716
/// For internal testing purposes.
717-
String describeParameters() => dartStringFromC(C.query_describe_params(_cQuery));
717+
String describeParameters() =>
718+
dartStringFromC(C.query_describe_params(_cQuery));
718719

719720
/// Creates a property query for the given property [qp].
720721
///

objectbox/test/isolates_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void main() {
9999
isolate.kill();
100100
receivePort.close();
101101
env.close();
102-
}, skip: asyncCallbacksAvailable() ? null : 'See issue #197');
102+
});
103103
}
104104

105105
// Echoes back any received message.

objectbox/test/observer_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ void main() async {
2727

2828
tearDown(() => env.close());
2929

30-
if (!asyncCallbacksAvailable()) return;
31-
3230
test('Observe single entity', () async {
3331
late Completer<void> completer;
3432
var expectedEvents = 0;

objectbox/test/stream_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ void main() {
1818

1919
tearDown(() => env.close());
2020

21-
if (!asyncCallbacksAvailable()) return;
22-
2321
test('Subscribe to stream of entities', () async {
2422
final result = <String>[];
2523
final text = TestEntity_.tString;

objectbox/test/sync_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void main() {
335335
client2.close();
336336
});
337337
},
338-
skip: SyncServer.isAvailable() && asyncCallbacksAvailable()
338+
skip: SyncServer.isAvailable()
339339
? null
340340
: 'sync-server executable is not available in PATH - tests requiring it are skipped');
341341
} else {

objectbox/test/test_env.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,6 @@ class TestEnv {
2727
}
2828
}
2929

30-
// Whether we can run tests depending on async callbacks. See issue #197
31-
bool asyncCallbacksAvailable() {
32-
if (() {
33-
final sdkVersion = Platform.version.split(RegExp('[. ]'));
34-
if (sdkVersion.length < 3) return false;
35-
if (sdkVersion[0] != '2') return false;
36-
if (!['9', '10'].contains(sdkVersion[1])) return false;
37-
return true;
38-
}()) {
39-
return true;
40-
} else {
41-
print(
42-
'Skipping some tests - SDK not compatible with native async listeners: ${Platform.version}');
43-
return false;
44-
}
45-
}
46-
4730
const defaultTimeout = Duration(milliseconds: 1000);
4831

4932
/// "Busy-waits" until the predicate returns true.

0 commit comments

Comments
 (0)