FLUTTER ECOSYSTEM

X-SLAYER/app_version_checker

一个轻量级的 Flutter 插件,用于检查您的应用在 Google Play 商店或 Apple App Store 上是否为最新版本

app_version_checker 项目封面
Stars
14
Forks
55
最近推送(UTC)
2024年6月24日
项目状态
未归档
Iheb Briki GitHub avatar
GITHUB User

Iheb Briki ↗

I'm a full-stack developer and mainly use Flutter. trying to be better every day.

MineBeatTunisia
语言DartRubyKotlinSwiftObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 5 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

App Version Checker

this package is used to check if your app has a new version on playstore or apple app store. or you can even check what is the latest version of another app on playstore or apple app store.

Installing

Add App Version Checker to your pubspec:

dependencies:
  flutter_app_version_checker: any # or the latest version on Pub
Usage
  final _checker = AppVersionChecker();

  @override
  void initState() {
    super.initState();
    checkVersion();
  }

  void checkVersion() async {
    _checker.checkUpdate().then((value) {
      print(value.canUpdate); //return true if update is available
      print(value.currentVersion); //return current app version
      print(value.newVersion); //return the new app version
      print(value.appURL); //return the app url
      print(value.errorMessage); //return error message if found else it will return null
    });
  }
Or
  final _checker = AppVersionChecker(
      appId: "specify the app id (optional)",
      currentVersion: "specify the current version (optional)");
...
Use on ApkPure Store
   final _checker = AppVersionChecker(
    appId: "com.vanced.android.youtube",
    androidStore: AndroidStore.apkPure,
  );
...