Compare commits

..

10 Commits

Author SHA1 Message Date
b00e93372d temporarily disable inmo nexus 2026-08-13 13:23:43 +06:00
8f51cd4d60 update kslog 2026-08-13 13:22:55 +06:00
f618ea05f7 fix in generate sealed workaround 2026-08-13 13:18:09 +06:00
2b053dfedb update dependencies 2026-08-13 13:18:09 +06:00
f6ab406ffa start 0.30.1 2026-08-13 13:18:09 +06:00
fe635835a5 update dependencies 2026-08-13 13:17:08 +06:00
795bc4e09e start 0.30.0 2026-08-13 13:17:08 +06:00
d431446da0 fix dokka build :( 2026-08-13 13:17:08 +06:00
362821e4d7 add meta 2026-08-13 13:17:08 +06:00
2045db9cd0 start 0.29.4 2026-08-13 13:17:08 +06:00
5 changed files with 17 additions and 17 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 0.30.1
* `Versions`:
* `KSLog`: `1.6.1` -> `1.7.0`
* `SQLite`: `3.53.2.0` -> `3.53.2.1`
* `Ktor`: `3.5.1` -> `3.5.2`
* `Okio`: `3.17.0` -> `3.18.1`
## 0.30.0
* `Versions`:

View File

@@ -41,7 +41,7 @@ allprojects {
mavenCentral()
google()
maven { url "https://maven.pkg.jetbrains.space/public/p/compose/dev" }
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
// maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
mavenLocal()
}

View File

@@ -18,5 +18,5 @@ crypto_js_version=4.1.1
# Project data
group=dev.inmo
version=0.30.0
android_code_version=315
version=0.30.1
android_code_version=316

View File

@@ -6,7 +6,7 @@ kt-coroutines = "1.11.0"
kotlinx-browser = "0.5.0"
kslog = "1.6.1"
kslog = "1.7.0"
jb-compose = "1.11.1"
jb-compose-material3 = "1.11.0-alpha07"
@@ -14,18 +14,18 @@ jb-compose-icons = "1.7.8"
jb-exposed = "1.3.0"
jb-dokka = "2.2.0"
sqlite = "3.53.2.0"
sqlite = "3.53.2.1"
korlibs = "5.4.0"
uuid = "0.8.4"
ktor = "3.5.1"
ktor = "3.5.2"
gh-release = "2.5.2"
koin = "4.2.2"
okio = "3.17.0"
okio = "3.18.1"
ksp = "2.3.9"
kotlin-poet = "2.3.0"

View File

@@ -53,7 +53,7 @@ class Processor(
val annotation = ksClassDeclaration.getGenerateSealedWorkaroundAnnotation
val subClasses = ksClassDeclaration.resolveSubclasses(
searchIn = resolver.getAllFiles(),
allowNonSealed = annotation ?.includeNonSealedSubTypes ?: false
allowNonSealed = withNoSuchElementWorkaround(null) { annotation ?.includeNonSealedSubTypes } ?: false
).distinct()
val subClassesNames = subClasses.filter {
when (it.classKind) {
@@ -165,15 +165,7 @@ class Processor(
@OptIn(KspExperimental::class)
override fun process(resolver: Resolver): List<KSAnnotated> {
(resolver.getSymbolsWithAnnotation(GenerateSealedWorkaround::class.qualifiedName!!)).filterIsInstance<KSClassDeclaration>().forEach {
val prefix = runCatching {
(it.getGenerateSealedWorkaroundAnnotation) ?.prefix
}.getOrElse {
if (it is NoSuchElementException) {
""
} else {
throw it
}
} ?.takeIf {
val prefix = withNoSuchElementWorkaround(null) { (it.getGenerateSealedWorkaroundAnnotation) ?.prefix } ?.takeIf {
it.isNotEmpty()
} ?: it.buildSubFileName.replaceFirst(it.simpleName.asString(), "")
it.writeFile(prefix = prefix, suffix = "SealedWorkaround") {