RepoLibrary

@Serializable()
public final class RepoLibrary

17 / 10 / 2020

Represents a library listed in libraries within the repository index

Parameters

name

Name of the library, this is always the same as the filename

version

Version of the library

url

Remote URL to download the library, useful for different licenses. Must be an HTTPS URL, HTTP will conflict with android security rules.

hash

SHA256 Hash of the remote file, to prevent attacks.

Constructors

Link copied to clipboard
public RepoLibrary RepoLibrary(String name, Version version, String url, String hash)

Properties

Link copied to clipboard
@SerialName(value = "hash")
private final String hash
Link copied to clipboard
@SerialName(value = "name")
private final String name
Link copied to clipboard
@SerialName(value = "url")
private final String url
Link copied to clipboard
@SerialName(value = "ver")
private final Version version

Functions

Link copied to clipboard
public final String getHash()
Link copied to clipboard
public final String getName()
Link copied to clipboard
public final String getUrl()
Link copied to clipboard
public final Version getVersion()