android-gradle-aspectj icon indicating copy to clipboard operation
android-gradle-aspectj copied to clipboard

Writing aspects in Kotlin

Open antonkazakov opened this issue 7 years ago • 3 comments

Hi. Thank you for this plugin. I am wondering is it possible to write aspects in Kotlin? I compiled project with no errors. But when i looked in the decompiled code there is no aspects in there. Im using kotlin 1.2.30

antonkazakov avatar Jul 02 '18 13:07 antonkazakov

Nope. Technically AJ not supports it. AspectJ can augment Kotlin code so on. You may try to write kotlin class annotated with @Aspect and try to compile it. Not sure it works.

Archinamon avatar Feb 12 '19 17:02 Archinamon

I actually wrote a full Android project and an Aspect weave class with all my pointcuts, both with Kotlin, and it is working fine, I'm just surprised with this @Archinamon, shouldn't it be working?

Is that Issue still relevant? Maybe this is old?

joaoluizn avatar May 22 '19 22:05 joaoluizn

I actually wrote a full Android project and an Aspect weave class with all my pointcuts, both with Kotlin, and it is working fine, I'm just surprised with this @Archinamon, shouldn't it be working?

Is that Issue still relevant? Maybe this is old?

Can you please send us the repo link. Currently we are also struggling with the same issue.

hiteshandroid avatar Jul 30 '19 06:07 hiteshandroid