finds.dev

android10/Android-AOPExample

This is a simple example of Aspect Oriented Programming in Android

View on GitHub

★ 420JavaApache-2.0updated Aug 2018

// the take

A 2014 blog post companion repo demonstrating Aspect Oriented Programming in Android using AspectJ — specifically a `@DebugTrace` annotation that logs method execution time to logcat. It's a teaching example, not a library. The author acknowledges it's a primitive version of Jake Wharton's Hugo.

The core idea is clearly scoped: one annotation, one aspect, one measurable behavior. The `gintonic` module is cleanly separated from the demo app so the AOP machinery is easy to read in isolation. It works as a minimal reference for how AspectJ weaving hooks into Android's Gradle build.

Abandoned in 2018 — the Gradle build, AspectJ plugin, and Android target SDK are all ancient and will require non-trivial effort to run on anything modern. The actual AOP implementation covers exactly one use case (timing), so there's nothing here beyond what the blog post already explains. If you want this pattern today, Hugo itself is a better starting point and it too is unmaintained, which tells you something about where AspectJ-based AOP landed in Android development.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
420
Forks
134
Language
Java
License
Apache-2.0
Last commit
30 Aug 2018

// nearby

If Android-AOPExample isn't quite it.

All repos →