Skip to content

Latest commit

 

History

History
126 lines (92 loc) · 4.5 KB

File metadata and controls

126 lines (92 loc) · 4.5 KB

Devbox Plugins Documentation

Welcome to the devbox-plugins documentation. This wiki provides comprehensive guides, references, and contributor documentation for the Android, iOS, and React Native devbox plugins.

Quick Links

Documentation Structure

Guides

Step-by-step tutorials and practical workflows for using the plugins:

Cheatsheets

One-page quick references with the most common commands:

Reference

Exhaustive API documentation for all public interfaces:

Project

Documentation for contributors and maintainers:

Plugins Overview

Android Plugin

Provides reproducible Android development environments with:

  • Nix-managed Android SDK
  • AVD (Android Virtual Device) management
  • Device definitions for min/max testing
  • Project-local state (no ~/.android pollution)

Include in devbox.json:

{
  "include": ["github:segment-integrations/devbox-plugins?dir=plugins/android"]
}

iOS Plugin

Provides reproducible iOS development environments with:

  • Xcode toolchain integration
  • iOS Simulator management
  • Device definitions for min/max testing
  • Runtime auto-download support

Include in devbox.json:

{
  "include": ["github:segment-integrations/devbox-plugins?dir=plugins/ios"]
}

Requirements: macOS with Xcode installed

React Native Plugin

Composition layer over Android and iOS plugins with:

  • Metro bundler management
  • Parallel test execution
  • Cross-platform development workflows
  • Web build support

Include in devbox.json:

{
  "include": ["github:segment-integrations/devbox-plugins?dir=plugins/react-native"]
}

Key Features

  • Project-Local State - All emulators, simulators, and caches are project-local, not global
  • Reproducible Environments - Lock files ensure consistent SDK versions across machines
  • Parallel Execution - Run multiple test suites simultaneously with --pure isolation
  • Device-Driven Configuration - Define devices as JSON, sync AVDs/simulators declaratively
  • CI/CD Optimized - Device filtering and platform skipping for fast CI builds

Getting Help

Examples

Example projects are available in the repository:

  • examples/android/ - Minimal Android app
  • examples/ios/ - Swift package example
  • examples/react-native/ - React Native app with Android, iOS, and Web

Each example includes device definitions, test suites, and build scripts.