testflight: description keys by language id or App Store locale, unknown keys are a config error, primary-locale check before Beta App Review
This commit is contained in:
parent
e185b61c8e
commit
1abd0936c3
6 changed files with 35 additions and 3 deletions
|
|
@ -1210,7 +1210,7 @@ export function validateConfig(c: unknown): string[] {
|
|||
const enc = cfg.apple.usesNonExemptEncryption;
|
||||
if (enc !== undefined && typeof enc !== 'boolean') e.push('apple.usesNonExemptEncryption: true | false');
|
||||
if (cfg.apple.screenshotTypes && !cfg.apple.screenshotTypes.every(t => /^APP_[A-Z0-9_]+$/.test(t))) e.push('apple.screenshotTypes: display types like APP_IPHONE_67');
|
||||
e.push(...validateTestflight(cfg.apple.testflight));
|
||||
e.push(...validateTestflight(cfg.apple.testflight, cfg.languages ?? []));
|
||||
e.push(...validateSigning(cfg.apple.signing), ...validateAppleBuild(cfg.apple.build));
|
||||
const catalogIds = new Set([...(cfg.products ?? []).map(p => p.id), ...(cfg.subscriptions ?? []).flatMap(g => (g.subscriptions ?? []).map(x => x.id))]);
|
||||
e.push(...validatePromoted(cfg.apple.promoted, catalogIds));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue