# sockeqwe/fragmentargs

Annotation Processor for setting arguments in android fragments

Repository: https://github.com/sockeqwe/fragmentargs
Canonical: https://ross.abutalabs.com/products/fragmentargs
Homepage: http://hannesdorfmann.com/android/fragmentargs
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2023-12-17T03:31:41+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": 4400, "days_push": 990, "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 1063, forks 85 (observed 2026-08-28T04:03:26.329611+00:00)

## What it is
A Java annotation processor for Android that generates Builder classes and argument injection code for Fragments at compile time, avoiding reflection. It eliminates boilerplate and crash-prone manual argument handling in Fragment-based Android apps.

## Use cases
- pass arguments to android fragments safely
- avoid NullPointerException on fragment arguments after rotation
- generate fragment builders instead of writing newInstance boilerplate
- inject fragment arguments without reflection
- reduce boilerplate in android fragment code

## When to choose
- you maintain a legacy Android app using Fragments and want type-safe argument handling
- you want compile-time generated builders with no reflection overhead
- you frequently hit crashes from unset fragment arguments across configuration changes

## When to avoid
- you build new apps with Jetpack Compose or Navigation Component's Safe Args
- your project uses Kotlin with modern fragment argument solutions
- you need actively maintained tooling - the project sees only sporadic releases

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, boilerplate
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: annotation-processor, fragments, android, compile-time-codegen, no-reflection, code-generation

## Member repositories
- sockeqwe/fragmentargs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.329611+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:56:41.169366+00:00, confidence not recorded.
  - readme: https://github.com/sockeqwe/fragmentargs (fetched 2026-08-28T04:03:26.329611+00:00, sha cebe81e89e96)
  - homepage: http://hannesdorfmann.com/android/fragmentargs (fetched 2026-08-29T12:58:05.016617+00:00, sha 176816d5a0c1)
  - site_page: https://hannesdorfmann.com/about (fetched 2026-08-29T12:58:05.026254+00:00, sha 65f7fda601b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
