Skip to content

Commit

Permalink
Update ksp to v1.9.20-1.0.14 (#506)
Browse files Browse the repository at this point in the history
* Update ksp to v1.9.20-1.0.14

* Fix incompatibility

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zac Sweers <[email protected]>
  • Loading branch information
renovate[bot] and ZacSweers authored Nov 18, 2023
1 parent d2abfb8 commit 0d6f61b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jvmTarget = "11"
kotlin = "1.9.20"
kotlinCompileTesting = "0.4.0"
kotlinpoet = "1.15.0"
ksp = "1.9.20-1.0.13"
ksp = "1.9.20-1.0.14"
ktfmt = "0.46"
moshi = "1.15.0"
okhttp = "4.12.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package dev.zacsweers.moshix.proguardgen
import com.google.auto.service.AutoService
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.getAnnotationsByType
import com.google.devtools.ksp.hasAnnotation
import com.google.devtools.ksp.processing.Dependencies
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessor
Expand Down Expand Up @@ -151,7 +150,12 @@ public class MoshiProguardGenSymbolProcessor(
) {
if (isSealed) {
if (!skipAnnotationCheck) {
if (hasAnnotation(NESTED_SEALED_FQ_NAME)) {
if (
annotations.any {
it.annotationType.resolve().declaration.qualifiedName?.asString() ==
NESTED_SEALED_FQ_NAME
}
) {
elements += toClassName()
} else {
return
Expand Down

0 comments on commit 0d6f61b

Please sign in to comment.