Skip to content

Commit

Permalink
build: 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 16, 2022
1 parent 96c2bb8 commit d1b63c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
/run/
local.properties

src/test/kotlin/RunTerminal.kt
debug-sandbox
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "io.github.gnuf0rce"
version = "1.3.2"
version = "1.3.3"

mavenCentralPublish {
useCentralS01()
Expand All @@ -23,7 +23,7 @@ repositories {
}

dependencies {
implementation("xyz.cssxsh.baidu:baidu-aip:3.1.0") {
api("xyz.cssxsh.baidu:baidu-aip:3.1.1") {
exclude(group = "org.jetbrains.kotlin")
exclude(group = "org.jetbrains.kotlinx")
exclude(group = "org.slf4j")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import net.mamoe.mirai.utils.*
import xyz.cssxsh.mirai.admin.*

public object MiraiContentCensorPlugin : KotlinPlugin(
JvmPluginDescription("io.github.gnuf0rce.content-censor", "1.3.2") {
JvmPluginDescription("io.github.gnuf0rce.content-censor", "1.3.3") {
name("content-censor")
author("cssxsh")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
package io.github.gnuf0rce.mirai.censor.data

import kotlinx.serialization.modules.*
import net.mamoe.mirai.console.data.*
import net.mamoe.mirai.console.data.SerializableValue.Companion.serializableValueWith
import net.mamoe.mirai.console.internal.data.*
import xyz.cssxsh.baidu.api.*
import xyz.cssxsh.baidu.oauth.*
import java.time.*

internal object ContentCensorToken : AutoSavePluginData("ContentCensorToken"), BaiduAuthStatus {

override val serializersModule: SerializersModule = SerializersModule {
contextual(OffsetDateTimeSerializer)
}

@ValueName("expires")
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
override var expires: OffsetDateTime by LazyReferenceValueImpl<OffsetDateTime>()
.serializableValueWith(OffsetDateTimeSerializer)
.apply { value = OffsetDateTime.MIN }
override var expires: OffsetDateTime by value(OffsetDateTime.MIN)

@ValueName("access_token")
override var accessTokenValue: String by value("")
Expand Down

0 comments on commit d1b63c1

Please sign in to comment.