airbnb / epoxy

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

EpoxyDataBindingPattern not work with ksp #1266

Closed donglua closed 2 years ago

donglua commented 2 years ago

version: 5.0.0-beta03

@EpoxyDataBindingPattern(rClass = R2::class, layoutPrefix = "epoxy")
interface EpoxyDataBindingConfig
elihart commented 2 years ago

See the release notes https://github.com/airbnb/epoxy/releases/tag/5.0.0beta02

Note that unfortunately the databinding processor does NOT support KSP, simply because Android databinding itself uses KAPT and KSP cannot currently depend on KAPT sources. The code changes are in place to enable KSP with databinding once the databinding plugin from Android supports KSP (although this is unlikely) - alternatively it may be possible to configure the KSP plugin to run after KAPT and depend on its outputs (you're on your own if you want to try that).