From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH proxmox_dart_api_client v2 2/2] deps: add objective_c dependency to access NSError's code property
Date: Wed, 3 Jun 2026 17:34:23 +0200 [thread overview]
Message-ID: <20260603153423.3227-8-s.shaji@proxmox.com> (raw)
In-Reply-To: <20260603153423.3227-1-s.shaji@proxmox.com>
Starting from `v9.0.0` of the `objective_c` package, `NSError` is
defined as an extension type [0] instead of a wrapper class in Dart. As a
result, the `code` property is not accessible at compile time unless the
extension type is explicitly imported, even though the underlying object
exposes it at runtime.
To fix this, the `objective_c` dependency has been added and imported
the dependency were the code property is accessed.
- [0] https://github.com/dart-lang/native/pull/2723
Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
changes since v1:
- ran dart pub get again which created the .lock file changes.
- removed formatting changes.
lib/src/authenticate.dart | 1 +
pubspec.lock | 78 ++++++++++++++++++---------------------
pubspec.yaml | 1 +
3 files changed, 37 insertions(+), 43 deletions(-)
diff --git a/lib/src/authenticate.dart b/lib/src/authenticate.dart
index 4c9ae22..7bd9cef 100644
--- a/lib/src/authenticate.dart
+++ b/lib/src/authenticate.dart
@@ -7,6 +7,7 @@ import 'package:http/http.dart' as http;
import 'package:proxmox_dart_api_client/proxmox_dart_api_client.dart';
import 'package:proxmox_dart_api_client/src/handle_ticket_response.dart';
import 'package:proxmox_dart_api_client/src/models/serializers.dart';
+import 'package:objective_c/objective_c.dart';
/// Returns an authenticated client to work with if successful.
///
diff --git a/pubspec.lock b/pubspec.lock
index 66aa9b8..2214f3b 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -45,10 +45,10 @@ packages:
dependency: transitive
description:
name: build
- sha256: aadd943f4f8cc946882c954c187e6115a84c98c81ad1d9c6cbf0895a8c85da9c
+ sha256: a156715e7cd728130c592f30552575908aae5b100005fbc1f0fb16b3c03a3d10
url: "https://pub.dev"
source: hosted
- version: "4.0.5"
+ version: "4.0.6"
build_config:
dependency: transitive
description:
@@ -69,10 +69,10 @@ packages:
dependency: "direct dev"
description:
name: build_runner
- sha256: "521daf8d189deb79ba474e43a696b41c49fb3987818dbacf3308f1e03673a75e"
+ sha256: "1523ce62448ebac2c15a8ba5fbad8acac169788658a7dd2a1c2d9c2a9318b9a6"
url: "https://pub.dev"
source: hosted
- version: "2.13.1"
+ version: "2.15.0"
built_collection:
dependency: "direct main"
description:
@@ -85,10 +85,10 @@ packages:
dependency: "direct main"
description:
name: built_value
- sha256: "0730c18c770d05636a8f945c32a4d7d81cb6e0f0148c8db4ad12e7748f7e49af"
+ sha256: "34e4067d30ce212937df995f03b69992eea683539ceeac7f679a1f1eba055b56"
url: "https://pub.dev"
source: hosted
- version: "8.12.5"
+ version: "8.12.6"
built_value_generator:
dependency: "direct dev"
description:
@@ -125,18 +125,10 @@ packages:
dependency: transitive
description:
name: code_assets
- sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687"
+ sha256: bf394f466ba9205f1812a0433b392d6af280f155f56651eda7c18cc32ed493b8
url: "https://pub.dev"
source: hosted
- version: "1.0.0"
- code_builder:
- dependency: transitive
- description:
- name: code_builder
- sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d"
- url: "https://pub.dev"
- source: hosted
- version: "4.11.1"
+ version: "1.2.1"
collection:
dependency: transitive
description:
@@ -250,10 +242,10 @@ packages:
dependency: transitive
description:
name: hooks
- sha256: e79ed1e8e1929bc6ecb6ec85f0cb519c887aa5b423705ded0d0f2d9226def388
+ sha256: "9a62a50b50b769a737bc0a8ff381f333529df3ab746b2f6b02e83760231455ba"
url: "https://pub.dev"
source: hosted
- version: "1.0.2"
+ version: "2.0.2"
http:
dependency: "direct main"
description:
@@ -306,10 +298,10 @@ packages:
dependency: transitive
description:
name: json_annotation
- sha256: cb09e7dac6210041fad964ed7fbee004f14258b4eca4040f72d1234062ace4c8
+ sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80"
url: "https://pub.dev"
source: hosted
- version: "4.11.0"
+ version: "4.12.0"
lints:
dependency: "direct dev"
description:
@@ -330,10 +322,10 @@ packages:
dependency: transitive
description:
name: matcher
- sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
+ sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
- version: "0.12.19"
+ version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
@@ -358,14 +350,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.0"
- native_toolchain_c:
- dependency: transitive
- description:
- name: native_toolchain_c
- sha256: "6ba77bb18063eebe9de401f5e6437e95e1438af0a87a3a39084fbd37c90df572"
- url: "https://pub.dev"
- source: hosted
- version: "0.17.6"
node_preamble:
dependency: transitive
description:
@@ -375,13 +359,13 @@ packages:
source: hosted
version: "2.0.2"
objective_c:
- dependency: transitive
+ dependency: "direct main"
description:
name: objective_c
- sha256: "100a1c87616ab6ed41ec263b083c0ef3261ee6cd1dc3b0f35f8ddfa4f996fe52"
+ sha256: "6cb691c686fa2838c6deb34980d426145c2a5d537491cb83d463c33cdbc726ed"
url: "https://pub.dev"
source: hosted
- version: "9.3.0"
+ version: "9.4.1"
package_config:
dependency: transitive
description:
@@ -430,6 +414,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.5.0"
+ record_use:
+ dependency: transitive
+ description:
+ name: record_use
+ sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.6.0"
retry:
dependency: "direct main"
description:
@@ -479,10 +471,10 @@ packages:
dependency: transitive
description:
name: source_gen
- sha256: "732792cfd197d2161a65bb029606a46e0a18ff30ef9e141a7a82172b05ea8ecd"
+ sha256: ec37cc0e6694374cbef59ed79685572c870a54ede6fa30a3e420feb3adffea02
url: "https://pub.dev"
source: hosted
- version: "4.2.2"
+ version: "4.2.3"
source_map_stack_trace:
dependency: transitive
description:
@@ -551,26 +543,26 @@ packages:
dependency: "direct dev"
description:
name: test
- sha256: "8d9ceddbab833f180fbefed08afa76d7c03513dfdba87ffcec2718b02bbcbf20"
+ sha256: ca578dc12bb8b2f40b67b7d3bd2fac4f31c01a6ff7130a14e2597b919934507f
url: "https://pub.dev"
source: hosted
- version: "1.31.0"
+ version: "1.31.1"
test_api:
dependency: transitive
description:
name: test_api
- sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
+ sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
- version: "0.7.11"
+ version: "0.7.12"
test_core:
dependency: transitive
description:
name: test_core
- sha256: "1991d4cfe85d5043241acac92962c3977c8d2f2add1ee73130c7b286417d1d34"
+ sha256: d2e98ec12998368dc59ddd47ab709f2cd55acd6b66dc7db764455a44082f4bc5
url: "https://pub.dev"
source: hosted
- version: "0.6.17"
+ version: "0.6.18"
typed_data:
dependency: transitive
description:
@@ -591,10 +583,10 @@ packages:
dependency: transitive
description:
name: vm_service
- sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
+ sha256: "0016aef94fc66495ac78af5859181e3f3bf2026bd8eecc72b9565601e19ab360"
url: "https://pub.dev"
source: hosted
- version: "15.0.2"
+ version: "15.2.0"
watcher:
dependency: transitive
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index 9094c4d..9c4eda1 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -12,6 +12,7 @@ dependencies:
retry: ^3.1.0
cronet_http: ^1.5.0
cupertino_http: ^2.3.0
+ objective_c: ^9.4.1
dev_dependencies:
lints: ^6.0.0
--
2.50.1
prev parent reply other threads:[~2026-06-03 15:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 15:34 [PATCH proxmox{_login_manager,_dart_api_client}/pve_flutter_frontend v2 0/7] upgrade dependencies based on flutter v3.41 and migrate deprecated members Shan Shaji
2026-06-03 15:34 ` [PATCH pve_flutter_frontend v2 1/4] chore: upgrade dependencies based on flutter v3.41 Shan Shaji
2026-06-03 15:34 ` [PATCH pve_flutter_frontend v2 2/4] fix: breaking changes due to the upgrade of font_awesome_flutter to v11 Shan Shaji
2026-06-03 15:34 ` [PATCH pve_flutter_frontend v2 3/4] fix: migrate to UIScene lifecycle for iOS 26+ compatibility Shan Shaji
2026-06-03 15:34 ` [PATCH pve_flutter_frontend v2 4/4] chore: use latest ndkVersion from flutter Shan Shaji
2026-06-03 15:34 ` [PATCH proxmox_login_manager v2 1/1] chore: upgrade dependencies Shan Shaji
2026-06-03 15:34 ` [PATCH proxmox_dart_api_client v2 1/2] " Shan Shaji
2026-06-03 15:34 ` Shan Shaji [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260603153423.3227-8-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox