Merge remote-tracking branch 'origin/main' into apple-name
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
953a7c5489
25 changed files with 951 additions and 82 deletions
|
|
@ -14,6 +14,7 @@ import { dataSafetyRows } from './lib/data-safety';
|
|||
import { reviewDemoAccount } from './lib/credentials';
|
||||
import { log, printJson, warn } from './lib/log';
|
||||
import { profileIssues } from './lib/profile';
|
||||
import { reviewShotProblem } from './apple/iap-review';
|
||||
import { allSubscriptions } from './lib/subscriptions';
|
||||
import { type CopyFile, validateCopy } from './shots/lib';
|
||||
|
||||
|
|
@ -82,6 +83,13 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
if (config.apple && len(l.description) > APPLE_IAP_LIMITS.description) problems.push(`product ${p.id} ${lang}: description ${len(l.description)} > ${APPLE_IAP_LIMITS.description} (App Store limit)`);
|
||||
if (len(l.description) > 200) problems.push(`product ${p.id} ${lang}: description ${len(l.description)} > 200 (Play limit)`);
|
||||
}
|
||||
// App Review screenshots of in-app purchases: Apple fails any non-screenshot size after upload (IMAGE_INCORRECT_DIMENSIONS)
|
||||
if (config.apple) for (const f of new Set((config.products ?? []).map(p => p.reviewScreenshot).filter((x): x is string => !!x))) {
|
||||
const file = resolve(f);
|
||||
if (!existsSync(file)) continue; // reported with the other missing files below
|
||||
const bad = reviewShotProblem(readFileSync(file));
|
||||
if (bad) problems.push(`products[].reviewScreenshot ${f}: ${bad}`);
|
||||
}
|
||||
if (config.shots) tryDo('shots copy', () => {
|
||||
const copy = JSON.parse(readFileSync(resolve(config.shots!.copy), 'utf8')) as CopyFile;
|
||||
const e = validateCopy(copy, config.shots!, config.languages.map(l => l.id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue