mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
19 lines
569 B
Kotlin
19 lines
569 B
Kotlin
package app.revanced.patcher.util
|
|
|
|
import java.util.*
|
|
|
|
@Deprecated("This class serves no purpose anymore")
|
|
internal object VersionReader {
|
|
@JvmStatic
|
|
private val properties = Properties().apply {
|
|
load(
|
|
VersionReader::class.java.getResourceAsStream("/app/revanced/patcher/version.properties")
|
|
?: throw IllegalStateException("Could not load version.properties")
|
|
)
|
|
}
|
|
|
|
@JvmStatic
|
|
fun read(): String {
|
|
return properties.getProperty("version") ?: throw IllegalStateException("Version not found")
|
|
}
|
|
} |