# luckybilly/AutoRegister

基于字节码插桩，在Android中实现跨module自动注册的gradle插件，可用于模块解耦。已应用于ARouter和CC

Repository: https://github.com/luckybilly/AutoRegister
Canonical: https://ross.abutalabs.com/products/autoregister
Homepage: https://juejin.im/post/5a2b95b96fb9a045284669a9
Language: Groovy
License: Apache-2.0
License Family: permissive
Last push: 2023-03-14T08:34:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3266, "days_push": 1268, "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 1122, forks 171 (observed 2026-08-28T04:03:40.084730+00:00)

## What it is
A Gradle plugin for Android that uses bytecode instrumentation (ASM) to automatically register classes implementing a given interface or extending a base class into a manager class at compile time. It eliminates manual registration code in modular/componentized Android projects and is used by ARouter and CC.

## Use cases
- automatically register module implementations in android componentized apps
- avoid manually editing factory or manager classes when adding new products or strategies
- decouple android modules without annotation processors or runtime reflection
- generate registration code into a static block at build time
- scan aar and jar dependencies for interface implementations during apk build

## When to choose
- you do android modular development and need cross-module auto-registration without reflection
- annotation processors cannot scan classes inside aar dependencies
- you want compile-time registration with no runtime performance cost

## When to avoid
- your project is not an Android Gradle build
- you prefer runtime or annotation-based registration approaches
- the project needs active maintenance or support for the latest AGP versions

## Facets
- artifact type: plugin
- maturity: maintenance
- function: build-tool, developer-tools, plugin-system
- domain: mobile-development, developer-tools
- platform: jvm
- tags: gradle-plugin, bytecode-instrumentation, asm, android-componentization, auto-registration, module-decoupling, automation, android, gradle

## Member repositories
- luckybilly/AutoRegister (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.084730+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-30T06:40:56.328134+00:00, confidence not recorded.
  - readme: https://github.com/luckybilly/AutoRegister (fetched 2026-08-28T04:03:40.084730+00:00, sha 4d317af2d539)
  - homepage: https://juejin.im/post/5a2b95b96fb9a045284669a9 (fetched 2026-08-29T12:44:25.107913+00:00, sha 7e4283754e28)
- Data as of 2026-08-30T08:39:29.467469+00:00.
