Added updates

connection_type_change
Robinson 2021-04-09 13:56:57 +02:00
parent 6c36751d05
commit 6e61f165de
2 changed files with 10 additions and 2 deletions

View File

@ -145,12 +145,12 @@ tasks.jar.get().apply {
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
// https://github.com/MicroUtils/kotlin-logging
implementation("io.github.microutils:kotlin-logging:2.0.6") // slick kotlin wrapper for slf4j
implementation("org.slf4j:slf4j-api:1.7.30")
implementation("com.dorkbox:Executor:3.0")
implementation("com.dorkbox:Executor:3.1")
implementation("com.dorkbox:Updates:1.0")
val jnaVersion = "5.8.0"
implementation("net.java.dev.jna:jna:$jnaVersion")

View File

@ -12,6 +12,11 @@ import java.security.PrivilegedAction
* Network Utilities. MAC, IP, NameSpace, etc
*/
internal object Common {
/**
* Gets the version number.
*/
const val version = "2.3"
val OS_LINUX: Boolean
val OS_WINDOWS: Boolean
val OS_MAC: Boolean
@ -41,6 +46,9 @@ internal object Common {
OS_WINDOWS = false
OS_MAC = false
}
// Add this project to the updates system, which verifies this class + UUID + version information
dorkbox.updates.Updates.add(Common::class.java, "956b308f207944af95928ef6282a46d7", version)
}