Skip to content

Commit

Permalink
Fix data collection caused by kx.ser problem
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Sep 3, 2024
1 parent c227e2d commit a7dea3a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dokkadokka = "1.9.20" # Note: Must update plugin versions in buildSrc/build.gra
kotlin = "2.0.20" # Note: Must update plugin versions in buildSrc/build.gradle.kts

commons-validator = "1.9.0"
data-collector-api = "1.0.0-SNAPSHOT"
data-collector-api = "1.0.1-SNAPSHOT"
groovy = "3.0.22"
icu4j = "75.1"
jansi = "2.4.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import dev.kordex.core.annotations.InternalAPI
import dev.kordex.data.api.DataCollection
import dev.kordex.data.api.DataEntity
import dev.kordex.data.api.serializers.DataCollectionSerializer
import dev.kordex.data.api.serializers.UUIDSerializer
import dev.kordex.data.api.serializers.KXUUIDSerializer
import dev.kordex.data.api.types.Entity
import io.ktor.client.*
import io.ktor.client.call.*
Expand Down Expand Up @@ -43,7 +43,7 @@ public object DataAPIClient {
include(Json.serializersModule)

contextual<DataCollection>(DataCollectionSerializer)
contextual<UUID>(UUIDSerializer)
contextual<UUID>(KXUUIDSerializer)
}
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
package dev.kordex.core.datacollection

import dev.kordex.core.storage.Data
import dev.kordex.data.api.serializers.UUIDSerializer
import dev.kordex.data.api.serializers.KXUUIDSerializer
import kotlinx.serialization.Serializable
import java.util.UUID

@Suppress("DataClassShouldBeImmutable")
@Serializable
public data class State(
@Serializable(with = UUIDSerializer::class)
@Serializable(with = KXUUIDSerializer::class)
var uuid: UUID? = null,
) : Data
4 changes: 3 additions & 1 deletion modules/functionality/func-mappings/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ repositories {
}

dependencies {
api(libs.linkie)
api(libs.linkie) {
exclude("ch.qos.logback", "logback-classic")
}

detektPlugins(libs.detekt)
detektPlugins(libs.detekt.libraries)
Expand Down

0 comments on commit a7dea3a

Please sign in to comment.