anvil icon indicating copy to clipboard operation
anvil copied to clipboard

[Question] Interfaces Not Showing Up in Generated Component

Open esafirm opened this issue 2 years ago • 1 comments

Not an issue just a general question.

I tried Anvil and it works perfectly in the runtime. One issue is that my generated code does not contain component interfaces

@Component(modules = [DaggerModule::class])
interface AppComponent : ComponentInterface

// ComponentInterface does not exist in my generated code

Based on the internal doc, Anvil runs shortly before dagger itself, so my assumption contributed interfaces should be there in the generated code

Is this normal behavior or there's something wrong with my setup?

esafirm avatar Oct 08 '22 22:10 esafirm

What exactly do you mean in generated code? The interfaces will be visible in generated Java stubs (when using KAPT) or in the bytecode itself. They're not visible in the source code.

vRallev avatar Oct 10 '22 18:10 vRallev