FOUNDRY
C8 Platform
← Tasks

[DK-02] EAS Build config — development, preview, production profiles (retry 1)

completedcode_genP2

Description

## DK-02: EAS Build config — development, preview, production profiles Section: Deployment | Milestone: M5 | Owner: AG Lu ### Failing Tests - **eas_json** (file_exists): File `c8-audio/eas.json` must exist - **dev_profile** (grep): Pattern `development` in `c8-audio/eas.json` (need 1+ matches) - **preview_profile** (grep): Pattern `preview` in `c8-audio/eas.json` (need 1+ matches) - **production_profile** (grep): Pattern `production` in `c8-audio/eas.json` (need 1+ matches) ### Acceptance Criteria - File `c8-audio/eas.json` must exist - File matching `c8-audio/eas.json` must contain pattern `development` - File matching `c8-audio/eas.json` must contain pattern `preview` - File matching `c8-audio/eas.json` must contain pattern `production` ### Codebase Conventions - Trilingual comments: // EN: ... // VI: ... // ES: ... - SPEC section refs in comments - Zod at module level with .safeParse() - (supabase as any) with eslint-disable - NextResponse.json() responses - Error format: { error: 'message' } ### Dependencies - SC-01: FAIL
Assignee
-
Claimed By
Cloud Lu → Claude Sonnet
Created
1d ago
Completed
1d ago

Quality

Overall
87%
Pass
PASS
Graded By
-
Graded At
-

Cost

Input Tokens
-
Output Tokens
-
Est. USD
-

Result

{
  "cost": {
    "input_tokens": 375,
    "estimated_usd": 0.010455,
    "output_tokens": 622
  },
  "model": "claude-sonnet-4-20250514",
  "status": "success",
  "transport": "anthropic_api",
  "latency_ms": 11012,
  "response_text": "I need to create an EAS Build configuration file with development, preview, and production profiles. Let me create the `eas.json` file in the `c8-audio` directory.\n\n```json\n{\n  \"cli\": {\n    \"version\": \">= 5.9.0\"\n  },\n  \"build\": {\n    \"development\": {\n      \"developmentClient\": true,\n      \"distribution\": \"internal\",\n      \"ios\": {\n        \"resourceClass\": \"m-medium\"\n      },\n      \"android\": {\n        \"buildType\": \"apk\",\n        \"gradleCommand\": \":app:assembleDebug\"\n      },\n      \"env\": {\n        \"NODE_ENV\": \"development\"\n      }\n    },\n    \"preview\": {\n      \"distribution\": \"internal\",\n      \"ios\": {\n        \"resourceClass\": \"m-medium\",\n        \"simulator\": true\n      },\n      \"android\": {\n        \"buildType\": \"apk\",\n        \"gradleCommand\": \":app:assembleRelease\"\n      },\n      \"env\": {\n        \"NODE_ENV\": \"preview\"\n      }\n    },\n    \"production\": {\n      \"ios\": {\n        \"resourceClass\": \"m-medium\"\n      },\n      \"android\": {\n        \"buildType\": \"aab\"\n      },\n      \"env\": {\n        \"NODE_ENV\": \"production\"\n      }\n    }\n  },\n  \"submit\": {\n    \"production\": {\n      \"ios\": {\n        \"appleId\": \"your-apple-id@example.com\",\n        \"ascAppId\": \"1234567890\",\n        \"appleTeamId\": \"ABCD123456\"\n      },\n      \"android\": {\n        \"serviceAccountKeyPath\": \"../path/to/api-key.json\",\n        \"track\": \"internal\"\n      }\n    }\n  }\n}\n```\n\nThis EAS Build configuration includes:\n\n1. **Development profile**: \n   - Uses development client for faster iteration\n   - Internal distribution for testing\n   - Debug build for Android\n   - Development environment variables\n\n2. **Preview profile**:\n   - Internal distribution for stakeholder review\n   - iOS simulator support for testing\n   - Release build for Android (APK format)\n   - Preview environment variables\n\n3. **Production profile**:\n   - Production-ready builds\n   - AAB format for Android (Google Play requirement)\n   - Production environment variables\n   - Optimized resource allocation\n\nThe configuration also includes submit profiles for app store deployment, with placeholders for the necessary credentials and identifiers that would need to be configured for the specific app."
}
Task ID: 74b76590-1018-4505-96f2-8472267d21a6