Building and Releasing
The mobile app (Pro and Enterprise) builds with EAS, Expo’s build and submit service. The repo ships an app.json and an eas.json. Before your first store build you need an EAS project, your own identifiers, production URLs and your brand assets. This page lists each step. Start with Mobile overview for running the app locally.
App config (app.json)
Section titled “App config (app.json)”The app is configured in mobile/app.json (there is no app.config.js). What ships:
| Key | Value | Change it to |
|---|---|---|
expo.name | DotnetSaas | Your app’s display name |
expo.slug | dotnet-saas | Your EAS project slug |
expo.version | 0.0.0 | Your marketing version, for example 1.0.0 |
expo.scheme | dotnetsaas | Your deep-link scheme (invitation links use <scheme>://invite/<token>) |
expo.icon, android.adaptiveIcon | assets/icon.png, assets/adaptive-icon.png, background #2563eb | Your icon and brand color |
ios.privacyManifests | Required-reason API declarations | Keep; App Store review checks them |
The plugins array configures native modules: expo-router, expo-secure-store, expo-notifications, expo-localization, expo-image-picker (camera and photo permission strings), expo-local-authentication (Face ID string), @sentry/react-native and expo-splash-screen (light #f8fafc and dark #0b1120 backgrounds). Edit the permission strings to match your product.
app.json does not set ios.bundleIdentifier or android.package. Both stores need them, so add them before you build:
// app.json → expo"ios": { "bundleIdentifier": "com.yourcompany.yourapp" },"android": { "package": "com.yourcompany.yourapp" }Brand assets
Section titled “Brand assets”assets/ holds placeholder art, a blue rounded square with a white “D”:
icon.png: 1024×1024, opaque. iOS masks the corners.adaptive-icon.png: 1024×1024, transparent. The Android foreground; the background color comes fromandroid.adaptiveIcon.backgroundColor.splash-icon.png: the centered splash mark.
Replace them with PNGs of the same size at the same paths; no config change is needed. Set the in-app colors and mark in src/theme/config.ts (see theming), and update product-name mentions in src/i18n/locales/*.json.
Environment
Section titled “Environment”All runtime settings are EXPO_PUBLIC_* variables read in src/config/env.ts. Expo inlines them into the JavaScript bundle at build time, so treat every value as public.
| Variable | Default | Purpose |
|---|---|---|
EXPO_PUBLIC_API_URL | http://localhost:5113 | API origin. All calls go to <url>/api/v1. |
EXPO_PUBLIC_WEB_URL | http://localhost:5173 | Web UI that the Settings links open (billing, members, dashboard). |
EXPO_PUBLIC_GOOGLE_WEB_CLIENT_ID | none | The same client id the web UIs use. |
EXPO_PUBLIC_GOOGLE_IOS_CLIENT_ID | none | An iOS-type OAuth client in the same Google Cloud project. |
EXPO_PUBLIC_GOOGLE_ANDROID_CLIENT_ID | none | An Android-type OAuth client in the same project. |
EXPO_PUBLIC_POSTHOG_KEY | none | PostHog project key. Analytics is off when empty. |
EXPO_PUBLIC_POSTHOG_HOST | <API URL>/ph | PostHog host; defaults to the API’s PostHog proxy. |
EXPO_PUBLIC_SENTRY_DSN | none | Sentry DSN. Crash reporting is off when empty. |
The Google button appears only when at least one client id is set. Native ID tokens carry the platform client id as their audience, so add the iOS and Android ids to the API’s Authentication:Google:AdditionalClientIds. See Google OAuth.
Locally, put the variables in mobile/.env. For EAS builds, set them per profile in eas.json under env, as the shipped profiles do for EXPO_PUBLIC_API_URL.
Build profiles (eas.json)
Section titled “Build profiles (eas.json)”| Profile | Settings | Use |
|---|---|---|
development | developmentClient: true, distribution: internal | A dev client for Google sign-in, push and the camera, which Expo Go cannot do |
preview | distribution: internal, EXPO_PUBLIC_API_URL=https://staging.example.com | Internal test builds against staging |
production | autoIncrement: true, EXPO_PUBLIC_API_URL=https://app.example.com | Store binaries |
cli.appVersionSource is remote, so EAS keeps the build numbers, and autoIncrement bumps them on every production build. The user-facing version is still expo.version in app.json. submit.production is an empty profile for eas submit.
Replace the example.com URLs with your staging and production API origins. Add EXPO_PUBLIC_WEB_URL and any of the keys above to each profile’s env as needed:
"production": { "autoIncrement": true, "env": { "EXPO_PUBLIC_API_URL": "https://app.yourdomain.com", "EXPO_PUBLIC_WEB_URL": "https://app.yourdomain.com" }}If the API serves a web UI from the same container (see Docker), both URLs are the same origin.
Link an EAS project
Section titled “Link an EAS project”npm install -g eas-clieas logineas initeas init creates the project on expo.dev and writes its id to app.json under extra.eas.projectId. Production push needs that id: src/services/push.ts passes it to getExpoPushTokenAsync. Expo’s push service then delivers the notifications the API sends, so you upload no APNs or FCM keys to the API.
Build and submit
Section titled “Build and submit”eas build --profile development --platform ios # dev clienteas build --profile preview --platform all # internal testerseas build --profile production --platform all # store binarieseas submit --profile production --platform ios # or androidEAS prompts for signing credentials (Apple distribution certificate and provisioning profile, Android keystore) the first time and can manage them for you.
Over-the-air updates
Section titled “Over-the-air updates”The repo does not configure EAS Update yet. To enable it:
eas update:configure # one-time setupeas update --branch production # publish a JavaScript-only updateAn update can only change JavaScript and assets. A new native module, a plugin change or an app.json change needs a new store build.
Before you ship
Section titled “Before you ship”-
Sentry source maps. Add your
organizationandprojectoptions to the Sentry plugin entry inapp.json. Without them, EAS warns and uploads no source maps. See Sentry. -
Universal and App Links. Invitation emails link to
https://URLs, which open the web UI until you claim your domain. Add the following toapp.jsonand serve/.well-known/apple-app-site-associationand/.well-known/assetlinks.jsonfrom that host:"ios": { "associatedDomains": ["applinks:app.yourdomain.com"] },"android": { "intentFilters": [{"action": "VIEW", "autoVerify": true,"data": [{ "scheme": "https", "host": "app.yourdomain.com", "pathPrefix": "/invite" }],"category": ["BROWSABLE", "DEFAULT"]}] } -
HTTPS. Store builds must point at an
https://API. iOS blocks plain HTTP by default. -
Tests. Run
npm testinmobile/before each build.
Test a deep link against a running dev build with npx uri-scheme open "dotnetsaas://invite/THE_TOKEN" --ios (or --android).