Archinamon / android-gradle-aspectj

gradle plug-in adding supports of AspectJ into Android project
Apache License 2.0
363 stars 58 forks source link

Writing aspects in Kotlin #79

Open antonkazakov opened 6 years ago

antonkazakov commented 6 years ago

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

Archinamon commented 5 years ago

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.

joaoluizn commented 5 years ago

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?

hiteshandroid commented 4 years ago

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.