Added support for hidden changelog entries in auto_update.json

This commit is contained in:
Vhati 2014-10-21 21:34:17 -04:00
parent ae2cb23cbf
commit 14428924f1

View file

@ -54,6 +54,11 @@ public class JacksonAutoUpdateReader {
JsonNode changelogNode = historyNode.get( "changelog" );
for ( JsonNode releaseNode : changelogNode ) {
// Skip any versions with optional "hidden" field set to true.
if ( releaseNode.get( "hidden" ) != null && releaseNode.get( "hidden" ).booleanValue() ) {
continue;
}
String releaseVersion = releaseNode.get( "version" ).textValue();
List<String> changeList = new ArrayList<String>( releaseNode.get( "changes" ).size() );