Bump version to 10.1.0-SNAPSHOT

This commit is contained in:
Paul Schaub 2025-03-11 21:04:50 +01:00
parent 97e91f50ab
commit f2602bb413
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,9 @@
package sop.operation package sop.operation
import java.io.IOException
import java.io.InputStream
import java.util.*
import kotlin.jvm.Throws import kotlin.jvm.Throws
import sop.exception.SOPGPException import sop.exception.SOPGPException
@ -107,4 +110,17 @@ interface Version {
* this method throws an [SOPGPException.UnsupportedOption] instead. * this method throws an [SOPGPException.UnsupportedOption] instead.
*/ */
@Throws(SOPGPException.UnsupportedOption::class) fun getSopVVersion(): String @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
}
}
} }

View file

@ -4,7 +4,7 @@
allprojects { allprojects {
ext { ext {
shortVersion = '10.0.4' shortVersion = '10.1.0'
isSnapshot = true isSnapshot = true
minAndroidSdk = 10 minAndroidSdk = 10
javaSourceCompatibility = 1.8 javaSourceCompatibility = 1.8