If I have android project with dagger @Inject cons...
# multiplatform
u
If I have android project with dagger @Inject constructors on classes I want now to share via multiplatform, I'm screwed right? (talking about the inject annotation, coming from jdk)
👍 1
m
I don't know much about Dagger (or Koin) but the example KMM project KampKit uses Koin, so perhaps not.
u
well because its kotlin, I was more thinking of somehow shadowing the java annotation or something, so its no-op when compiling native?
r
If you just want to use it for your jvm code, you can do
@OptionalExpectation expect annotation class Inject
in common and
actual typealias Inject = javax.inject.Inject
on jvm
u
thanks"