hid_tool 0.0.6 copy "hid_tool: ^0.0.6" to clipboard
hid_tool: ^0.0.6 copied to clipboard

A flutter plugin for communicating with HID devices (Human Interface Device)

Changelog #

All notable changes to this project will be documented in this file.

Acknowledgements / 致谢 #

This project is a fork/modified version of hid4flutter by vinsfortunato.

本项目是 hid4flutter 的分支/修改版本,原作者为 vinsfortunato。


0.0.6 - 2026-03-30 #

Fixed (修复) #

  • Fixed macOS build error "no such module 'IOKit.hid.IOHIDLib'" by removing invalid import statements.
    • 修复 macOS 构建错误 "no such module 'IOKit.hid.IOHIDLib'",移除了无效的导入语句
  • Added IOKit framework to macOS podspec for proper linking.
    • 在 macOS podspec 中添加了 IOKit 框架以正确链接
  • Updated macOS minimum deployment target to 10.13 (Xcode compatible version).
    • 更新 macOS 最低部署目标到 10.13(Xcode 兼容版本)
  • Fixed Windows compilation errors:
    • 修复了 Windows 编译错误:
    • GUID redefinition error in hid_tool_plugin.cpp
    • MethodChannel InvokeMethod type mismatch for device events
    • GUID_DEVINTERFACE_HID 重定义错误
    • MethodChannel InvokeMethod 类型不匹配
  • Added .claude/ to .gitignore to prevent Claude Code settings from being committed.
    • 添加 .claude/.gitignore 防止 Claude Code 设置被提交

Changed (更改) #

  • Updated all platform implementations to ensure consistent build experience.
    • 更新了所有平台实现以确保一致的构建体验

0.0.5 - 2026-03-30 #

Added (新增) #

  • Added .gitignore entry for .claude/ directory.
    • 添加了 .claude/ 目录的 .gitignore 条目

Changed (更改) #

  • Improved macOS device event listening implementation.
    • 改进了 macOS 设备事件监听实现
  • Updated device event listening to start only when explicitly called.
    • 更新设备事件监听仅在显式调用时启动

0.0.4 - 2026-03-30 #

Added (新增) #

  • Added getReportDescriptor() method to get and parse the HID report descriptor from the device (requires hidapi 0.14.0+).
    • 添加了 getReportDescriptor() 方法以从设备获取并解析 HID 报告描述符(需要 hidapi 0.14.0+)
  • Added HidReportDescriptor class to represent parsed report descriptor with collections and report items.
    • 添加了 HidReportDescriptor 类以表示解析后的报告描述符,包含集合和报告项
  • Added HidCollection class to represent HID collections with nested structure support.
    • 添加了 HidCollection 类以表示 HID 集合,支持嵌套结构
  • Added HidReportItem class to represent input/output/feature report items with full descriptor information.
    • 添加了 HidReportItem 类以表示输入/输出/功能报告项,包含完整的描述符信息
  • Added HidReportType enum for report type identification.
    • 添加了 HidReportType 枚举用于报告类型识别
  • Added HidReportDescriptorParser class to parse raw descriptor bytes into structured objects.
    • 添加了 HidReportDescriptorParser 类以将原始描述符字节解析为结构化对象
  • Added HidDeviceEvents class for listening to device connection/disconnection events on Windows, macOS, and Linux.
    • 添加了 HidDeviceEvents 类用于在 Windows、macOS 和 Linux 上监听设备连接/断开事件
  • Added HidDeviceEvent class to represent a device connection/disconnection event with path, vendor ID, and product ID.
    • 添加了 HidDeviceEvent 类以表示设备连接/断开事件,包含路径、供应商 ID 和产品 ID
  • Added Hid.startListening() and Hid.stopListening() methods for managing device event listeners.
    • 添加了 Hid.startListening()Hid.stopListening() 方法用于管理设备事件监听器
  • Implemented Windows platform device notification using RegisterDeviceNotification API.
    • 使用 RegisterDeviceNotification API 实现了 Windows 平台设备通知
  • Implemented macOS platform device notification using IOKit framework.
    • 使用 IOKit 框架实现了 macOS 平台设备通知
  • Implemented Linux platform device notification using udev/netlink.
    • 使用 udev/netlink 实现了 Linux 平台设备通知

Changed (更改) #

  • Updated README.md with documentation and examples for the new report descriptor API.
    • 更新了 README.md,添加了新报告描述符 API 的文档和示例
  • Updated README.md with documentation and examples for device event listening API.
    • 更新了 README.md,添加了设备事件监听 API 的文档和示例

0.0.3 - 2026-03-27 #

  • Fix CMake configuration to properly link hidapi on MacOS.
  • 修复 CMake 配置以正确连接 MacOS 上的 hidapi

0.0.2 - 2026-03-27 #

  • Fix CMake configuration to properly link hidapi on Windows.
  • 修复 CMake 配置以正确连接 Windows上的 hidapi

0.0.1 - 2026-03-26 #

Added (新增) #

  • Added sendOutputReport method using hidapi 0.15.0's new hid_send_output_report() function.
    • 添加了 sendOutputReport 方法,使用 hidapi 0.15.0 的新 hid_send_output_report() 函数
  • Added hid_read_error() function binding for better error handling.
    • 添加了 hid_read_error() 函数绑定以提供更好的错误处理
  • Initial release of hid_tool (renamed from hid4flutter).
    • hid_tool 首次发布(从 hid4flutter 重命名)

Changed (更改) #

  • Upgraded hidapi to version 0.15.0.
    • 升级 hidapi 到版本 0.15.0
  • Renamed package from hid4flutter to hid_tool.
    • 将包名从 hid4flutter 重命名为 hid_tool
  • Updated all platform implementations to use new naming convention.
    • 更新了所有平台实现以使用新的命名约定
  • Updated CMake configuration to use modern version syntax.
    • 更新 CMake 配置以使用现代版本语法

0.1.3 - 2026-03-26 (Unreleased/未发布) #

Added (新增) #

  • Added sendOutputReport method using hidapi 0.15.0's new hid_send_output_report() function.
    • 添加了 sendOutputReport 方法,使用 hidapi 0.15.0 的新 hid_send_output_report() 函数
  • Added hid_read_error() function binding for better error handling.
    • 添加了 hid_read_error() 函数绑定以提供更好的错误处理

Changed (更改) #

  • Upgraded hidapi to version 0.15.0.
    • 升级 hidapi 到版本 0.15.0
  • Renamed package from hid4flutter to hid_tool.
    • 将包名从 hid4flutter 重命名为 hid_tool

0.1.2 - 2026-03-26 #

Fixed (修复) #

  • Remove CMake warning when building on Windows.
    • 修复在 Windows 上构建时的 CMake 警告

Changed (更改) #

  • Use git submodule to download hidapi sources on Windows.
    • 在 Windows 上使用 git 子模块下载 hidapi 源代码
  • Improve code quality.
    • 改进代码质量

0.1.1 #

Fixed (修复) #

  • Fix macOS podspec summary and description.
    • 修复 macOS podspec 的摘要和描述
  • Fix test to clear pub publish warnings.
    • 修复测试以清除 pub 发布警告

0.1.0 #

Added (新增) #

  • Support for macOS platform.
    • 支持 macOS 平台
  • Support for Linux platform.
    • 支持 Linux 平台
  • Add filters to Hid.getDevices(...) method.
    • Hid.getDevices(...) 方法添加过滤器
  • Add a working flutter example application in /example/
    • 在 /example/ 中添加可用的 Flutter 示例应用程序
  • Add inputStream() method to HidDevice to get a stream of bytes received from the device as part of an input report.
    • HidDevice 添加 inputStream() 方法以获取作为输入报告一部分从设备接收的字节流

Changed (更改) #

  • Upgrade used hidapi version to 0.14.0.
    • 升级使用的 hidapi 版本到 0.14.0
  • Remove Hid.init() and Hid.exit() methods. Resources are now freed automatically when all devices get closed.
    • 移除 Hid.init()Hid.exit() 方法。资源现在会在所有设备关闭时自动释放
  • Change property product to productName in HidDevice class.
    • HidDevice 类中的 product 属性更改为 productName
  • Improve API naming and usage.
    • 改进 API 命名和用法
  • Improve documentation.
    • 改进文档
  • Remove android from apparently supported platforms in pubspec since it is still not supported.
    • 从 pubspec 中移除 Android(因为尚未支持)

Fixed (修复) #

  • Compile hidapi on windows instead of bundling pre-compiled dylibs.
    • 在 Windows 上编译 hidapi 而不是捆绑预编译的 dylibs
  • Remove unused/unnecessary native code.
    • 移除未使用/不必要的原生代码
  • Fix pointer of Char/WChar to String conversions.
    • 修复 Char/WChar 指针到 String 的转换
  • Fix input report receiving implementation on desktop platforms.
    • 修复桌面平台上的输入报告接收实现

[0.0.1] #

Added (新增) #

  • Initial release.
    • 首次发布

Note: As of now, hid4flutter is only supported on Windows. Support for other platforms will be added in future releases.

注意: 截至目前,hid4flutter 仅支持 Windows。其他平台的支持将在未来的版本中添加。

1
likes
0
points
362
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin for communicating with HID devices (Human Interface Device)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter, plugin_platform_interface

More

Packages that depend on hid_tool

Packages that implement hid_tool