explaingit

android/nowinandroid

📈 Trending21,151KotlinAudience · developerComplexity · 4/5ActiveLicenseSetup · moderate

TLDR

Official Google sample Android app built with Kotlin and Jetpack Compose, demonstrating modern architecture, modularization, and testing best practices.

Mindmap

mindmap
  root((repo))
    What it does
      News and content app
      Follow topics
      Push notifications
    Tech stack
      Kotlin
      Jetpack Compose
      Hilt DI
    Architecture
      Fully modularized
      Official guidance
      Test doubles
    Testing
      Screenshot testing
      Roborazzi
      Benchmark variant
    Use cases
      Learning Android patterns
      Reference implementation

Things people build with this

USE CASE 1

Learn modern Android architecture patterns and modularization strategies from a production-quality reference app.

USE CASE 2

Build a news or content discovery app with topic following and notification features.

USE CASE 3

Set up screenshot testing and performance benchmarking for your own Android projects.

USE CASE 4

Understand how to structure Kotlin and Compose projects at scale with dependency injection.

Tech stack

KotlinJetpack ComposeHiltRoborazzi

Getting it running

Difficulty · moderate Time to first run · 30min

Requires Android Studio and SDK setup; Gradle build can be slow on first run.

Apache 2.0 license allows free use, modification, and distribution for any purpose, including commercial, as long as you include a copy of the license and state significant changes.

In plain English

Now in Android is a sample Android app published by the Android team at Google to show developers, in working code, how a modern Android app should be built. It is a real, downloadable application, available on the Play Store, that lets users browse recent videos and articles from the official "Now in Android" content series, follow topics they care about, and get notified when new content matches their interests. The repo doubles as a reference codebase, and the README links to a design case study, an architecture learning journey, and a modularization learning journey for studying the code. The interesting part for developers is how it is built. The app is written entirely in Kotlin and uses Jetpack Compose for its UI. It follows Google's official architecture guidance and is fully modularized, meaning the project is split into many smaller Gradle modules rather than living in one big app module. Hilt is used for dependency injection so production components can be swapped for test doubles; the project deliberately avoids mocking libraries and instead provides Test implementations of repositories. The build uses product flavors: a demo flavor reads static local data so anyone can build and run the app, and a prod flavor talks to a backend that is not publicly available. Roborazzi powers screenshot tests, and a benchmark variant measures startup performance. You would clone this repo when you want to learn current Android best practices, Compose UI, modularization, testing without mocks, by reading a complete, working example rather than isolated snippets. It opens directly in Android Studio. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Show me how Now in Android structures its modules and dependency injection with Hilt.
Prompt 2
How does Now in Android implement screenshot testing with Roborazzi across different screen sizes?
Prompt 3
What testing patterns does Now in Android use instead of mocking libraries?
Prompt 4
Help me set up a modularized Android app following the architecture in Now in Android.
Prompt 5
How does the demo flavor in Now in Android use static local data for testing?
Open on GitHub → Explain another repo

Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.