Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/arduino/Arduino.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2021-05-10 10:36:36 +0300
committerCristian Maglie <c.maglie@arduino.cc>2021-05-10 10:38:31 +0300
commitbf2f90dffff07a037ebe87265f898b648baa97ba (patch)
treef5b9e712ab4482771189619df793872e308a2465
parentb68d4b64e6bdfcc2d4a7de53001d68aae2392999 (diff)
Added deprecated field in index parsing
-rw-r--r--arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java
index 3c45b7325..6c11a4cc2 100644
--- a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java
+++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java
@@ -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();