# trello-archive/RxLifecycle

Lifecycle handling APIs for Android apps using RxJava

Repository: https://github.com/trello-archive/RxLifecycle
Canonical: https://ross.abutalabs.com/products/rxlifecycle
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2023-03-23T15:41:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4062, "days_push": 1259, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7639, forks 635 (observed 2026-08-28T04:10:02.142225+00:00)

## What it is
RxLifecycle is a Java library for Android that automatically completes RxJava reactive sequences based on a lifecycle stream, preventing memory leaks from incomplete subscriptions. It provides binding APIs and provider components for Activities, Fragments, and Android's Architecture Components lifecycle.

## Use cases
- prevent memory leaks from RxJava subscriptions in Android activities
- automatically complete observables when an Android activity is destroyed
- bind reactive streams to Android fragment lifecycle events
- terminate RxJava sequences on specific lifecycle events like DESTROY
- use RxJava with Android Architecture Components LifecycleOwner
- manage RxJava subscriptions in Kotlin Android apps

## When to choose
- you use RxJava in Android apps and need lifecycle-aware subscription management
- you want to avoid memory leaks from long-running observables outliving activities or fragments
- you prefer declarative binding of streams to lifecycle events rather than manual unsubscribe calls

## When to avoid
- you use Kotlin coroutines or Flow instead of RxJava
- you need actual unsubscribe behavior rather than sequence termination
- your project is not Android/JVM based

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, developer-tools
- domain: mobile-development, developer-tools
- platform: jvm
- tags: rxjava, android-lifecycle, reactive-streams, memory-leaks, kotlin-support, android

## Member repositories
- trello-archive/RxLifecycle (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.142225+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-29T17:36:46.624732+00:00, confidence not recorded.
  - readme: https://github.com/trello-archive/RxLifecycle (fetched 2026-08-28T04:10:02.142225+00:00, sha e785bc812802)
- Data as of 2026-08-30T08:39:29.467469+00:00.
