I'm trying to create a dagger component in `jvmMai...
# multiplatform
i
I'm trying to create a dagger component in
jvmMain
of shared code - with the idea being I want to write E2E tests which use the object graph in shared with Fakes attached. We currently have annotations on all constructors which are real annotations in JVM & Fakeannotations in iOS.
jvmMain
Copy code
actual typealias MakeInjectable = javax.inject.Inject
commonMain
Copy code
class LogInViewModel @MakeInjectable constructor() { ... }
The problem is, none of the generated dagger code is created - is there something simple I'm missing? Or is this even possible?
shared/build.gradle
Copy code
plugins {
    kotlin("multiplatform")
    ...
    kotlin("kapt")
}

...   
     
val jvmTest by getting {
            dependencies {
                ...
                implementation(AndroidLibrary.dagger)
                compileOnly(AndroidLibrary.daggerCompiler)
            }
        }