AndroidDevMetrics icon indicating copy to clipboard operation
AndroidDevMetrics copied to clipboard

Don't work in with dagger2 written by kotlin

Open ghost opened this issue 9 years ago • 7 comments

Hi, I find that this don't work when dagger2 written by kotlin. Is it a bug? Or my problems?

ghost avatar Apr 19 '16 15:04 ghost

Can you provide an example project? Or the error you are seeing?

williamwebb avatar Apr 19 '16 15:04 williamwebb

https://github.com/zengzhihao/CNodeClient Above is my project, when I install apk, dagger2 shows no data. It works before I modify di's impl from java to kotlin.

ghost avatar Apr 20 '16 09:04 ghost

Ah OK now i understand. This comes from the way the plugin works. But basically what is happening is the kotlin generates files are not generates at the time the plugin runs, so it doesn't make the modifications it needs to make. I would suggest opening up another issue for the plugin to support the new transform API. Using the transform API will fix this issue and bring the plugin more inline with official standards.

In the new issue please reference this one.

williamwebb avatar Apr 20 '16 12:04 williamwebb

How is it going? I face this problem too :( I doesn't work for activity metrics too. It shows: device-2016-05-12-143307

lenguyenthanh avatar May 12 '16 07:05 lenguyenthanh

Kotlin has some problem with AOP. It is a known problem now. And thi plugin can helps.

A-Zaiats avatar Nov 25 '16 19:11 A-Zaiats

I am interested in this, what is needed to make this work?

kuhnroyal avatar Mar 19 '17 14:03 kuhnroyal

Hey - are there any plans to make this compatible with Koltin or will this issue be closed as a no-fix?

gallal avatar Aug 07 '17 09:08 gallal