Repository navigation
Expand file tree
/
Copy pathstore.config.js
More file actions
75 lines (71 loc) · 2.56 KB
/
Copy pathstore.config.js
File metadata and controls
75 lines (71 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
const {version} = require('./package.json');
const localeMappings = require('./store-assets/store-locales.json');
const localeFiles = Object.fromEntries(
Object.entries(localeMappings).flatMap(([locale, mapping]) => {
const metadata = require(`./store-assets/metadata/${locale}.json`);
return mapping.apple.map((storeLocale) => [storeLocale, metadata]);
}),
);
// `verify:store` checks this too, but a bare `eas metadata:push` does not run
// it, and the failure it prevents is silent: What's New is the one field the
// store shows verbatim and nobody re-reads after a version bump.
for (const [locale, metadata] of Object.entries(localeFiles)) {
if (metadata.releaseNotesVersion !== version)
throw new Error(
`store.config.js: ${locale} release notes are written for ${metadata.releaseNotesVersion}, but package.json is ${version}`,
);
}
const info = Object.fromEntries(
Object.entries(localeFiles).map(([locale, metadata]) => [
locale,
{
title: metadata.apple.name,
subtitle: metadata.apple.subtitle,
description: metadata.apple.description,
promoText: metadata.apple.promoText,
releaseNotes: metadata.apple.releaseNotes,
keywords: metadata.apple.keywords
.split(',')
.map((keyword) => keyword.trim()),
marketingUrl: 'https://bookoo.hyo.dev',
supportUrl: metadata.urls.support,
privacyPolicyUrl: metadata.urls.privacy,
privacyChoicesUrl: metadata.urls.privacyChoices,
},
]),
);
module.exports = {
configVersion: 0,
apple: {
version,
copyright: '2026 Hyo Jang',
categories: ['FINANCE', 'LIFESTYLE'],
advisory: {
ageRatingOverride: 'NONE',
alcoholTobaccoOrDrugUseOrReferences: 'NONE',
contests: 'NONE',
gambling: false,
gamblingSimulated: 'NONE',
horrorOrFearThemes: 'NONE',
kidsAgeBand: null,
koreaAgeRatingOverride: 'NONE',
lootBox: false,
matureOrSuggestiveThemes: 'NONE',
medicalOrTreatmentInformation: 'NONE',
profanityOrCrudeHumor: 'NONE',
sexualContentGraphicAndNudity: 'NONE',
sexualContentOrNudity: 'NONE',
unrestrictedWebAccess: false,
violenceCartoonOrFantasy: 'NONE',
violenceRealistic: 'NONE',
violenceRealisticProlongedGraphicOrSadistic: 'NONE',
},
info,
release: {
// The launch owner explicitly chose automatic publication after App
// Review approval. Keep this in the repository so a later metadata sync
// cannot silently return the version to Pending Developer Release.
automaticRelease: true,
},
},
};