From 3731ee71da1a045b6bdb95eb88684ea472b3651f Mon Sep 17 00:00:00 2001 From: sensuikan1973 <23427957+sensuikan1973@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:03:19 +0900 Subject: [PATCH] `dart pub upgrade && dart pub upgrade --major-versions` & follow dart-ffi breaking changes (#508) * `dart pub upgrade && dart pub upgrade --major-versions` * follow https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#dartffi-11 --------- Co-authored-by: sensuikan1973 --- example/pubspec.lock | 6 +++--- lib/src/position.dart | 4 ++-- pubspec.lock | 26 +++++++++++++------------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 8509344a0e..ac6cfbb4f8 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -53,10 +53,10 @@ packages: dependency: "direct main" description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" file: dependency: transitive description: @@ -185,4 +185,4 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.2.2 <4.0.0" + dart: ">=3.3.0-279.1.beta <4.0.0" diff --git a/lib/src/position.dart b/lib/src/position.dart index 74925d506b..b124e92da0 100644 --- a/lib/src/position.dart +++ b/lib/src/position.dart @@ -51,8 +51,8 @@ class Position { for (var k = 0; k < cPosition.n_link; k++) { links.add( Link( - cPosition.link.elementAt(k).ref.score, - cPosition.link.elementAt(k).ref.move, + (cPosition.link + k).ref.score, + (cPosition.link + k).ref.move, ), ); } diff --git a/pubspec.lock b/pubspec.lock index c851753ba6..1050e47f1d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -125,10 +125,10 @@ packages: dependency: "direct main" description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" ffigen: dependency: "direct dev" description: @@ -181,10 +181,10 @@ packages: dependency: transitive description: name: http - sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" http_multi_server: dependency: transitive description: @@ -221,10 +221,10 @@ packages: dependency: transitive description: name: js - sha256: "4186c61b32f99e60f011f7160e32c89a758ae9b1d0c6d28e2c02ef0382300e2b" + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.1" json_annotation: dependency: transitive description: @@ -469,10 +469,10 @@ packages: dependency: transitive description: name: tar - sha256: "1680219f82dfa81c8d0e76e849b7b34ea969c721f55a8ebd294a9a95e740dd42" + sha256: aca91e93ff9ff2dba4462c6eea6bc260b72f0d7010e748e3397c32190529bd6e url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" term_glyph: dependency: transitive description: @@ -541,18 +541,18 @@ packages: dependency: transitive description: name: web - sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05" + sha256: "1d9158c616048c38f712a6646e317a3426da10e884447626167240d45209cbad" url: "https://pub.dev" source: hosted - version: "0.4.2" + version: "0.5.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23" + sha256: "1d8e795e2a8b3730c41b8a98a2dff2e0fb57ae6f0764a1c46ec5915387d257b2" url: "https://pub.dev" source: hosted - version: "2.4.3" + version: "2.4.4" webkit_inspection_protocol: dependency: transitive description: @@ -578,4 +578,4 @@ packages: source: hosted version: "2.1.1" sdks: - dart: ">=3.2.2 <4.0.0" + dart: ">=3.3.0 <4.0.0"