Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 27, 2023
1 parent e4dd947 commit 3a6ad97
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import dev.schlaubi.tonbrett.bot.server.broadcastEvent
import dev.schlaubi.tonbrett.bot.util.player
import dev.schlaubi.tonbrett.common.Sound
import dev.schlaubi.tonbrett.common.SoundCreatedEvent
import dev.schlaubi.tonbrett.common.newId
import dev.schlaubi.tonbrett.common.util.convertForNonJvmPlatforms
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.http.*
import org.litote.kmongo.and
import org.litote.kmongo.eq
import org.litote.kmongo.newId
import java.nio.file.StandardOpenOption
import kotlin.io.path.*
import kotlin.time.DurationUnit
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

allprojects {
group = "dev.schlaubi.tonbrett"
version = "1.17.5"
version = "1.17.6"

repositories {
mavenCentral()
Expand Down
7 changes: 5 additions & 2 deletions common/src/jvmMain/kotlin/dev/schlaubi/tonbrett/common/Id.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serialization.encoding.Encoder
import org.litote.kmongo.id.StringId
import org.litote.kmongo.toId


Expand All @@ -17,7 +16,11 @@ public actual interface Id<T> : org.litote.kmongo.Id<T>

@JvmInline
private value class WrappedId<T>(private val id: org.litote.kmongo.Id<T>) : Id<T>,
org.litote.kmongo.Id<T> by id
org.litote.kmongo.Id<T> by id {
override fun toString(): String = id.toString()
}

public fun <T> newId(): Id<T> = WrappedId(org.litote.kmongo.newId())

public object IdSerializer : KSerializer<Id<*>> {
override val descriptor: SerialDescriptor =
Expand Down

0 comments on commit 3a6ad97

Please sign in to comment.