-
Notifications
You must be signed in to change notification settings - Fork 416
UpdateFrom.JSON
Javier Santos edited this page Mar 31, 2017
·
4 revisions
new AppUpdater(this)
.setUpdateFrom(UpdateFrom.JSON)
.setUpdateJSON("https://raw.githubusercontent.com/javiersantos/AppUpdater/master/app/update-changelog.json")
.start();
https://raw.githubusercontent.com/javiersantos/AppUpdater/master/app/update-changelog.json
{
"latestVersion": "1.2.2",
"latestVersionCode": 10,
"url": "https://github.com/javiersantos/AppUpdater/releases",
"releaseNotes": [
"- First evolution",
"- Second evolution",
"- Bug fixes"
]
}
latestVersion
: required.
latestVersionCode
: optional.
url
: required.
releaseNotes
: optional.
- If
latestVersionCode
is included in the JSON,latestVersion
will only be used to display the latest version in the dialog and theversionCode
will be used to compare the installed and latest update.