Ross ROSS = Recommend OSS · open-source software intelligence for agents

square/mortar

A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle. observed · 2026-08-28

github.com/square/mortar · Java · Apache-2.0 (permissive) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases archived

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4681
  • days_rel: n/a
  • days_push: 1264
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2135 stars · 151 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Mortar is a Java library for Android that pairs thin views with dedicated presenters, providing a simplified, composable overlay on the Android Activity lifecycle. It uses Context#getSystemService to supply services like dependency injection (Dagger) and bundle persistence via MortarScope singletons.

Use cases

  • manage Android view state across configuration changes
  • implement MVP architecture on Android
  • survive Activity recreation with persisted presenters
  • scope Dagger dependency graphs to screens or wizard sessions
  • decouple presenters from Android view lifecycle

When to choose

  • maintaining a legacy Android app already built on Mortar
  • you specifically want the Views-as-modular-unit MVP pattern with Dagger 1/2

When to avoid

  • starting a new Android project - it is deprecated in favor of Square Workflow
  • you want Jetpack ViewModels or modern Android architecture components
  • you need a library with active community support

Facets

library · maturity abandoned

state-management middleware mobile-development android-tools jvm mvp android-lifecycle dependency-injection deprecated dagger presenters android mobile

1 source

Member repositories

RepositoryRoleHealth v2
square/mortarmain10

For agents

markdown · JSON · MCP: product_card(name="square/mortar")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem