EAS Build configuration for iOS and Android. Use when setting up cloud builds.
/plugin marketplace add IvanTorresEdge/molcajete.ai/plugin install ivantorresedge-react-native-tech-stacks-js-react-native@IvanTorresEdge/molcajete.aiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill covers EAS Build configuration for React Native apps.
Use this skill when:
CLOUD-FIRST BUILDS - Let EAS handle the complexity of native builds.
# Install EAS CLI globally
npm install -g eas-cli
# Login to Expo account
eas login
# Initialize EAS in project
eas build:configure
// eas.json
{
"cli": {
"version": ">= 12.0.0"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}
// eas.json
{
"cli": {
"version": ">= 12.0.0",
"appVersionSource": "remote"
},
"build": {
"base": {
"node": "20.11.0",
"env": {
"EXPO_PUBLIC_API_URL": "https://api.example.com"
}
},
"development": {
"extends": "base",
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
},
"android": {
"buildType": "apk"
},
"env": {
"EXPO_PUBLIC_API_URL": "https://api.dev.example.com"
}
},
"preview": {
"extends": "base",
"distribution": "internal",
"ios": {
"resourceClass": "m-medium"
},
"android": {
"buildType": "apk"
},
"channel": "preview",
"env": {
"EXPO_PUBLIC_API_URL": "https://api.staging.example.com"
}
},
"production": {
"extends": "base",
"autoIncrement": true,
"ios": {
"resourceClass": "m-medium"
},
"channel": "production",
"env": {
"EXPO_PUBLIC_API_URL": "https://api.example.com"
}
}
},
"submit": {
"production": {
"ios": {
"appleId": "your@email.com",
"ascAppId": "1234567890",
"appleTeamId": "ABCD1234"
},
"android": {
"serviceAccountKeyPath": "./google-service-account.json",
"track": "internal"
}
}
}
}
// app.config.ts
import { ExpoConfig, ConfigContext } from 'expo/config';
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: 'My App',
slug: 'my-app',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/icon.png',
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
ios: {
bundleIdentifier: 'com.company.myapp',
supportsTablet: true,
infoPlist: {
NSCameraUsageDescription: 'This app uses the camera for...',
NSPhotoLibraryUsageDescription: 'This app accesses photos for...',
},
},
android: {
package: 'com.company.myapp',
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#ffffff',
},
permissions: [
'CAMERA',
'READ_EXTERNAL_STORAGE',
'WRITE_EXTERNAL_STORAGE',
],
},
extra: {
eas: {
projectId: 'your-project-id',
},
},
owner: 'your-expo-account',
});
# iOS credentials
eas credentials --platform ios
# Android credentials
eas credentials --platform android
# View current credentials
eas credentials
# Generate new iOS distribution certificate
eas credentials --platform ios
# Generate new Android keystore
eas credentials --platform android
# Development build (with dev client)
eas build --profile development --platform ios
eas build --profile development --platform android
# Preview build (internal testing)
eas build --profile preview --platform all
# Production build
eas build --profile production --platform all
# Build with specific message
eas build --profile production --message "Release v1.0.0"
# Local build (without cloud)
eas build --local --platform ios
// eas.json - iOS section
{
"build": {
"production": {
"ios": {
"resourceClass": "m-medium",
"image": "latest",
"credentialsSource": "remote",
"buildConfiguration": "Release"
}
}
}
}
<!-- ios/MyApp/MyApp.entitlements -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>production</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:example.com</string>
</array>
</dict>
</plist>
// eas.json - Android section
{
"build": {
"preview": {
"android": {
"buildType": "apk",
"gradleCommand": ":app:assembleRelease"
}
},
"production": {
"android": {
"buildType": "app-bundle",
"gradleCommand": ":app:bundleRelease",
"resourceClass": "medium"
}
}
}
}
// eas.json
{
"build": {
"production": {
"env": {
"EXPO_PUBLIC_API_URL": "https://api.example.com",
"EXPO_PUBLIC_ANALYTICS_ID": "UA-XXXXX-Y"
}
}
}
}
# Or use EAS Secrets for sensitive values
eas secret:create --name API_KEY --value "your-secret-key" --scope project
eas secret:list
// package.json
{
"scripts": {
"eas-build-pre-install": "echo 'Running pre-install hook'",
"eas-build-post-install": "echo 'Running post-install hook'",
"eas-build-on-success": "echo 'Build succeeded!'",
"eas-build-on-error": "echo 'Build failed!'"
}
}
# Register devices for internal distribution
eas device:create
# List registered devices
eas device:list
# Build for internal distribution
eas build --profile preview --platform ios
# View build status
eas build:list
# View specific build
eas build:view <build-id>
# Cancel build
eas build:cancel <build-id>
# Download build artifacts
eas build:download --platform ios --latest
# .github/workflows/eas-build.yml
name: EAS Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Build preview
if: github.event_name == 'pull_request'
run: eas build --profile preview --platform all --non-interactive
- name: Build production
if: github.ref == 'refs/heads/main'
run: eas build --profile production --platform all --non-interactive
// eas.json
{
"cli": {
"appVersionSource": "remote"
},
"build": {
"production": {
"autoIncrement": true
}
}
}
# Manually set version
eas build:version:set --platform ios --version 1.2.0 --build-number 45
eas build:version:set --platform android --version 1.2.0 --version-code 45
# Get current version
eas build:version:get --platform ios
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.