Skip to content

Commit db1c5ab

Browse files
committed
Working
1 parent d783abc commit db1c5ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/cupertino_http/lib/src/cupertino_api.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
893893
}
894894

895895
if (onResponse != null) {
896-
/*
897896
final b =
898897
ncb.ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition
899898
.blocking(
@@ -911,9 +910,9 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
911910
final sel = objc.registerName(
912911
'URLSession:dataTask:didReceiveResponse:completionHandler:');
913912
final signature = objc.getProtocolMethodSignature(delegate, sel,
914-
isRequired: true, isInstanceMethod: true)!;
913+
isRequired: false, isInstanceMethod: true)!;
915914
protoBuilder.implementMethod(sel, signature, b);
916-
*/
915+
/*
917916
ncb.NSURLSessionDataDelegate
918917
.URLSession_dataTask_didReceiveResponse_completionHandler_
919918
.implement(protoBuilder,
@@ -926,6 +925,7 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
926925
exactResponse);
927926
nsCompletionHandler.call(disposition);
928927
});
928+
*/
929929
}
930930

931931
if (onData != null) {

0 commit comments

Comments
 (0)