UpdateChecker

Functions

Link copied to clipboard
abstract fun checkForUpdates(): Boolean

Checks if there is an update available

Link copied to clipboard
abstract fun checkWithPrint()

Checks if there is an update available and prints a message if there is one asking the end user to update the product.

Link copied to clipboard
abstract fun getReleaseData(id: String = "latest"): JsonObject

Gets the information of a single release Object Sample: { "published_at": "2022-07-15T21:51:46.397962Z", "version": "v0.4.1-SNAPSHOT", "url": "https://github.com/TheProgramSrc/SimpleCoreAPI/releases/tag/v0.4.1-SNAPSHOT", "author_url": "https://github.com/Im-Fran" }