os_type 0.2.1
os_type: ^0.2.1 copied to clipboard
Useful for OS and web environment detection, supports HarmonyOS.
0.2.1 #
- 修正 web 插件注册方法参数未使用警告
- 在 web 环境初始化鸿蒙设备类型或是鸿蒙设备类型初始化结果为 null 时,使用 log 替代异常抛出,默认结果为 2in1,保证仍能正常运行
0.2.0 #
- Fix plugin registration error
0.1.0 #
- Downgrade SDK version limit
- Add example code to README
- Optimize platform detection logic
0.0.1 #
- Initial release of the os_type plugin
- Support for detecting various operating systems including HarmonyOS
- Added method channel implementation for native platform communication
- Implemented platform interface for cross-platform compatibility
- Added example project demonstrating usage
- Support for detecting PC vs mobile operating systems
- Special handling for HarmonyOS device types initialization
- Optimized platform detection logic