From 6c39a08328895ea3e709dd8312ad79d94a589979 Mon Sep 17 00:00:00 2001 From: ethicnology Date: Wed, 11 Nov 2026 20:39:04 +0000 Subject: [PATCH] Allow hooks 2 in the Dart bindings native_toolchain_rust 1.0.4+0 and later and code_assets 1.1.0 and later require hooks 2. An app that already resolves hooks 2, for example through flutter_rust_bridge_hooks 2.13, cannot depend on payjoin while it pins hooks ^1.0.0. hook/build.dart is unchanged. dart analyze hook is clean against the lowest resolution (hooks 2.0.2, code_assets 1.2.1, native_toolchain_rust 1.0.4+0) and the highest (hooks 2.2.0, code_assets 2.2.0, native_toolchain_rust 1.0.7) with Dart 3.12.2. --- payjoin-ffi/dart/pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/payjoin-ffi/dart/pubspec.yaml b/payjoin-ffi/dart/pubspec.yaml index 40706d1c1..92ffef31f 100644 --- a/payjoin-ffi/dart/pubspec.yaml +++ b/payjoin-ffi/dart/pubspec.yaml @@ -9,9 +9,9 @@ environment: dependencies: ffi: ^2.1.4 - hooks: ^1.0.0 - code_assets: ^1.0.0 - native_toolchain_rust: ^1.0.0 + hooks: ^2.0.2 + code_assets: ">=1.2.1 <3.0.0" + native_toolchain_rust: ^1.0.4 dev_dependencies: test: ^1.26.2 http: ^1.4.0