anvil
anvil copied to clipboard
[Question] Interfaces Not Showing Up in Generated Component
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?
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.