Play rules verified against the live Policy Center / Play Console Help pages (checked 2026-10-11, cited in cli/lib/scan/play-rules.ts): restricted permissions and their declarations (background location, photo / video, All files access, AccessibilityService, REQUEST_INSTALL_PACKAGES, Health Connect, full-screen intent, VpnService), prominent disclosure and the in-app privacy policy, Data safety vs SDK disclosures, Families (certified ad SDKs, AD_ID, location), AD_ID on targetSdk 33+, 16 KB page sizes (Unity, React Native, NDK, AGP, prebuilt .so), testing for new personal accounts, Play metadata, ads at launch, payments outside Play Billing, impersonation. Detection reads manifest components, accessibility configs, strings.xml, native toolchain versions and a local build's merged manifest. New fixtures and tests; README table per store.
164 lines
8.7 KiB
TypeScript
164 lines
8.7 KiB
TypeScript
// storebound config for one game. Everything game-specific lives here; credentials NEVER do (they go in env vars or
|
|
// .storebound/credentials.json, which must stay gitignored). Paths are relative to this file.
|
|
// The type import is optional: it only works when storebound is installed in the project (bun add -d <repo url>).
|
|
import type { ShipConfig } from 'storebound';
|
|
|
|
const config: ShipConfig = {
|
|
app: {
|
|
name: 'Example Game',
|
|
profile: 'game',
|
|
copyright: '2026 Example Studio',
|
|
privacyPolicyUrl: 'https://example.com/privacy',
|
|
supportUrl: 'https://example.com',
|
|
marketingUrl: 'https://example.com',
|
|
// Developer website on Play: the same domain must serve /app-ads.txt if the game shows ads
|
|
website: 'https://example.com',
|
|
contactEmail: 'support@example.com',
|
|
},
|
|
|
|
// id = your folder / copy key; play = Play language code(s); apple = App Store Connect locale
|
|
languages: [
|
|
{ id: 'en', play: 'en-US', apple: 'en-US' },
|
|
{ id: 'tr', play: 'tr-TR', apple: 'tr' },
|
|
{ id: 'es', play: ['es-ES', 'es-419'], apple: 'es-ES' },
|
|
{ id: 'ja', play: 'ja-JP', apple: 'ja' },
|
|
{ id: 'ar', play: 'ar', apple: 'ar-SA', rtl: true },
|
|
],
|
|
|
|
play: {
|
|
packageName: 'com.example.game',
|
|
defaultLanguage: 'en-US',
|
|
listing: 'store/listing.md',
|
|
icon: 'store/icons/play-512.png',
|
|
// read by `storebound scan` (fill in what is true for your account and app):
|
|
// accountType: 'personal', accountCreated: 'YYYY-MM-DD', // new personal accounts: 12 testers x 14 days closed test
|
|
// targetAges: ['13-15', '16-17', '18+'], // App content > Target audience; under 13 = Families policy
|
|
},
|
|
|
|
apple: {
|
|
bundleId: 'com.example.game',
|
|
// appId: '1234567890', // Apple ID of the app record; looked up by bundle id when left out
|
|
listing: 'store/appstore.md',
|
|
reviewShots: 'store/iap-review',
|
|
// Export compliance (export-compliance skill). false ONLY if the game uses no encryption beyond the OS (HTTPS through
|
|
// the system). Left unset on purpose: decide it, then uncomment. Same answer as ITSAppUsesNonExemptEncryption.
|
|
// usesNonExemptEncryption: false,
|
|
// ipad: true, // the app runs on iPad: 13" iPad screenshots (2064 x 2752, ipad13) are rendered, checked and uploaded
|
|
// iphoneMedium: true, // optional 6.3" iPhone set (1206 x 2622, iphone-medium); off: Apple scales the 6.5" set down
|
|
// screenshotTypes: ['APP_IPHONE_67'], // what `storebound validate` requires per locale (default; + APP_IPAD_PRO_3GEN_129 with ipad)
|
|
// TestFlight (`storebound apple testflight`, testflight skill). Tester emails live in .storebound/testers.csv only.
|
|
testflight: {
|
|
groups: [
|
|
{ name: 'Team', internal: true, allBuilds: true },
|
|
{ name: 'Friends' },
|
|
],
|
|
description: { en: 'Example Game beta: try the new levels and tell us what feels too hard.' },
|
|
},
|
|
info: {
|
|
categories: { primary: 'GAMES', primarySubOne: 'GAMES_CASUAL', primarySubTwo: 'GAMES_PUZZLE', secondary: 'ENTERTAINMENT' },
|
|
ageRating: { advertising: true }, // everything else NONE / false
|
|
contentRights: 'DOES_NOT_USE_THIRD_PARTY_CONTENT',
|
|
free: true,
|
|
reviewNotes: [
|
|
'Single-player game. No account or login is needed; there is no user-generated content or chat.',
|
|
'In-app purchases: Home > Shop. Restore Purchases is in Settings.',
|
|
'Ads: optional rewarded videos and interstitials between rounds. The App Tracking Transparency prompt is shown before the ad SDK starts.',
|
|
'Privacy policy: Settings > Privacy.',
|
|
].join('\n\n'),
|
|
},
|
|
},
|
|
|
|
// Price changes later for many products / regions: storebound prices export, edit store/prices.csv, prices import --dry.
|
|
// prices: { csv: 'store/prices.csv', baseTerritory: 'USA' },
|
|
|
|
// Same ids on both stores. Prices: USD base; Play converts per region, Apple equalizes from the USA. Overrides set a
|
|
// region by hand (Apple needs an existing price point with exactly that value).
|
|
products: [
|
|
{
|
|
id: 'com.example.game.remove_ads', type: 'non_consumable', usd: 2.99,
|
|
overrides: [{ region: 'TR', currency: 'TRY', price: 99.99 }],
|
|
listings: {
|
|
en: { title: 'Remove Ads', description: 'Removes interstitial ads for good.' },
|
|
tr: { title: 'Reklamları Kaldır', description: 'Ara reklamları kalıcı olarak kaldırır.' },
|
|
},
|
|
reviewScreenshot: 'store/iap-review/shop.png',
|
|
},
|
|
{
|
|
id: 'com.example.game.coins_small', type: 'consumable', usd: 0.99,
|
|
listings: {
|
|
en: { title: '500 Coins', description: 'A small bag of coins.' },
|
|
tr: { title: '500 Altın', description: 'Küçük bir kese altın.' },
|
|
},
|
|
reviewScreenshot: 'store/iap-review/shop.png',
|
|
},
|
|
],
|
|
|
|
// Google Play Data safety. Types not listed = not collected. Purposes: functionality, analytics, communications,
|
|
// fraud, advertising, personalization, account. Typical F2P game with an analytics SDK + ad mediation:
|
|
dataSafety: {
|
|
collectsData: true,
|
|
encryptedInTransit: true,
|
|
deletionRequest: true, // e.g. "email us"; no accounts, so no account deletion URL needed
|
|
accountCreation: ['PSL_ACM_NONE'],
|
|
data: {
|
|
PSL_APPROX_LOCATION: { shared: true, collect: ['analytics', 'advertising', 'fraud'], share: ['analytics', 'advertising', 'fraud'] },
|
|
PSL_USER_INTERACTION: { shared: true, collect: ['analytics', 'advertising'], share: ['analytics', 'advertising'] },
|
|
PSL_OTHER_APP_ACTIVITY: { shared: false, collect: ['functionality'] },
|
|
PSL_PERFORMANCE_DIAGNOSTICS: { shared: true, collect: ['analytics', 'advertising', 'fraud'], share: ['analytics', 'advertising', 'fraud'] },
|
|
PSL_DEVICE_ID: { shared: true, collect: ['functionality', 'analytics', 'advertising', 'fraud'], share: ['analytics', 'advertising', 'fraud'] },
|
|
PSL_PURCHASE_HISTORY: { shared: false, collect: ['functionality', 'fraud'] },
|
|
},
|
|
},
|
|
|
|
// Ads: `storebound validate --play` checks <app.website>/app-ads.txt for these lines (copy them from your mediation
|
|
// dashboard's app-ads.txt page). Placeholder line below; replace it.
|
|
// ads: { appAdsTxt: ['example-network.com, pub-0000000000000000, DIRECT, 0000000000000000'] },
|
|
|
|
renders: 'store/renders',
|
|
|
|
shots: {
|
|
copy: 'store/shots/copy.json',
|
|
frames: 'store/shots/frames', // <lang>/phone/<name>.png, <lang>/tablet/<name>.png
|
|
out: 'store/renders',
|
|
logo: 'store/shots/logo.png', // optional: hero scene + feature graphic
|
|
fonts: { title: 'Lilita One', body: 'Montserrat' },
|
|
// phone: { w: 440, h: 902, dpr: 3 }, // raw frame size in CSS px (screen below a 54 px status bar)
|
|
// tablet: { w: 1032, h: 1352, dpr: 2 }, // default with apple.ipad (13" iPad below its 24 px bar), else 800 x 1240
|
|
scenes: [
|
|
{ id: 'hero', palette: 'fire', hero: true, over: 34, frames: [{ src: 'hero.png', rotate: -4 }],
|
|
badges: [{ y: 0.42, side: 'l', icon: 'flag', iconBg: 'red', rot: -4 }, { y: 0.66, side: 'r', icon: 'offline', iconBg: 'red', rot: 3 }] },
|
|
{ id: 'play', palette: 'violet', frames: [{ src: 'gameplay.png', rotate: 3 }],
|
|
badges: [{ y: 0.3, side: 'l', icon: 'bolt', iconBg: 'gold', rot: -3 }, { y: 0.7, side: 'r', hot: true, rot: 4 }] },
|
|
{ id: 'levels', palette: 'sky', frames: [{ src: 'level-b.png', scale: 0.82 }, { src: 'level-a.png', x: -31, dy: 10, scale: 0.7, rotate: -8 }, { src: 'level-c.png', x: 31, dy: 10, scale: 0.7, rotate: 8 }],
|
|
badges: [{ y: 0.66, side: 'r', icon: 'map', iconBg: 'blue', rot: 3 }] },
|
|
{ id: 'stars', palette: 'gold', frames: [{ src: 'results.png', rotate: -3 }],
|
|
badges: [{ y: 0.42, side: 'l', stars: true, rot: -3 }] },
|
|
],
|
|
feature: { frame: 'hero.png', palette: 'fire' },
|
|
capture: {
|
|
baseUrl: 'http://127.0.0.1:5173',
|
|
query: 'lang={lang}&noads=1&seed=1',
|
|
shots: {
|
|
'hero': { path: '/?level=12', waitFor: "window.game && game.state === 'playing'", delayMs: 1500, device: 'both' },
|
|
'gameplay': { path: '/?level=3', delayMs: 2500, device: 'both' },
|
|
'level-a': { path: '/?level=20', delayMs: 2000 },
|
|
'level-b': { path: '/?level=40', delayMs: 2000 },
|
|
'level-c': { path: '/?level=60', delayMs: 2000 },
|
|
'results': { path: '/?level=5&result=3', delayMs: 2000, device: 'both' },
|
|
},
|
|
},
|
|
},
|
|
|
|
icons: {
|
|
composite: 'store/icon/icon.png', // 1024 opaque
|
|
foreground: 'store/icon/foreground.png', // 1024 RGBA, subject on transparent
|
|
background: 'store/icon/background.png', // 1024 opaque
|
|
out: 'store/icons',
|
|
web: 'public/icons',
|
|
// capacitorAssets: 'native/assets',
|
|
// capacitorCommand: 'bunx @capacitor/assets generate --assetPath native/assets',
|
|
// androidRes: 'native/android/app/src/main/res',
|
|
},
|
|
};
|
|
|
|
export default config;
|