Skip to content
Snippets Groups Projects
Verified Commit edfdc90c authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Update dependencies

parent ab0e7e6b
Branches
Tags
No related merge requests found
...@@ -17,17 +17,20 @@ plugins { ...@@ -17,17 +17,20 @@ plugins {
id("org.jetbrains.dokka") version "1.4.32" id("org.jetbrains.dokka") version "1.4.32"
} }
subprojects { allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "jacoco")
apply(plugin = "de.justjanne.jacoco-cobertura-converter")
apply(plugin = "org.jetbrains.dokka") apply(plugin = "org.jetbrains.dokka")
repositories { repositories {
mavenCentral() mavenCentral()
google() google()
} }
}
subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "jacoco")
apply(plugin = "de.justjanne.jacoco-cobertura-converter")
dependencies { dependencies {
val implementation by configurations val implementation by configurations
......
...@@ -14,7 +14,7 @@ kotlinPoetVersion=1.8.0 ...@@ -14,7 +14,7 @@ kotlinPoetVersion=1.8.0
kspVersion=1.5.10-1.0.0-beta01 kspVersion=1.5.10-1.0.0-beta01
GROUP=de.justjanne.libquassel GROUP=de.justjanne.libquassel
VERSION_NAME=0.4.0 VERSION_NAME=0.4.1
POM_URL=https://git.kuschku.de/justJanne/libquassel POM_URL=https://git.kuschku.de/justJanne/libquassel
POM_SCM_URL=https://git.kuschku.de/justJanne/libquassel POM_SCM_URL=https://git.kuschku.de/justJanne/libquassel
......
...@@ -15,7 +15,8 @@ import de.justjanne.libquassel.annotations.Generated ...@@ -15,7 +15,8 @@ import de.justjanne.libquassel.annotations.Generated
* Inline class encapsulating a quassel feature name * Inline class encapsulating a quassel feature name
*/ */
@Generated @Generated
inline class QuasselFeatureName( @JvmInline
value class QuasselFeatureName(
/** /**
* Standardized name of the feature * Standardized name of the feature
*/ */
......
...@@ -14,7 +14,8 @@ private typealias BufferIdType = SignedIdType ...@@ -14,7 +14,8 @@ private typealias BufferIdType = SignedIdType
/** /**
* A [SignedId] for a chat/buuffer * A [SignedId] for a chat/buuffer
*/ */
inline class BufferId( @JvmInline
value class BufferId(
/** /**
* Native value * Native value
*/ */
......
...@@ -13,7 +13,8 @@ private typealias IdentityIdType = SignedIdType ...@@ -13,7 +13,8 @@ private typealias IdentityIdType = SignedIdType
/** /**
* A [SignedId] for an identity object * A [SignedId] for an identity object
*/ */
inline class IdentityId( @JvmInline
value class IdentityId(
/** /**
* Native value * Native value
*/ */
......
...@@ -15,7 +15,8 @@ private typealias MsgIdType = SignedId64Type ...@@ -15,7 +15,8 @@ private typealias MsgIdType = SignedId64Type
* A [SignedId] for an individual message * A [SignedId] for an individual message
* Warning: this is the only id which can be backed by a 64-bit value * Warning: this is the only id which can be backed by a 64-bit value
*/ */
inline class MsgId( @JvmInline
value class MsgId(
/** /**
* Native value * Native value
*/ */
......
...@@ -14,7 +14,8 @@ private typealias NetworkIdType = SignedIdType ...@@ -14,7 +14,8 @@ private typealias NetworkIdType = SignedIdType
/** /**
* A [SignedId] for an irc network * A [SignedId] for an irc network
*/ */
inline class NetworkId( @JvmInline
value class NetworkId(
/** /**
* Native value * Native value
*/ */
......
...@@ -72,12 +72,12 @@ data class NetworkState( ...@@ -72,12 +72,12 @@ data class NetworkState(
fun identifier() = "${networkId.id}" fun identifier() = "${networkId.id}"
fun caseMapper() = IrcCaseMapper[supportValue(IrcISupport.CASEMAPPING)] fun caseMapper() = IrcCaseMapper[supportValue(IrcISupport.CASEMAPPING)]
fun supports(key: String) = supports.containsKey(key.toUpperCase(Locale.ROOT)) fun supports(key: String) = supports.containsKey(key.uppercase(Locale.ROOT))
fun supportValue(key: String) = supports[key.toUpperCase(Locale.ROOT)] fun supportValue(key: String) = supports[key.uppercase(Locale.ROOT)]
fun capAvailable(capability: String) = caps.containsKey(capability.toLowerCase(Locale.ROOT)) fun capAvailable(capability: String) = caps.containsKey(capability.lowercase(Locale.ROOT))
fun capEnabled(capability: String) = capsEnabled.contains(capability.toLowerCase(Locale.ROOT)) fun capEnabled(capability: String) = capsEnabled.contains(capability.lowercase(Locale.ROOT))
fun capValue(capability: String) = caps[capability.toLowerCase(Locale.ROOT)] ?: "" fun capValue(capability: String) = caps[capability.lowercase(Locale.ROOT)] ?: ""
fun isSaslSupportLikely(mechanism: String): Boolean { fun isSaslSupportLikely(mechanism: String): Boolean {
if (!capAvailable(IrcCapability.SASL)) { if (!capAvailable(IrcCapability.SASL)) {
......
...@@ -35,10 +35,10 @@ abstract class IrcCaseMapper { ...@@ -35,10 +35,10 @@ abstract class IrcCaseMapper {
a.equals(b, ignoreCase = true) a.equals(b, ignoreCase = true)
override fun toLowerCase(value: String): String = override fun toLowerCase(value: String): String =
value.toLowerCase(Locale.ENGLISH) value.lowercase(Locale.ROOT)
override fun toUpperCase(value: String): String = override fun toUpperCase(value: String): String =
value.toUpperCase(Locale.ENGLISH) value.uppercase(Locale.ROOT)
} }
object Rfc1459 : IrcCaseMapper() { object Rfc1459 : IrcCaseMapper() {
...@@ -46,13 +46,13 @@ abstract class IrcCaseMapper { ...@@ -46,13 +46,13 @@ abstract class IrcCaseMapper {
toLowerCase(a) == toLowerCase(b) || toUpperCase(a) == toUpperCase(b) toLowerCase(a) == toLowerCase(b) || toUpperCase(a) == toUpperCase(b)
override fun toLowerCase(value: String): String = override fun toLowerCase(value: String): String =
value.toLowerCase(Locale.ROOT) value.lowercase(Locale.ROOT)
.replace('[', '{') .replace('[', '{')
.replace(']', '}') .replace(']', '}')
.replace('\\', '|') .replace('\\', '|')
override fun toUpperCase(value: String): String = override fun toUpperCase(value: String): String =
value.toUpperCase(Locale.ROOT) value.uppercase(Locale.ROOT)
.replace('{', '[') .replace('{', '[')
.replace('}', ']') .replace('}', ']')
.replace('|', '\\') .replace('|', '\\')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment