Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d850fad
build(deps): bump io.projectreactor:reactor-core from 3.6.2 to 3.6.9
dependabot[bot] Aug 19, 2024
ac6ac8d
Merge pull request #47 from simple-robot/dependabot/gradle/dev/main/i…
ForteScarlet Aug 19, 2024
f717797
build(deps): bump org.jetbrains.kotlinx:kotlinx-datetime
dependabot[bot] Aug 26, 2024
c950868
Update qodana_code_quality.yml
ForteScarlet Sep 6, 2024
3bbb681
Merge pull request #52 from simple-robot/ForteScarlet-patch-1
ForteScarlet Sep 6, 2024
41f025f
build(deps): bump io.gitlab.arturbosch.detekt from 1.23.6 to 1.23.7
dependabot[bot] Sep 9, 2024
1b64c69
longPolling 增加配置 `handleRetry`, 配置文件方式支持 `retry` 和 `handleRetry` 配置
ForteScarlet Sep 29, 2024
41d3efd
delay的行为位置调整
ForteScarlet Sep 29, 2024
c4a2343
build(deps): bump log4j from 2.23.1 to 2.24.1
dependabot[bot] Sep 30, 2024
06568ab
build(deps): bump org.jetbrains:annotations from 24.1.0 to 26.0.1
dependabot[bot] Oct 14, 2024
55e3c42
Update gitignore
ForteScarlet Oct 18, 2024
5b6cd14
When the ticket.token without a `bot` prefix, append one.
ForteScarlet Oct 18, 2024
b2638bc
Merge pull request #65 from simple-robot/dependabot/gradle/dev/main/o…
ForteScarlet Oct 18, 2024
c497a12
Merge pull request #61 from simple-robot/dependabot/gradle/dev/main/l…
ForteScarlet Oct 18, 2024
e3ce371
Merge pull request #66 from simple-robot/dev/improve-token-prefix
ForteScarlet Oct 18, 2024
a280a9b
Update Kotlin from 2.0.10 to 2.0.20
ForteScarlet Oct 18, 2024
d6161d7
fix yarn
ForteScarlet Oct 19, 2024
52ff44f
Merge pull request #67 from simple-robot/dev/update-Kotlin
ForteScarlet Oct 19, 2024
dcb3ecb
build(deps): bump io.projectreactor:reactor-core from 3.6.9 to 3.6.11
dependabot[bot] Oct 21, 2024
552c119
build(deps): bump io.mockk:mockk from 1.13.12 to 1.13.13
dependabot[bot] Oct 21, 2024
e377b19
Merge pull request #71 from simple-robot/dependabot/gradle/dev/main/i…
ForteScarlet Oct 21, 2024
e318783
Merge pull request #70 from simple-robot/dependabot/gradle/dev/main/i…
ForteScarlet Oct 21, 2024
90c276d
build(deps): bump kotlinPoet from 1.18.1 to 2.0.0
dependabot[bot] Oct 28, 2024
607d44f
Merge pull request #60 from simple-robot/dev/retry-config
ForteScarlet Oct 28, 2024
7ff2fd4
Merge pull request #73 from simple-robot/dependabot/gradle/dev/main/k…
ForteScarlet Oct 28, 2024
fcf7efe
Update Kotlin from 2.0.10 to 2.0.20
ForteScarlet Oct 30, 2024
1463ec7
Merge pull request #55 from simple-robot/dependabot/gradle/dev/main/i…
ForteScarlet Oct 30, 2024
2673ae3
Merge pull request #48 from simple-robot/dependabot/gradle/dev/main/o…
ForteScarlet Oct 30, 2024
53a3ad9
Merge pull request #75 from simple-robot/dev/update-Kotlin
ForteScarlet Oct 30, 2024
2d4c722
Update KSP, Kotlin coroutines and Kotlin serialization
ForteScarlet Oct 31, 2024
a473c6f
Add `-Xconsistent-data-class-copy-visibility`
ForteScarlet Oct 31, 2024
f9bb474
JS config
ForteScarlet Oct 31, 2024
00cc98d
Upgrade yarn.lock
ForteScarlet Oct 31, 2024
d2f97c5
Update simbot from 4.6.0 to 4.7.0 and add kotlinx-io
ForteScarlet Oct 31, 2024
288d094
Merge pull request #76 from simple-robot/dev/upgrade
ForteScarlet Oct 31, 2024
0472c4e
Merge pull request #77 from simple-robot/dev/upgrade-simbot
ForteScarlet Oct 31, 2024
c9f4c9f
release: v0.0.12
ForteScarlet Oct 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changelog/v0.0.12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
> 对应核心版本: [**v4.7.0**](https://github.com/simple-robot/simpler-robot/releases/tag/v4.7.0)


我们欢迎并期望着您的的[反馈](https://github.com/simple-robot/simbot-component-telegram/issues)或[协助](https://github.com/simple-robot/simbot-component-telegram/pulls),
感谢您的贡献与支持!

也欢迎您为我们献上一颗 `star`,这是对我们最大的鼓励与认可!
2 changes: 1 addition & 1 deletion .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
pull_request_target:
push:
branches:
- dev/main
Expand Down
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

22 changes: 22 additions & 0 deletions .run/runConfigurations/simbot-component-telegram [detekt].run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,26 @@
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
<configuration default="false" name="simbot-component-telegram [detekt]" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="detekt" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
82 changes: 29 additions & 53 deletions buildSrc/src/main/kotlin/JsConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,22 @@
*/

import org.gradle.api.Project
import org.gradle.kotlin.dsl.the
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinJsTargetDsl
import org.jetbrains.kotlin.gradle.targets.js.dsl.KotlinWasmJsTargetDsl
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension


inline fun KotlinJsTargetDsl.configJs(
nodeJs: Boolean = true,
browser: Boolean = true,
block: () -> Unit = {}
) {
if (nodeJs) {
nodejs()
// {
//// testTask {
//// useMocha {
//// timeout = "10000"
//// }
//// }
// }
}

if (browser) {
browser()
// {
// testTask{
// useKarma {
// useChromeHeadless()
// // useConfigDirectory(File(project.rootProject.projectDir, "karma"))
// }
// }
// }
nodejs {
testTask {
useMocha {
timeout = "10000"
}
}
}
}

binaries.library()
Expand All @@ -59,30 +42,24 @@ inline fun KotlinJsTargetDsl.configJs(
fun Project.configJsTestTasks() {
// val shouldRunJsBrowserTest = !hasProperty("teamcity") || hasProperty("enable-js-tests")
// if (shouldRunJsBrowserTest) return
tasks.findByName("cleanJsBrowserTest")?.apply {
onlyIf { false }
}
tasks.findByName("jsBrowserTest")?.apply {
onlyIf { false }
}
// tasks.findByName("cleanJsBrowserTest")?.apply {
// onlyIf { false }
// }
// tasks.findByName("jsBrowserTest")?.apply {
// onlyIf { false }
// }
}

inline fun KotlinWasmJsTargetDsl.configWasmJs(
nodeJs: Boolean = true,
browser: Boolean = true,
block: () -> Unit = {}
) {
if (nodeJs && isLinux) {
// win in candy node `21.0.0-v8-canary202309143a48826a08` is not supported
// nodejs()
}

if (browser) {
browser {
testTask{
useKarma {
useChromeHeadless()
// useConfigDirectory(File(project.rootProject.projectDir, "karma"))
nodejs {
testTask {
useMocha {
timeout = "10000"
}
}
}
Expand All @@ -93,18 +70,17 @@ inline fun KotlinWasmJsTargetDsl.configWasmJs(
}

inline fun Project.configWasmJsTest(block: () -> Unit = {}) {
if (false) {
// see https://youtrack.jetbrains.com/issue/KT-63014/Running-tests-with-wasmJs-in-1.9.20-requires-Chrome-Canary#focus=Comments-27-8321383.0-0
rootProject.the<NodeJsRootExtension>().apply {
// nodeVersion = "21.0.0-v8-canary202309143a48826a08"
version = "21.0.0-v8-canary202309143a48826a08"
downloadBaseUrl = "https://nodejs.org/download/v8-canary"
}

tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}
}

// if (false) {
// // see https://youtrack.jetbrains.com/issue/KT-63014/Running-tests-with-wasmJs-in-1.9.20-requires-Chrome-Canary#focus=Comments-27-8321383.0-0
// rootProject.the<NodeJsRootExtension>().apply {
// // nodeVersion = "21.0.0-v8-canary202309143a48826a08"
// version = "21.0.0-v8-canary202309143a48826a08"
// downloadBaseUrl = "https://nodejs.org/download/v8-canary"
// }
//
// tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
// args.add("--ignore-engines")
// }
// }
block()
}
28 changes: 0 additions & 28 deletions buildSrc/src/main/kotlin/K2Config.kt

This file was deleted.

4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ object P {
override val description: String get() = DESCRIPTION
override val homepage: String get() = HOMEPAGE

const val VERSION = "0.0.11"
const val NEXT_VERSION = "0.0.12"
const val VERSION = "0.0.12"
const val NEXT_VERSION = "0.0.13"

override val snapshotVersion = "$NEXT_VERSION-SNAPSHOT"
override val version = if (isSnapshot()) snapshotVersion else VERSION
Expand Down
31 changes: 17 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
[versions]
kotlin = "2.0.10"
kotlinx-coroutines = "1.8.1"
kotlinx-serialization = "1.7.1"
kotlinx-datetime = "0.6.0"
kotlin = "2.0.20"
kotlinx-coroutines = "1.9.0"
kotlinx-serialization = "1.7.3"
kotlinx-datetime = "0.6.1"
kotlinx-io = "0.5.4"
dokka = "1.9.20"
okio = "3.3.0"
ktor = "2.3.12"
openjdk-jmh = "1.37"
log4j = "2.23.1"
reactor = "3.6.2"
log4j = "2.24.1"
reactor = "3.6.11"
# simbot
simbot = "4.6.0"
suspendTransform = "0.9.0"
simbot = "4.7.0"
suspendTransform = "2.0.20-0.9.3"
gradleCommon = "0.6.0"
# ksp
ksp = "2.0.10-1.0.24"
ksp = "2.0.20-1.0.25"
# https://square.github.io/kotlinpoet/
kotlinPoet = "1.18.1"
kotlinPoet = "2.0.0"
# https://mockk.io/
mockk = "1.13.12"
mockk = "1.13.13"
# https://detekt.dev/docs/intro
detekt = "1.23.6"
detekt = "1.23.7"

[libraries]
# simbot
Expand All @@ -39,7 +39,7 @@ simbot-common-ktor-inputfile = { group = "love.forte.simbot.common", name = "sim
simbot-gradle = { group = "love.forte.simbot.gradle", name = "simbot-gradle-suspendtransforms", version.ref = "simbot" }

# jetbrains-annotation
jetbrains-annotations = "org.jetbrains:annotations:24.1.0"
jetbrains-annotations = "org.jetbrains:annotations:26.0.1"

# kotlinx-coroutines
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
Expand All @@ -65,6 +65,9 @@ kotlinx-serialization-properties = { group = "org.jetbrains.kotlinx", name = "ko
# kotlinx-datetime
kotlinx-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version.ref = "kotlinx-datetime" }

# kotlinx-io
kotlinx-io-core = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "kotlinx-io" }

# ktor
ktor-serialization-kotlinxJson = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-server-contentNegotiation = { group = "io.ktor", name = "ktor-server-content-negotiation", version.ref = "ktor" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Feb 25 20:12:01 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading