1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

The update check now also outputs the new version's description.

This commit is contained in:
Fabian Schlenz 2016-09-15 06:36:39 +02:00
parent 3db48864bc
commit 5b9de9d7cc
3 changed files with 7 additions and 2 deletions

View File

@ -67,6 +67,9 @@ public class CommandLineRunner {
System.out.println("Available: " + v.version);
System.out.println("Get it here: " + v.url);
System.out.println();
System.out.println("Changes in this version:");
System.out.println(v.body);
System.out.println();
}
if (true || CommandLineOptions.cmd_console) {

View File

@ -90,7 +90,7 @@ public class Utils {
int result = compareVersions(cur_v, new_v);
return new Version(new_v, newest_version.getAsJsonPrimitive("html_url").getAsString(), result == VERSION_2_NEWER);
return new Version(new_v, newest_version.getAsJsonPrimitive("html_url").getAsString(), newest_version.getAsJsonPrimitive("body").getAsString(), result == VERSION_2_NEWER);
}
return null;
} catch(Exception e) {

View File

@ -19,11 +19,13 @@ package de.fabianonline.telegram_backup;
public class Version {
public final String version;
public final String url;
public final String body;
public final boolean isNewer;
public Version(String v, String u, boolean n) {
public Version(String v, String u, String b, boolean n) {
this.version = v;
this.url = u;
this.body = b;
this.isNewer = n;
}
}