返回 Bug 清单
BUG-1357project-13高已修复frontend-integration
APP配置无单一来源 — 硬编码散落15处导致反复出错
发现:2026-10-12验证:2026-10-12置信度:70%
症状
User downloaded 9 APK versions because each fix was silently reverted. Future brand/domain changes = edit ONE YAML file.
根因
No single source of truth for APP config. Brand/appId/appName/domain/API URLs hardcoded in ~15 places. Changing brand/domain required grep across 8+ files. Every npx cap sync android overwrites strings.xml with capacitor.config.ts values.
修复方案
Established project-71/config/server.yml as ONLY source of truth. Added apps.project-13 block. Created project-71/scripts/gen-env.mjs to generate .env.production. capacitor.config.ts now js-yaml imports from server.yml. Created check-brand.mjs + GitHub Actions brand-guard.yml CI guard.
错误签名
strings.xml app_name overwritten by cap sync Android — capacitor.config.ts hardcoded Ledgent技术信息
来源项目
project-13
涉及文件
mobile/capacitor.config.ts, project-71/config/server.yml, project-71/scripts/gen-env.mjs
标签
project-13, mcp-reported, source-agent