r_upgrade_ui

Creator: coderz1093

Last updated:

0 purchases

r_upgrade_ui Image
r_upgrade_ui Images
Add to Cart

Description:

r upgrade ui

r_upgrade_ui #

r_upgrade UI Packages,simple to use.
How to use? #

add plugin to your pubspec.yaml

dependencies:
r_upgrade_ui: last_version
copied to clipboard

Create RUpgradeInfo class.


RUpgradeInfo rUpgradeInfo = RUpgradeInfo()
..androidInfo = (RUpgradeAndroidInfo()
..webUrl = 'http://www.baidu.com'
..downloadUrl =
'https://mydata-1252536312.cos.ap-guangzhou.myqcloud.com/r_upgrade.apk'
..downloadFileName = 'r_upgrade.apk'
..downloadFinishAutoInstall = true
..downloadUseCache = false
..upgradeFlavor = RUpgradeFlavor.normal
..notificationVisibility = NotificationVisibility.VISIBILITY_VISIBLE
..notificationStyle = NotificationStyle.planTime)
..iosInfo = (RUpgradeIOSInfo()
..webUrl = 'http://www.google.com'
..isChina = false
..appId = '414478124')
..isForce = true
..newVersion = 'v1.0.1'
..newVersionCode = 1
..content = '1.fixed bug,\n2.fixed bug again'
..title = 'New Version';
copied to clipboard

Use Normal Download Dialog.

rUpgradeInfo.showNormalDialog(context);
copied to clipboard

android upgrade method.

// upgrade from store
rUpgradeInfo.androidInfo.upgradeFromStore();

// upgrade from download
rUpgradeInfo.androidInfo.upgradeFromDownload();
copied to clipboard

ios upgrade method.

// upgrade from store
rUpgradeInfo.iosInfo.upgradeFromStore();

copied to clipboard

share method.

// upgrade from store
rUpgradeInfo.upgradeFromStore();

// upgrade from url
rUpgradeInfo.upgradeFromUrl();
copied to clipboard
LICENSE #
Copyright 2021 The r_upgrade_ui Project Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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.

Related Products

More From This Creator