-
Notifications
You must be signed in to change notification settings - Fork 421
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
latestVersionCodeis included in the JSON,latestVersionwill only be used to display the latest version in the dialog and theversionCodewill be used to compare the installed and latest update.