Remove unused versions.kt & semver
This commit is contained in:
parent
88db9be878
commit
4d27c35cf4
|
@ -5,6 +5,3 @@ ext {
|
|||
'**/domain/**'
|
||||
]
|
||||
}
|
||||
dependencies {
|
||||
api other.semver
|
||||
}
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
package org.moire.ultrasonic.domain
|
||||
|
||||
import net.swiftzer.semver.SemVer
|
||||
|
||||
/**
|
||||
* Represents the version number of the Subsonic Android app.
|
||||
*/
|
||||
data class Version(
|
||||
val version: SemVer
|
||||
) : Comparable<Version> {
|
||||
|
||||
override fun compareTo(other: Version): Int {
|
||||
return version.compareTo(other.version)
|
||||
}
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Creates a new version instance by parsing the given string.
|
||||
*
|
||||
* @param version A string of the format "1.27", "1.27.2" or "1.27.beta3".
|
||||
*/
|
||||
@JvmStatic
|
||||
fun fromCharSequence(version: String): Version {
|
||||
return Version(SemVer.parse(version))
|
||||
}
|
||||
}
|
||||
}
|
|
@ -27,7 +27,6 @@ ext.versions = [
|
|||
retrofit : "2.4.0",
|
||||
jackson : "2.9.5",
|
||||
okhttp : "3.12.13",
|
||||
semver : "1.0.0",
|
||||
twitterSerial : "0.1.6",
|
||||
koin : "2.2.2",
|
||||
picasso : "2.71828",
|
||||
|
@ -82,7 +81,6 @@ ext.other = [
|
|||
jacksonConverter : "com.squareup.retrofit2:converter-jackson:$versions.retrofit",
|
||||
jacksonKotlin : "com.fasterxml.jackson.module:jackson-module-kotlin:$versions.jackson",
|
||||
okhttpLogging : "com.squareup.okhttp3:logging-interceptor:$versions.okhttp",
|
||||
semver : "net.swiftzer.semver:semver:$versions.semver",
|
||||
twitterSerial : "com.twitter.serial:serial:$versions.twitterSerial",
|
||||
koinCore : "org.koin:koin-core:$versions.koin",
|
||||
koinAndroid : "org.koin:koin-android:$versions.koin",
|
||||
|
|
Loading…
Reference in New Issue