r_upgrade

pub package

Android and IOS upgrade plugin.

Getting Started

  • use plugin: add this code in pubspec.yaml
dependencies:
  r_upgrade: last version
  • add listener
RUpgrade.stream.listen((info){
  ///...
});
  • just upgrade your android application
    void upgrade() async {
      int id = await RUpgrade.upgrade(
                 'https://raw.githubusercontent.com/rhymelph/r_upgrade/master/apk/app-release.apk',
                 apkName: 'app-release.apk');
    }
  • you can use this id to cancel download
    void cancel() async {
      bool isSuccess=await RUpgrade.cancel(id);
    }
  • you can use this id to install apk
    void install() async {
      bool isSuccess=await RUpgrade.install(id);
    }
  • your application is ios.You can use this.
    void iosUpgrade(String url)async{
      RUpgrade.appStore
    }

Libraries

r_upgrade