Skip to content

Commit

Permalink
build: 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Oct 20, 2021
1 parent a6a546c commit 8489264
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
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 {
}

group = "xyz.cssxsh"
version = "1.3.3"
version = "1.3.4"

mavenCentralPublish {
useCentralS01()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import xyz.cssxsh.mirai.plugin.command.*
import xyz.cssxsh.mirai.plugin.data.*

object WeiboHelperPlugin : KotlinPlugin(
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.3.3") {
JvmPluginDescription("xyz.cssxsh.mirai.plugin.weibo-helper", "1.3.4") {
name("weibo-helper")
author("cssxsh")
}
Expand Down
8 changes: 5 additions & 3 deletions src/main/kotlin/xyz/cssxsh/weibo/data/Serializer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data class SetResult(
val result: Boolean
)

@Serializer(OffsetDateTime::class)
@Serializer(forClass = OffsetDateTime::class)
object WeiboDateTimeSerializer : KSerializer<OffsetDateTime> {

private val formatter: DateTimeFormatter =
Expand All @@ -35,7 +35,7 @@ object WeiboDateTimeSerializer : KSerializer<OffsetDateTime> {

}

@Serializer(Locale::class)
@Serializer(forClass = Locale::class)
object LocaleSerializer : KSerializer<Locale> {

override val descriptor: SerialDescriptor =
Expand All @@ -46,7 +46,7 @@ object LocaleSerializer : KSerializer<Locale> {
override fun serialize(encoder: Encoder, value: Locale) = encoder.encodeString(value.language)
}

@Serializer(Boolean::class)
@Serializer(forClass = Boolean::class)
object NumberToBooleanSerializer : KSerializer<Boolean> {

override val descriptor: SerialDescriptor =
Expand Down Expand Up @@ -152,6 +152,8 @@ enum class ObjectType(override val value: String) : WeiboValue<String> {
VIDEO(value = "video"),
AUDIO(value = "audio"),
ARTICLE(value = "article"),
MOVIE(value = "movie"),
TOPIC(value = "topic"),
INTERACT_VOTE(value = "hudongvote"),
USER(value = "user"),
GROUP(value = "group"),
Expand Down

0 comments on commit 8489264

Please sign in to comment.