I built AspectK and just released 0.4.4, a Kotlin compiler plugin for compile-time AOP in Kotlin (Kotlin Multiplatform supported).
Annotate a function and inject your own logic before/after it, woven in at compile time, with debug info preserved and IDE support.
As a stability check, I applied it to 39 modules of DuckDuckGo’s Android app: all 28,749 unit tests passed, and the R8-minified APK runs fine on a real device.
AspectK: https://github.com/Mole-Labs/aspectk
DuckDuckGo fork: https://github.com/oungsi2000/Android
Feedback welcome!!
submitted by /u/Successful-You5174[link] [comments]