1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-21 10:52:14 +01:00

Added deprecated field in index parsing

This commit is contained in:
Cristian Maglie 2021-05-10 09:36:36 +02:00
parent b68d4b64e6
commit bf2f90dfff

View File

@ -60,6 +60,7 @@ public class ContributedPlatform extends DownloadableContribution {
private boolean builtIn;
private Map<ContributedToolReference, ContributedTool> resolvedToolReferences;
private ContributedPackage parentPackage;
private boolean deprecated;
@Override
public String getUrl() { return url; }
@ -157,6 +158,14 @@ public class ContributedPlatform extends DownloadableContribution {
this.parentPackage = parentPackage;
}
public boolean isDeprecated() {
return deprecated;
}
public void setDeprecated(boolean deprecated) {
this.deprecated = deprecated;
}
@Override
public String toString() {
return getParsedVersion();