-
Notifications
You must be signed in to change notification settings - Fork 413
UpdateFrom.XML
Javier Santos edited this page Mar 31, 2017
·
8 revisions
new AppUpdater(this)
.setUpdateFrom(UpdateFrom.XML)
.setUpdateXML("https://raw.githubusercontent.com/javiersantos/AppUpdater/master/app/update.xml")
.start();
https://raw.githubusercontent.com/javiersantos/AppUpdater/master/app/update.xml
<AppUpdater>
<update>
<latestVersion>1.2.2</latestVersion>
<latestVersionCode>10</latestVersionCode>
<url>https://github.com/javiersantos/AppUpdater/releases</url>
</update>
</AppUpdater>
https://raw.githubusercontent.com/javiersantos/AppUpdater/master/app/update-changelog.xml
<AppUpdater>
<update>
<latestVersion>1.2.2</latestVersion>
<latestVersionCode>10</latestVersionCode>
<url>https://github.com/javiersantos/AppUpdater/releases</url>
<releaseNotes>
- First evolution
- Second evolution
- Bug fixes
</releaseNotes>
</update>
</AppUpdater>
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.