Has someone already tried using anvil in a multi platform project?
I think about creating an
expect class Inject
and using the javax.inject in jvmMain and use anvil to generate the factories
r
ralf
02/18/2021, 9:16 PM
I wouldn’t expect Anvil to work in common code. Anvil only works with Dagger. So it should work in a multiplatform project in the JVM / Android modules.
p
Paul Woitaschek
02/22/2021, 6:42 AM
Yeah it doesn't. But it would be great if it did. It should be possible to just run against the jvmMain sourceSet