Skip to content

Provide version check and upgrade functionality for Flutter on HarmonyOS.

License

Notifications You must be signed in to change notification settings

HarmonyCandies/update_manager_ohos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

update_manager_ohos

pub package GitHub stars GitHub forks GitHub license GitHub issues harmony-candies

Provide version check and upgrade functionality for Flutter on HarmonyOS.

提供 Flutter HarmonyOS 平台上的版本检查和升级功能

安装 / Installation

dependencies:
  update_manager_ohos: ^0.0.1

使用 / Usage

final hasUpdate = await UpdateManagerOhos.instance.checkUpdate();
debugPrint('hasUpdate: $hasUpdate');

/// 如果有可用的更新,弹出升级弹窗
if (hasUpdate) {
  final didShowDialog = await UpdateManagerOhos.instance.showUpdateDialog();
  debugPrint('didShowDialog: $didShowDialog');
}

官方文档

More information can be found in the official updateManager

详情请参考官方 API 文档: updateManager

About

Provide version check and upgrade functionality for Flutter on HarmonyOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published