mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-08-14 21:26:18 +00:00
Compare commits
1 Commits
09dc1079ea
...
renovate/m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52487c6481 |
@@ -1,12 +1,5 @@
|
||||
# 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`:
|
||||
|
||||
@@ -18,5 +18,5 @@ crypto_js_version=4.1.1
|
||||
# Project data
|
||||
|
||||
group=dev.inmo
|
||||
version=30.1.0
|
||||
android_code_version=316
|
||||
version=0.30.0
|
||||
android_code_version=315
|
||||
|
||||
@@ -14,18 +14,18 @@ jb-compose-icons = "1.7.8"
|
||||
jb-exposed = "1.3.0"
|
||||
jb-dokka = "2.2.0"
|
||||
|
||||
sqlite = "3.53.2.1"
|
||||
sqlite = "3.53.2.0"
|
||||
|
||||
korlibs = "5.4.0"
|
||||
uuid = "0.8.4"
|
||||
|
||||
ktor = "3.5.2"
|
||||
ktor = "3.5.1"
|
||||
|
||||
gh-release = "2.5.2"
|
||||
|
||||
koin = "4.2.2"
|
||||
|
||||
okio = "3.18.1"
|
||||
okio = "3.17.0"
|
||||
|
||||
ksp = "2.3.9"
|
||||
kotlin-poet = "2.3.0"
|
||||
@@ -33,7 +33,7 @@ kotlin-poet = "2.3.0"
|
||||
versions = "0.54.0"
|
||||
nmcp = "1.5.0"
|
||||
|
||||
android-gradle = "8.12.+"
|
||||
android-gradle = "9.3.+"
|
||||
dexcount = "4.0.0"
|
||||
|
||||
android-coreKtx = "1.19.0"
|
||||
|
||||
@@ -53,7 +53,7 @@ class Processor(
|
||||
val annotation = ksClassDeclaration.getGenerateSealedWorkaroundAnnotation
|
||||
val subClasses = ksClassDeclaration.resolveSubclasses(
|
||||
searchIn = resolver.getAllFiles(),
|
||||
allowNonSealed = withNoSuchElementWorkaround(null) { annotation ?.includeNonSealedSubTypes } ?: false
|
||||
allowNonSealed = annotation ?.includeNonSealedSubTypes ?: false
|
||||
).distinct()
|
||||
val subClassesNames = subClasses.filter {
|
||||
when (it.classKind) {
|
||||
@@ -165,7 +165,15 @@ class Processor(
|
||||
@OptIn(KspExperimental::class)
|
||||
override fun process(resolver: Resolver): List<KSAnnotated> {
|
||||
(resolver.getSymbolsWithAnnotation(GenerateSealedWorkaround::class.qualifiedName!!)).filterIsInstance<KSClassDeclaration>().forEach {
|
||||
val prefix = withNoSuchElementWorkaround(null) { (it.getGenerateSealedWorkaroundAnnotation) ?.prefix } ?.takeIf {
|
||||
val prefix = runCatching {
|
||||
(it.getGenerateSealedWorkaroundAnnotation) ?.prefix
|
||||
}.getOrElse {
|
||||
if (it is NoSuchElementException) {
|
||||
""
|
||||
} else {
|
||||
throw it
|
||||
}
|
||||
} ?.takeIf {
|
||||
it.isNotEmpty()
|
||||
} ?: it.buildSubFileName.replaceFirst(it.simpleName.asString(), "")
|
||||
it.writeFile(prefix = prefix, suffix = "SealedWorkaround") {
|
||||
|
||||
Reference in New Issue
Block a user