Skip to content

Commit 924576e

Browse files
committed
0.1.11
1 parent 765c2b0 commit 924576e

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.11
2+
3+
* Support stret for method callback.
4+
15
## 0.1.10
26

37
* Fix issue for "dart_native" channel.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ packages:
7070
path: ".."
7171
relative: true
7272
source: path
73-
version: "0.1.10"
73+
version: "0.1.11"
7474
ffi:
7575
dependency: transitive
7676
description:

lib/src/ios/common/callback_register.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ void _syncCallback(
9191
_callback(argsPtrPtr, retPtrPtr, argCount, typesPtrPtr, stret != 0);
9292
}
9393

94-
dynamic _asyncCallback(int argsAddr, int retAddr, int argCount, int typesAddr, bool stret) {
94+
dynamic _asyncCallback(
95+
int argsAddr, int retAddr, int argCount, int typesAddr, bool stret) {
9596
Pointer<Pointer<Pointer<Void>>> argsPtrPtrPtr = Pointer.fromAddress(argsAddr);
9697
Pointer<Pointer<Utf8>> typesPtrPtr = Pointer.fromAddress(typesAddr);
9798
Pointer<Pointer<Void>> retPtrPtr = Pointer.fromAddress(retAddr);

lib/src/ios/runtime/block.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ _callback(Pointer<Pointer<Pointer<Void>>> argsPtrPtrPtr,
165165

166166
if (result != null) {
167167
Pointer<Utf8> resultTypePtr =
168-
nativeTypeEncoding(typesPtrPtr.elementAt(0).value);
168+
nativeTypeEncoding(typesPtrPtr.elementAt(0).value);
169169
String encoding = convertEncode(resultTypePtr);
170170
Pointer<Pointer<Void>> realRetPtrPtr = retPtrPtr;
171171
if (stret) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_native
22
description: Write native code using Dart. This package liberates you from native code and low performance channel.
3-
version: 0.1.10
3+
version: 0.1.11
44
homepage: https://github.com/dart-native/dart_native
55

66
environment:

0 commit comments

Comments
 (0)