You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class Angle(val serialInterval: Int = 0)
and my activity
@Angle(serialInterval = 10)
class MainActivity : AppCompatActivity() {
private lateinit var activityMainBinding: ActivityMainBinding
}
and my SymbolProcessor
override fun process(resolver: Resolver): List<KSAnnotated> {
val symbols = resolver.getSymbolsWithAnnotation(Angle::class.java.name)
val groups = symbols.groupBy { if (it.validate()) "validate" else "invalidate" }
val validateSymbols = groups["validate"]
val invalidateSymbols = groups["invalidate"]
....
return invalidateSymbols ?: emptyList()
}
MainActivity can be scanned, but it is inside invalidateSymbols
after delete private lateinit var activityMainBinding: ActivityMainBinding, MainActivity comes to validateSymbols.
How to make it validate with viewBinding ?
KSP Version: 1.7.20-1.0.8
The text was updated successfully, but these errors were encountered:
view binding does not support KSP, therefore you are running it in KAPT, mixing KAPT and KSP can cause some ordering issue, in which case you should not have dependencies between KAPT and KSP outputs. One solution for this is to specify build order in you build scripts to have KSP running after KAPT, and including KAPT's output into KSP's input (not sure if that has been handled properly in KAPT gradle plugin).
here is my annotation
and my activity
and my SymbolProcessor
MainActivity can be scanned, but it is inside
invalidateSymbols
after delete
private lateinit var activityMainBinding: ActivityMainBinding
, MainActivity comes tovalidateSymbols
.How to make it validate with viewBinding ?
KSP Version: 1.7.20-1.0.8
The text was updated successfully, but these errors were encountered: