airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

Fix click listener kapt bug #1327

Closed elihart closed 1 year ago

elihart commented 1 year ago

This addresses a rare bug because of the xprocessing behavior change in its new version. In kapt only (not ksp), a click listener in a base epoxy model view class that has a sub class epoxy model view extend it specifically in a different module, would result in the sub class's generated epoxy model not having the OnModelClickListener override function. This is because the type checking for a click listener wasn't working correctly in this case where the click listener type was being inherited from a type on the class path. Was a simple fix to use correct type checking instead of ==

Also cleans up how publishing is done