Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Dec 19, 2024
1 parent d783abc commit db1c5ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/cupertino_http/lib/src/cupertino_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,6 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
}

if (onResponse != null) {
/*
final b =
ncb.ObjCBlock_ffiVoid_ffiVoid_NSURLSession_NSURLSessionDataTask_NSURLResponse_ffiVoidNSURLSessionResponseDisposition
.blocking(
Expand All @@ -911,9 +910,9 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
final sel = objc.registerName(
'URLSession:dataTask:didReceiveResponse:completionHandler:');
final signature = objc.getProtocolMethodSignature(delegate, sel,
isRequired: true, isInstanceMethod: true)!;
isRequired: false, isInstanceMethod: true)!;
protoBuilder.implementMethod(sel, signature, b);
*/
/*
ncb.NSURLSessionDataDelegate
.URLSession_dataTask_didReceiveResponse_completionHandler_
.implement(protoBuilder,
Expand All @@ -926,6 +925,7 @@ class URLSession extends _ObjectHolder<ncb.NSURLSession> {
exactResponse);
nsCompletionHandler.call(disposition);
});
*/
}

if (onData != null) {
Expand Down

0 comments on commit db1c5ab

Please sign in to comment.