Compare commits

...

7 Commits

Author SHA1 Message Date
5678382d3c fix in generate sealed workaround 2026-08-10 14:28:44 +06:00
f56cda39b3 update dependencies 2026-08-10 13:58:40 +06:00
bdd37240ba start 30.1.0 2026-08-10 13:31:53 +06:00
a76d04e2a4 Merge pull request #669 from InsanusMokrassar/0.30.0
0.30.0
2026-06-29 15:34:06 +06:00
e0468bc2d7 update dependencies 2026-06-29 15:14:09 +06:00
aeccfbb214 start 0.30.0 2026-06-29 14:47:56 +06:00
c793bea0c3 Merge pull request #663 from InsanusMokrassar/0.29.4
0.29.4
2026-05-23 17:12:28 +06:00
4 changed files with 28 additions and 19 deletions

View File

@@ -1,5 +1,22 @@
# Changelog
## 30.1.0
* `Versions`:
* `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`:
* `Compose`: `1.11.0` -> `1.11.1`
* `KSP`: `2.3.8` -> `2.3.9`
* `Ktor`: `3.5.0` -> `3.5.1`
* `Koin`: `4.2.1` -> `4.2.2`
* `SQLite`: `3.53.1.0` -> `3.53.2.0`
* `AndroidX Core KTX`: `1.18.0` -> `1.19.0`
## 0.29.4
* `Meta`:

View File

@@ -18,5 +18,5 @@ crypto_js_version=4.1.1
# Project data
group=dev.inmo
version=0.29.4
android_code_version=314
version=30.1.0
android_code_version=316

View File

@@ -8,26 +8,26 @@ kotlinx-browser = "0.5.0"
kslog = "1.6.1"
jb-compose = "1.11.0"
jb-compose = "1.11.1"
jb-compose-material3 = "1.11.0-alpha07"
jb-compose-icons = "1.7.8"
jb-exposed = "1.3.0"
jb-dokka = "2.2.0"
sqlite = "3.53.1.0"
sqlite = "3.53.2.1"
korlibs = "5.4.0"
uuid = "0.8.4"
ktor = "3.5.0"
ktor = "3.5.2"
gh-release = "2.5.2"
koin = "4.2.1"
koin = "4.2.2"
okio = "3.17.0"
okio = "3.18.1"
ksp = "2.3.8"
ksp = "2.3.9"
kotlin-poet = "2.3.0"
versions = "0.54.0"
@@ -36,7 +36,7 @@ nmcp = "1.5.0"
android-gradle = "8.12.+"
dexcount = "4.0.0"
android-coreKtx = "1.18.0"
android-coreKtx = "1.19.0"
android-recyclerView = "1.4.0"
android-appCompat = "1.7.1"
android-fragment = "1.8.9"

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") {