mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-31 15:11:02 +00:00
18 lines
503 B
Kotlin
18 lines
503 B
Kotlin
package app.revanced.patcher.util
|
|
|
|
import java.util.*
|
|
|
|
internal object VersionReader {
|
|
@JvmStatic
|
|
private val props = Properties().apply {
|
|
load(
|
|
VersionReader::class.java.getResourceAsStream("/revanced-patcher/version.properties")
|
|
?: throw IllegalStateException("Could not load version.properties")
|
|
)
|
|
}
|
|
|
|
@JvmStatic
|
|
fun read(): String {
|
|
return props.getProperty("version") ?: throw IllegalStateException("Version not found")
|
|
}
|
|
} |