mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-31 20:52:13 +01:00
Renamed ContributedLibraryReference to ContributedLibraryDependency
This commit is contained in:
parent
894b1abd8a
commit
d72cb2350d
@ -63,7 +63,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
|
|||||||
|
|
||||||
public abstract List<String> getTypes();
|
public abstract List<String> getTypes();
|
||||||
|
|
||||||
public abstract List<ContributedLibraryReference> getRequires();
|
public abstract List<ContributedLibraryDependency> getRequires();
|
||||||
|
|
||||||
public abstract List<String> getProvidesIncludes();
|
public abstract List<String> getProvidesIncludes();
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
|
|||||||
res += "\n";
|
res += "\n";
|
||||||
res += " requires :\n";
|
res += " requires :\n";
|
||||||
if (getRequires() != null)
|
if (getRequires() != null)
|
||||||
for (ContributedLibraryReference r : getRequires()) {
|
for (ContributedLibraryDependency r : getRequires()) {
|
||||||
res += " " + r;
|
res += " " + r;
|
||||||
}
|
}
|
||||||
res += "\n";
|
res += "\n";
|
||||||
|
@ -29,16 +29,14 @@
|
|||||||
|
|
||||||
package cc.arduino.contributions.libraries;
|
package cc.arduino.contributions.libraries;
|
||||||
|
|
||||||
public abstract class ContributedLibraryReference {
|
public abstract class ContributedLibraryDependency {
|
||||||
|
|
||||||
public abstract String getName();
|
public abstract String getName();
|
||||||
|
|
||||||
public abstract String getMaintainer();
|
public abstract String getVersionRequired();
|
||||||
|
|
||||||
public abstract String getVersion();
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getName() + " " + getVersion() + " (" + getMaintainer() + ")";
|
return getName() + " " + getVersionRequired();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -44,7 +44,7 @@ import com.github.zafarkhaja.semver.Version;
|
|||||||
|
|
||||||
import cc.arduino.Constants;
|
import cc.arduino.Constants;
|
||||||
import cc.arduino.contributions.VersionHelper;
|
import cc.arduino.contributions.VersionHelper;
|
||||||
import cc.arduino.contributions.libraries.ContributedLibraryReference;
|
import cc.arduino.contributions.libraries.ContributedLibraryDependency;
|
||||||
import processing.app.helpers.PreferencesMap;
|
import processing.app.helpers.PreferencesMap;
|
||||||
import processing.app.packages.UserLibraryFolder.Location;
|
import processing.app.packages.UserLibraryFolder.Location;
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ public class UserLibrary {
|
|||||||
return maintainer;
|
return maintainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ContributedLibraryReference> getRequires() {
|
public List<ContributedLibraryDependency> getRequires() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user