Archinamon / android-gradle-aspectj

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

Pointcut not registered in .log file for library modules #114

Closed marvinsengchau closed 4 years ago

marvinsengchau commented 4 years ago

Hi all,

I'm encountering an issue when defining pointcuts for one of my projects and was looking for some guidance.

In the past, I successfully integrated this library into one my Android projects with a monolithic structure and pointcuts such as these were successfully registered in the ajc-transform.log file

@Pointcut("execution(void *.onClick(..))")
@Pointcut("execution(* *.onViewCreated(..))")

However, in a new project with an app module that implements several local Android library feature modules, I am unable to identify/register these same pointcuts for the methods in the feature module. I've tried the pointcut below (which produced a file filled with android.R properties) and a couple other variations with no luck.

@Pointcut ("execution(* packageName.*(..))"

Apologies if this is the incorrect forum for these type of questions and any guidance would be greatly appreciated.