square / dagger

A fast dependency injector for Android and Java.

Home Page:https://square.github.io/dagger/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does Dagger works with the new Jack compiler toolchain?

chakrit opened this issue · comments

See here: https://developer.android.com/preview/j8-jack.html

Relevant? quote:

Because Jack does not generate intermediate class files when compiling an app, tools that depend on these files do not currently work with Jack. Some examples of these tools are:

I'm converting an old project which uses dagger-compiler and gradle-retrolambda to this new Jack thing so I can get rid of the retrolambda hack and having hard time getting the compileDebugJavaWithJack task to finish so was wondering if this was the issue.

Yes. You use annotationProcessor to declare the dagger-compiler artifact. More info @ http://tools.android.com/tech-docs/jackandjill

@JakeWharton oh, that page is certinaly much more useful. Thank you!!