mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 01:39:43 +02:00
Bump version to 10.1.0-SNAPSHOT
This commit is contained in:
parent
97e91f50ab
commit
f2602bb413
2 changed files with 17 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
|||
|
||||
package sop.operation
|
||||
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import java.util.*
|
||||
import kotlin.jvm.Throws
|
||||
import sop.exception.SOPGPException
|
||||
|
||||
|
@ -107,4 +110,17 @@ interface Version {
|
|||
* this method throws an [SOPGPException.UnsupportedOption] instead.
|
||||
*/
|
||||
@Throws(SOPGPException.UnsupportedOption::class) fun getSopVVersion(): String
|
||||
|
||||
/** Return the current version of the SOP-Java library. */
|
||||
fun getSopJavaVersion(): String? {
|
||||
return try {
|
||||
val resourceIn: InputStream =
|
||||
javaClass.getResourceAsStream("/sop-java-version.properties")
|
||||
?: throw IOException("File sop-java-version.properties not found.")
|
||||
val properties = Properties().apply { load(resourceIn) }
|
||||
properties.getProperty("sop-java-version")
|
||||
} catch (e: IOException) {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
allprojects {
|
||||
ext {
|
||||
shortVersion = '10.0.4'
|
||||
shortVersion = '10.1.0'
|
||||
isSnapshot = true
|
||||
minAndroidSdk = 10
|
||||
javaSourceCompatibility = 1.8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue