auto_update

Creator: coderz1093

Last updated:

0 purchases

auto_update Image
auto_update Images

Languages

Categories

Add to Cart

Description:

auto update

Auto Update Plugin #
This plugin for Flutter handles a native app update without an official application store.
Features #



Feature
Android
iOS
macOS
Linux
Windows




download & update







github releases








Usage #
Import the pacakge with #
import 'package:auto_update/auto_update.dart';
copied to clipboard
Check for new release in github #
Map<dynamic, dynamic> results = await AutoUpdate.fetchGithubApk("github_user", "package_name");
if (results != null) {
if (results['assetUrl'] == "up-to-date") {
/* aplication is up-to-date */
} else if (results['assetUrl'].isEmpty()) {
/* package or user don't found */
} else {
/* update url found */
}
}
copied to clipboard
Download and Update #
In android, the package will ask the user for permissions if needed. If the permissions were required and granted, a second call to the function is necessary for the package to download and update to the new release.
await AutoUpdate.downloadAndUpdate("https://release_raw_url");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.