logologo
Docs
Docs
logologo
Introduction
Prior Art
Getting Started
Configuration

CLI

Introduction
Migrating from Community CLI

Remote Cache

Introduction
Github Actions Setup
iOS GitHub Action
Android GitHub Action

Integration with Native Apps

Introduction
iOS Brownfield
Android Brownfield
Abstract Logo

Need React or React Native expertise you can count on?

Let's talkLet's talk
Edit this page on GitHub
Previous PageMigrating from Community CLI
Next PageGithub Actions Setup
Need help with React or React Native projects?
We support teams building scalable apps with React and React Native.
Let's talkLet's talk

#Remote Cache

Remote Cache is a feature that speeds up your development workflow by centralizing storage for native app builds. These builds can be retrieved either manually or through our CLI, dramatically reducing build times across your team.

#What is Remote Cache?

The Remote Cache acts as a centralized storage for native app builds that can be hosted on various platforms:

  • GitHub Actions
  • Amazon S3
  • Cloudflare R2
  • Custom providers

#Ready-to-Use Actions

Rock ships with ready-to-use GitHub Actions:

  • callstackincubator/ios - iOS builds and caching
  • callstackincubator/android - Android builds and caching

These actions automatically store native artifacts that can be reused across CI jobs and your local development environment through the Rock CLI.

#How It Works

  1. For each build, we calculate a unique hash (fingerprint) that represents your project's native state
  2. This hash remains stable across builds unless you:
    • Modify native files
    • Change dependencies with native code
    • Update scripts in package.json
  3. When you make JavaScript-only changes, the hash stays the same
  4. The CLI checks for matching builds in:
    • Local cache (.rock/ directory)
    • Remote storage
    • Falls back to local build if no match is found

How CLI works with remote cache