xiaohongshu
xiaohongshu
eas-build-setup
EAS Build configuration for iOS and Android. Use when setting up cloud builds.
Full skill instructions
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": "[email protected]",
"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
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience