Joel Wilcox
12/06/2022, 12:12 AMCompilerPluginRegistrar
API, there doesn't appear to be a way to register extensions with any ordering, which results in failures for Anvil since making sure we run before KAPT is critical. Is there a new equivalent API that can be used, or are there plans to add one for plugins that have ordering concerns?
Here's the relevant Anvil snippet where we register extension first: https://github.com/square/anvil/blob/main/compiler/src/main/java/com/squareup/anvil/compiler/AnvilComponentRegistrar.kt#L82
cc @Zac Sweers @ralfdmitriy.novozhilov
12/06/2022, 8:44 AMCompilerPluginRegistrar
does not have ability to declare relation between extensions right now, but such API is planned KT-55300
For now you can continue to use ComponentRegistrar
, it definitely won't be removed till K2 release (with proper plugin dependency mechanism)Joel Wilcox
12/06/2022, 6:36 PM