mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-01-21 20:58:03 +00:00
update dependencies
This commit is contained in:
12
CHANGELOG.md
12
CHANGELOG.md
@@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
## 30.0.2
|
## 30.0.2
|
||||||
|
|
||||||
|
* `Version`:
|
||||||
|
* `Kotlin`: `2.2.20` -> `2.2.21`
|
||||||
|
* `Ktor`: `3.3.1` -> `3.3.2`
|
||||||
|
* `KSP`: `2.2.20-2.0.4` -> `2.3.2`
|
||||||
|
* `MicroUtils`: `0.26.6` -> `0.26.8`
|
||||||
|
* `KSLog`: `1.5.1` -> `1.5.2`
|
||||||
|
* `KSP`:
|
||||||
|
* Fixed annotation property access for KSP2 compatibility using `withNoSuchElementWorkaround`
|
||||||
|
* Removed `ksp.useKSP2=false` workaround from `gradle.properties` (KSP2 is now properly supported)
|
||||||
|
* `Utils`:
|
||||||
|
* Regenerated class casts extensions
|
||||||
|
|
||||||
## 30.0.1
|
## 30.0.1
|
||||||
|
|
||||||
* `Core`:
|
* `Core`:
|
||||||
|
|||||||
@@ -5,8 +5,5 @@ kotlin.js.generate.externals=true
|
|||||||
kotlin.incremental=true
|
kotlin.incremental=true
|
||||||
kotlin.incremental.js=true
|
kotlin.incremental.js=true
|
||||||
|
|
||||||
# https://github.com/google/ksp/issues/2491
|
|
||||||
ksp.useKSP2=false
|
|
||||||
|
|
||||||
library_group=dev.inmo
|
library_group=dev.inmo
|
||||||
library_version=30.0.2
|
library_version=30.0.2
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kotlin = "2.2.20"
|
kotlin = "2.2.21"
|
||||||
kotlin-serialization = "1.9.0"
|
kotlin-serialization = "1.9.0"
|
||||||
kotlin-coroutines = "1.10.2"
|
kotlin-coroutines = "1.10.2"
|
||||||
|
|
||||||
@@ -8,13 +8,13 @@ javax-activation = "1.1.1"
|
|||||||
|
|
||||||
korlibs = "5.4.0"
|
korlibs = "5.4.0"
|
||||||
uuid = "0.8.4"
|
uuid = "0.8.4"
|
||||||
ktor = "3.3.1"
|
ktor = "3.3.2"
|
||||||
|
|
||||||
ksp = "2.2.20-2.0.4"
|
ksp = "2.3.2"
|
||||||
kotlin-poet = "2.2.0"
|
kotlin-poet = "2.2.0"
|
||||||
|
|
||||||
microutils = "0.26.6"
|
microutils = "0.26.8"
|
||||||
kslog = "1.5.1"
|
kslog = "1.5.2"
|
||||||
|
|
||||||
versions = "0.53.0"
|
versions = "0.53.0"
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import com.squareup.kotlinpoet.FileSpec
|
|||||||
import com.squareup.kotlinpoet.asClassName
|
import com.squareup.kotlinpoet.asClassName
|
||||||
import com.squareup.kotlinpoet.ksp.writeTo
|
import com.squareup.kotlinpoet.ksp.writeTo
|
||||||
import dev.inmo.micro_ksp.generator.resolveSubclasses
|
import dev.inmo.micro_ksp.generator.resolveSubclasses
|
||||||
|
import dev.inmo.micro_ksp.generator.withNoSuchElementWorkaround
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent
|
||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
import dev.inmo.tgbotapi.utils.internal.ClassCastsExcluded
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsExcluded
|
||||||
@@ -30,7 +31,9 @@ class TelegramBotAPISymbolProcessor(
|
|||||||
val classes = resolver.getSymbolsWithAnnotation(classCastsIncludedClassName.canonicalName).filterIsInstance<KSClassDeclaration>()
|
val classes = resolver.getSymbolsWithAnnotation(classCastsIncludedClassName.canonicalName).filterIsInstance<KSClassDeclaration>()
|
||||||
val classesRegexes: Map<KSClassDeclaration, Pair<Regex?, Regex?>> = classes.mapNotNull {
|
val classesRegexes: Map<KSClassDeclaration, Pair<Regex?, Regex?>> = classes.mapNotNull {
|
||||||
it to (it.getAnnotationsByType(ClassCastsIncluded::class).firstNotNullOfOrNull {
|
it to (it.getAnnotationsByType(ClassCastsIncluded::class).firstNotNullOfOrNull {
|
||||||
it.typesRegex.takeIf { it.isNotEmpty() } ?.let(::Regex) to it.excludeRegex.takeIf { it.isNotEmpty() } ?.let(::Regex)
|
val typesRegex = withNoSuchElementWorkaround("") { it.typesRegex }
|
||||||
|
val excludeRegex = withNoSuchElementWorkaround("") { it.excludeRegex }
|
||||||
|
typesRegex.takeIf { it.isNotEmpty() } ?.let(::Regex) to excludeRegex.takeIf { it.isNotEmpty() } ?.let(::Regex)
|
||||||
} ?: return@mapNotNull null)
|
} ?: return@mapNotNull null)
|
||||||
}.toMap()
|
}.toMap()
|
||||||
val classesSubtypes = mutableMapOf<KSClassDeclaration, MutableSet<KSClassDeclaration>>()
|
val classesSubtypes = mutableMapOf<KSClassDeclaration, MutableSet<KSClassDeclaration>>()
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user