upgrade_util 3.1.0

SDKflutter
Platformandroidios

A plug-in for application upgrades, which implements the method of jumping to the store and the function of installing after downloading the APK.

Flutter Upgrade Util

pub package GitHub license

Language: 中文 | English

At present, the plugin is only used by Android, iOS.

Preparing for use

Version constraints

  sdk: ^3.5.0
  flutter: ">=3.24.0"

Rely

  1. Add upgrade_util to pubspec.yaml dependencies.
dependencies:
  upgrade_util: ^latest_version
  1. Get the package by executing the flutter command.
flutter pub get
  1. Introduce
import 'package:upgrade_util/upgrade_util.dart';

Usage

UpgradeOption

Popups are implemented by using UpgradeOption.

NameTypeDescriptionDefault
parametersMap<String, dynamic>?Custom parametersnull

IOSUpgradeOption

Popups are implemented by using IOSUpgradeOption.

NameTypeDescriptionDefault
appleIdString?Apple IDrequired
modeIOSOpenModeOpen Mode.required

AndroidUpgradeOption

Popups are implemented by using AndroidUpgradeOption.

NameTypeDescriptionDefault
brandAndroidBrandThe brand.required
packageNameString?The package name.null
linkString?Custom link.null
isUseDownloadUrlboolWhether to use download url.false
downloadUrlString?Download url.null

Method

To jump to the App Store or the application market, use the openStore method

If you like my project, please in the upper right corner of the project "Star". Your support is my biggest encouragement! ^_^