r_upgrade 0.1.2 copy "r_upgrade: ^0.1.2" to clipboard
r_upgrade: ^0.1.2 copied to clipboard

outdated

A plugin for upgrade and install application ,Support Android and IOS.

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(url);
    }

if your application is Android,make sure your application had this permission and request dynamic permission.

    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
141
likes
0
pub points
93%
popularity

Publisher

verified publisherrhyme95.cn

A plugin for upgrade and install application ,Support Android and IOS.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on r_upgrade