Hello, here is a new release of KSP :)
Highlights
• This is the last 1.4.20 release. KSP will hopefully move to Kotlin 1.4.30 in the next release.
• KSP now has a better support of Android build variants! (thanks to @yigit !)
Please note that there are some API runtime behavior changes that your processors might be affected:
• Constructor names are unified to <init>. Previously, in Kotlin source they are the same as class name.
• KSClassDeclaration.declarations and KSClassDeclaration.getAllFunctions() include constructors now.
Issues Resolved
#113 Add a way to check if a KSFunctionDeclaration is a constructor
#114 Constructors returnType is null
#198 KSP resolves classes that are not available to the app
#202 [Gradle Plugin] Support different configurations
#207 Compatibility with Anvil
#265 wrapping method psi to JavaMethodImpl causes exception
#273 explicit constructor is missing in compiled java dependencies
#279 ksp returns empty constructor for data classes
As usual, please give it a try and let us know what you think!