chore(mobile): dynamic store config for demo credentials and version

Merged
SA
3mo ago
+48-40

First eas metadata:push surfaced two ASC requirements: demoRequired: true must ship demoUsername/demoPassword in the same request, and the review details need an explicit versionString.

  • store.config.json → store.config.js (EAS's documented dynamic-config path): the demo credentials come from APP_REVIEW_EMAIL/APP_REVIEW_PASSWORD at push time — same env vars bun run db:seed-review consumes — so they never enter the public repo
  • apple.version: "1.0.0" pins the version string
  • eas.json metadataPath updated

Everything else in the config is byte-identical to the JSON it replaces. Push flow becomes: seed the review account, then APP_REVIEW_EMAIL=… APP_REVIEW_PASSWORD=… eas metadata:push.


Summary by cubic

Switches App Store metadata from static JSON to dynamic store.config.js so eas metadata:push includes required demo credentials and an explicit version string. Previously we pushed demoRequired: true without demoUsername/demoPassword and no apple.version, which ASC rejected; everything else in metadata is unchanged.

  • Updates eas.json to point metadataPath to ./store.config.js; sets apple.version to "1.0.0".
  • Reads demo credentials from APP_REVIEW_EMAIL and APP_REVIEW_PASSWORD at push time so they do not enter the repo.
  • Rollout: seed the review account, export the two env vars, then run eas metadata:push (push will fail if the vars are missing).