Home

Awesome

AppUpdate

中文文档

android app update library

Screenshots

Usage

setup

usage

UpdateWrapper updateWrapper = new UpdateWrapper.Builder(getApplicationContext())
    					//set interval Time
    	                .setTime(time)
    	                //set notification icon
    	                .setNotificationIcon(R.mipmap.ic_launcher_round)
    	                //set update file url
    	                .setUrl("you update json file url")
  						//set customs activity
  						.setCustomsActivity(cls)
  						 //set showToast. default is true
    	                .setIsShowToast(false)
  						//add callback ,return new version info
						.setCallback(new CheckUpdateTask.Callback() {
                                    @Override
                                    public void callBack(VersionModel model,booleab hasNewVersion) {
                                        Log.d(TAG,"new version :" + 																	model.getVersionName());
                                    }
                                })
  						.build();

updateWrapper.start();

The update json format:

{
  "versionCode":1,
  "versionName":"1.0.0",
  "content":"1.add something#2.add something",//use # to wrap
  "minSupport":1,	//min support version. while your app versionCode less than  minSupport,You must update app
  "url":"apk download url"
}

Custom

Library

If you don't want to use,you can exclude it.