# HujiangTechnology/gradle_plugin_android_aspectjx

A Android gradle plugin that effects AspectJ on Android project and can hook methods in Kotlin, aar and jar file.

Repository: https://github.com/HujiangTechnology/gradle_plugin_android_aspectjx
Canonical: https://ross.abutalabs.com/products/gradle_plugin_android_aspectjx
Language: Groovy
License: Apache-2.0
License Family: permissive
Last push: 2021-09-15T07:40:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3783, "days_push": 1813, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3956, forks 572 (observed 2026-08-28T04:08:30.508776+00:00)

## What it is
A Gradle plugin that applies AspectJ bytecode weaving to Android projects, supporting Java source, class files, JAR/AAR libraries, and Kotlin code. It enables aspect-oriented programming hooks (e.g., method interception) at build time without runtime root or Xposed-style hacks.

## Use cases
- hook method calls in an Android app with annotations
- apply AOP cross-cutting concerns like logging or analytics in Android
- weave aspects into Kotlin code and third-party aar/jar dependencies
- add performance tracing to Android methods without modifying source
- implement permission checks or retry logic via AspectJ pointcuts

## When to choose
- you need annotation-based AOP on Android including Kotlin and packaged aar/jar code
- you want compile-time weaving instead of runtime hooking frameworks like Xposed
- your project uses Gradle Android plugin 1.5 through ~3.6

## When to avoid
- you need *.aj file compilation - only annotation style is supported
- your project uses newer Android Gradle plugin versions beyond what the plugin supports
- the project is unmaintained and incompatible with your AGP version

## Facets
- artifact type: plugin
- maturity: maintenance
- function: build-tool, middleware
- domain: mobile-development, developer-tools, android-tools
- platform: jvm
- tags: aspectj, aop, gradle-plugin, android, kotlin, bytecode-weaving, gradle

## Member repositories
- HujiangTechnology/gradle_plugin_android_aspectjx (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.508776+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:29.307844+00:00, confidence not recorded.
  - readme: https://github.com/HujiangTechnology/gradle_plugin_android_aspectjx (fetched 2026-08-28T04:08:30.508776+00:00, sha 1db538f54a6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
