diff --git a/.github/workflows/mobile-eas-preview.yml b/.github/workflows/mobile-eas-preview.yml index 11eb0c64589..a36ef326715 100644 --- a/.github/workflows/mobile-eas-preview.yml +++ b/.github/workflows/mobile-eas-preview.yml @@ -75,9 +75,14 @@ jobs: env: EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }} with: - profile: preview:dev + # Release configuration, not `preview:dev`: PR builds must show + # production-grade performance and memory behaviour. The dev-client + # `preview:dev` profile stays available for local Metro attachment. + profile: preview branch: pr-${{ github.event.pull_request.number }} - platform: all + # iOS only: Android has no signing keystore configured, so including + # it fails the job before the iOS artifact is published. + platform: ios environment: preview working-directory: apps/mobile github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/apps/mobile/README.md b/apps/mobile/README.md index 920a25fc095..16e134adf57 100644 --- a/apps/mobile/README.md +++ b/apps/mobile/README.md @@ -122,7 +122,7 @@ The native lint task runs SwiftLint for Swift plus ktlint and detekt for Kotlin. ## EAS Builds -CI uses Expo fingerprinting with the `preview:dev` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. Production and default local builds continue to use the `appVersion` runtime policy. +CI uses Expo fingerprinting with the `preview` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. That profile builds the release configuration, so labelled PR builds behave like production for performance and memory; use `preview:dev` when you want a dev client on the preview channel that attaches to local Metro. Production and default local builds continue to use the `appVersion` runtime policy. For preview or production EAS environments, set `T3CODE_CLERK_PUBLISHABLE_KEY`, `T3CODE_CLERK_JWT_TEMPLATE`, and `T3CODE_RELAY_URL` diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json index bec1840b515..9f5d768e14c 100644 --- a/apps/mobile/eas.json +++ b/apps/mobile/eas.json @@ -20,11 +20,15 @@ "corepack": true, "env": { "APP_VARIANT": "preview", + "MOBILE_VERSION_POLICY": "fingerprint", "NODE_OPTIONS": "--max-old-space-size=4096" }, "channel": "preview", "environment": "preview", - "distribution": "internal" + "distribution": "internal", + "android": { + "buildType": "apk" + } }, "preview:dev": { "corepack": true,