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:

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

Need React or React Native expertise you can count on?

Need help with React or React Native projects?
We support teams building scalable apps with React and React Native.