From 3aebb82905c69f093acb1a9d75bd19d0c4bbe6ee Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:31:10 -0400 Subject: [PATCH] fix(mobile): http request handling after isolate death (#29714) * use ports for objc * add task reaper * cleanup, fewer allocations * link to pr --- mobile/pubspec.lock | 15 ++++++++------- mobile/pubspec.yaml | 7 ++++++- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/mobile/pubspec.lock b/mobile/pubspec.lock index 406199185c..15f5be0d8a 100644 --- a/mobile/pubspec.lock +++ b/mobile/pubspec.lock @@ -309,8 +309,8 @@ packages: dependency: "direct main" description: path: "pkgs/cupertino_http" - ref: a0a933358517c6d01cff37fc2a2752ee2d744a3c - resolved-ref: a0a933358517c6d01cff37fc2a2752ee2d744a3c + ref: "58b03c756b81d16b3975a8ae4b91d25360123bb5" + resolved-ref: "58b03c756b81d16b3975a8ae4b91d25360123bb5" url: "https://github.com/mertalev/http" source: git version: "3.0.0-wip" @@ -1158,12 +1158,13 @@ packages: source: hosted version: "0.5.0" objective_c: - dependency: transitive + dependency: "direct overridden" description: - name: objective_c - sha256: "6cb691c686fa2838c6deb34980d426145c2a5d537491cb83d463c33cdbc726ed" - url: "https://pub.dev" - source: hosted + path: "pkgs/objective_c" + ref: "2915556701f4734a784222f290a82adb1b101682" + resolved-ref: "2915556701f4734a784222f290a82adb1b101682" + url: "https://github.com/mertalev/native" + source: git version: "9.4.1" octo_image: dependency: "direct main" diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yaml index f2864a468e..2de8a7dc09 100644 --- a/mobile/pubspec.yaml +++ b/mobile/pubspec.yaml @@ -84,7 +84,7 @@ dependencies: cupertino_http: git: url: https://github.com/mertalev/http - ref: 'a0a933358517c6d01cff37fc2a2752ee2d744a3c' # https://github.com/dart-lang/http/pull/1876 + ref: '58b03c756b81d16b3975a8ae4b91d25360123bb5' path: pkgs/cupertino_http/ ok_http: git: @@ -114,6 +114,11 @@ dev_dependencies: # Pin bonsoir to 5.x until cast releases a version compatible with bonsoir 6.x. dependency_overrides: bonsoir: ^5.1.11 + objective_c: + git: + url: https://github.com/mertalev/native + ref: '2915556701f4734a784222f290a82adb1b101682' # https://github.com/dart-lang/native/pull/3458 + path: pkgs/objective_c/ flutter: uses-material-design: true