FLUTTER ECOSYSTEM

X-SLAYER/app_version_checker

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,
  );
...