console fill play-app-record: Play Console's Create app form (account picked by developerId / workspace / play.developerAccount, else stop and list; Create app opener allowlisted only on the app list, never in the form, EN + TR; name, default language, app or game, free or paid as an owner check; declarations never ticked; package name set by the first AAB upload)
This commit is contained in:
parent
dc3ff364a4
commit
75d6f4cb71
26 changed files with 592 additions and 41 deletions
|
|
@ -51,7 +51,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
||||||
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
||||||
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
||||||
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes
|
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes
|
||||||
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
||||||
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
||||||
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
||||||
|
|
|
||||||
2
.github/copilot-instructions.md
vendored
2
.github/copilot-instructions.md
vendored
|
|
@ -53,7 +53,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
||||||
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
||||||
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
||||||
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes |
|
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes |
|
||||||
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
||||||
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
||||||
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
- `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game
|
||||||
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
- `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text
|
||||||
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal
|
||||||
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes
|
- `skills/console-autofill/SKILL.md`: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes
|
||||||
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
- `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly
|
||||||
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
- `skills/listing-localization/SKILL.md`: Translate the store listing of a mobile app or game into more languages
|
||||||
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
- `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane`
|
||||||
|
|
|
||||||
17
CHANGELOG.md
17
CHANGELOG.md
|
|
@ -2,6 +2,23 @@
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
- `console fill play-app-record`: Play Console's Create app form, the Play counterpart of `apple-app-record` (the
|
||||||
|
Play Developer API cannot create apps).
|
||||||
|
- Account: `play.developerId`, the workspace account's id or the remembered one; else the only account the login
|
||||||
|
sees; else the chooser entry named `play.developerAccount` (new optional field: the account's display name, e.g.
|
||||||
|
an organisation account). Several accounts with none set, or a name that matches none or two: it stops and lists
|
||||||
|
them. Remembered in `~/.storebound/console-accounts.json`.
|
||||||
|
- Navigation: All apps > the page-level Create app button, through a dedicated allowlist (`createAppAllowed`: exact
|
||||||
|
name "Create app" / "Uygulama oluştur", button or link, on the app list, no Create app form open, not inside a form
|
||||||
|
or dialog). The form's own Create app stays refused.
|
||||||
|
- Fills App name (`play.name`, new, else `app.name`; 30 characters checked), Default language (Play Console label,
|
||||||
|
e.g. "English (United States) – en-US"; matched by code in a Turkish console), App or game (profile) and Free or
|
||||||
|
paid (`play.free`, new, else Free for IAP / ads only) as an owner check: outlined, with the note that a free app
|
||||||
|
can never become paid. The Developer Program Policies and US export laws declarations are never ticked (an
|
||||||
|
`agreement` field is outlined whatever its answer). The log and guidance say the package name is set by the first
|
||||||
|
AAB upload (`play upload --track internal` / `flow run release`).
|
||||||
|
- In `--dry`, the `console fill` list, the MCP / desktop form list and the desktop App info "Play Console forms" card.
|
||||||
|
|
||||||
- Screenshot glyphs (a Turkish render showed fallback glyphs for "ş" / "ğ" while `shots check` passed): the cause was
|
- Screenshot glyphs (a Turkish render showed fallback glyphs for "ş" / "ğ" while `shots check` passed): the cause was
|
||||||
not subsetting (css2 `text=` already takes glyphs from every subset) but the title font: Lilita One has no ş ğ İ and
|
not subsetting (css2 `text=` already takes glyphs from every subset) but the title font: Lilita One has no ş ğ İ and
|
||||||
most of Latin Extended-A, so Chrome silently drew them with another font.
|
most of Latin Extended-A, so Chrome silently drew them with another font.
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t
|
||||||
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
| `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game |
|
||||||
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
| `aso-basics` | App store optimization basics for a mobile app's or game's text |
|
||||||
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal |
|
||||||
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes |
|
| `console-autofill` | AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes |
|
||||||
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
| `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly |
|
||||||
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
| `listing-localization` | Translate the store listing of a mobile app or game into more languages |
|
||||||
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
| `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` |
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -483,8 +483,9 @@ a terminal first and are never offered over MCP.
|
||||||
default offering into a RevenueCat project (REST API v2, secret key from env / `.storebound/`). sync only creates and
|
default offering into a RevenueCat project (REST API v2, secret key from env / `.storebound/`). sync only creates and
|
||||||
attaches, never deletes. Runtime entitlements, receipts and paywalls stay RevenueCat's job. Skill: `revenuecat-sync`.
|
attaches, never deletes. Runtime entitlements, receipts and paywalls stay RevenueCat's job. Skill: `revenuecat-sync`.
|
||||||
- **Console autofill for forms without an API:** `storebound console fill <form>` (`apple-app-record`,
|
- **Console autofill for forms without an API:** `storebound console fill <form>` (`apple-app-record`,
|
||||||
`apple-age-rating`, `apple-app-privacy`, `play-content-rating`, `play-target-audience`) opens a visible browser,
|
`apple-age-rating`, `apple-app-privacy`, `play-app-record`, `play-content-rating`, `play-target-audience`) opens a
|
||||||
goes to the form by itself (Apps > + > New App, the app's App Privacy, Play app list > App content > Start / Manage;
|
visible browser, goes to the form by itself (Apps > + > New App, the app's App Privacy, Play All apps > Create app,
|
||||||
|
Play app list > App content > Start / Manage;
|
||||||
navigation clicks only, never Save / Submit / Publish / Create / Next), fills what the config proves, highlights the
|
navigation clicks only, never Save / Submit / Publish / Create / Next), fills what the config proves, highlights the
|
||||||
rest and stops before the final button: you click. **Sign-in:** it attaches to a Chrome running with remote
|
rest and stops before the final button: you click. **Sign-in:** it attaches to a Chrome running with remote
|
||||||
debugging, else (macOS) reuses your Chrome sign-in: it copies ONLY `Local State` and your profile's `Cookies`
|
debugging, else (macOS) reuses your Chrome sign-in: it copies ONLY `Local State` and your profile's `Cookies`
|
||||||
|
|
@ -497,6 +498,13 @@ a terminal first and are never offered over MCP.
|
||||||
up where you are. **One login, many studios:** it finds the Play developer account (by `play.packageName`, or
|
up where you are. **One login, many studios:** it finds the Play developer account (by `play.packageName`, or
|
||||||
`play.developerId`) and the App Store Connect team (account menu; `apple.teamId`, or by bundle id) that has the
|
`play.developerId`) and the App Store Connect team (account menu; `apple.teamId`, or by bundle id) that has the
|
||||||
app and remembers it in `~/.storebound/console-accounts.json` (ids only).
|
app and remembers it in `~/.storebound/console-accounts.json` (ids only).
|
||||||
|
**Play Create app** (`play-app-record`, the Play Developer API cannot create apps): the developer account comes from
|
||||||
|
`play.developerId`, the workspace account, or `play.developerAccount` (its name on "Choose a developer account");
|
||||||
|
with several accounts and none set it stops and lists them. It fills App name (`play.name` or `app.name`, 30
|
||||||
|
characters), Default language, App or game (the profile) and Free or paid (`play.free`, else Free for IAP / ads:
|
||||||
|
an owner check, a free app can never become paid). It never ticks the Developer Program Policies or US export laws
|
||||||
|
declarations and never presses the form's Create app: you do. The package name is set by the first AAB upload
|
||||||
|
(`storebound play upload --track internal` or `storebound flow run release`).
|
||||||
When a page has changed it falls back to step-by-step guidance with copyable answers. **Console pages change; this is AI-assisted: review every field and save it yourself.** Desktop: "Fill in
|
When a page has changed it falls back to step-by-step guidance with copyable answers. **Console pages change; this is AI-assisted: review every field and save it yourself.** Desktop: "Fill in
|
||||||
console" on the App info tab. Never over MCP. Skill: `console-autofill`.
|
console" on the App info tab. Never over MCP. Skill: `console-autofill`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -456,6 +456,9 @@ const CONSOLE_FILL: Record<ConsoleForm, ConsoleFillResult> = {
|
||||||
['messagingAndChat', 'Messaging and chat', null, ''], ['advertising', 'Advertising', 'Yes', 'ads.enabled']], ['The age rating follows from your answers; check it before you save.']),
|
['messagingAndChat', 'Messaging and chat', null, ''], ['advertising', 'Advertising', 'Yes', 'ads.enabled']], ['The age rating follows from your answers; check it before you save.']),
|
||||||
'apple-app-privacy': CF('apple-app-privacy', 'App Privacy', ASC, [['collects', 'Do you collect data from this app?', 'Yes', 'play.dataSafety'], ['deviceId', 'Device ID', 'Third-party advertising, Analytics', 'play.dataSafety'],
|
'apple-app-privacy': CF('apple-app-privacy', 'App Privacy', ASC, [['collects', 'Do you collect data from this app?', 'Yes', 'play.dataSafety'], ['deviceId', 'Device ID', 'Third-party advertising, Analytics', 'play.dataSafety'],
|
||||||
['linked', 'Device ID linked to the user', null, ''], ['tracking', 'Device ID used for tracking', null, '']], ['App Privacy has no API: publish the answers in App Store Connect yourself.']),
|
['linked', 'Device ID linked to the user', null, ''], ['tracking', 'Device ID used for tracking', null, '']], ['App Privacy has no API: publish the answers in App Store Connect yourself.']),
|
||||||
|
'play-app-record': CF('play-app-record', 'Create app', PLAY, [['name', 'App name', 'Prism Puddle', 'app.name'], ['language', 'Default language', 'English (United States) – en-US', 'languages[0].play'],
|
||||||
|
['type', 'App or game', 'Game', 'app.profile'], ['price', 'Free or paid', 'Free', 'products + ads.appAdsTxt'], ['agree:policies', 'Declarations: Developer Program Policies', null, 'none'], ['agree:exportLaws', 'Declarations: US export laws', null, 'none']],
|
||||||
|
['The package name is set by the first AAB upload, not in this form.', 'Free or paid is an owner check: a free app can never become paid later.']),
|
||||||
'play-content-rating': CF('play-content-rating', 'Content rating', PLAY, [['category', 'Category', 'Game', 'app.profile'], ['violence', 'Violence', 'No', 'play.contentRating'], ['userInteraction', 'Users can interact', 'No', 'play.contentRating'],
|
'play-content-rating': CF('play-content-rating', 'Content rating', PLAY, [['category', 'Category', 'Game', 'app.profile'], ['violence', 'Violence', 'No', 'play.contentRating'], ['userInteraction', 'Users can interact', 'No', 'play.contentRating'],
|
||||||
['ads', 'Contains ads', 'Yes', 'ads.enabled'], ['purchases', 'Digital purchases', 'Yes', 'products']], ['Submitting the questionnaire is yours; storebound stops before it.']),
|
['ads', 'Contains ads', 'Yes', 'ads.enabled'], ['purchases', 'Digital purchases', 'Yes', 'products']], ['Submitting the questionnaire is yours; storebound stops before it.']),
|
||||||
'play-target-audience': CF('play-target-audience', 'Target audience and content', PLAY, [['ages', 'Target age groups', '13-15, 16-17, 18 and over', 'play.targetAudience'], ['appeal', 'Could appeal to children', null, '']], []),
|
'play-target-audience': CF('play-target-audience', 'Target audience and content', PLAY, [['ages', 'Target age groups', '13-15, 16-17, 18 and over', 'play.targetAudience'], ['appeal', 'Could appeal to children', null, '']], []),
|
||||||
|
|
|
||||||
|
|
@ -1272,6 +1272,7 @@ export const en = {
|
||||||
'cf.appleAppPrivacy': 'App Privacy',
|
'cf.appleAppPrivacy': 'App Privacy',
|
||||||
'cf.playContentRating': 'Play content rating',
|
'cf.playContentRating': 'Play content rating',
|
||||||
'cf.playTargetAudience': 'Play target audience and content',
|
'cf.playTargetAudience': 'Play target audience and content',
|
||||||
|
'cf.playAppRecord': 'Play app (Create app)',
|
||||||
'cf.dryFailed': 'Could not prepare {form}',
|
'cf.dryFailed': 'Could not prepare {form}',
|
||||||
'cf.panelTitle': 'Fill in console: {form}',
|
'cf.panelTitle': 'Fill in console: {form}',
|
||||||
'cf.disclaimer': 'Console pages change. This is AI-assisted: review every field in the browser and press Save yourself. storebound never saves, submits or publishes.',
|
'cf.disclaimer': 'Console pages change. This is AI-assisted: review every field in the browser and press Save yourself. storebound never saves, submits or publishes.',
|
||||||
|
|
@ -1291,10 +1292,11 @@ export const en = {
|
||||||
'cf.cancelRun': 'Cancel: close the browser',
|
'cf.cancelRun': 'Cancel: close the browser',
|
||||||
'cf.open': 'Open the browser',
|
'cf.open': 'Open the browser',
|
||||||
'cf.waiting': 'Waiting until you close the browser',
|
'cf.waiting': 'Waiting until you close the browser',
|
||||||
'cf.playTitle': 'Play Console questionnaires',
|
'cf.playTitle': 'Play Console forms',
|
||||||
'cf.playSub': 'No API: storebound fills them in the console, you save',
|
'cf.playSub': 'No API: storebound fills them in the console, you press the final button',
|
||||||
'cf.playContentRatingText': 'The IARC questionnaire that gives the app its age ratings.',
|
'cf.playContentRatingText': 'The IARC questionnaire that gives the app its age ratings.',
|
||||||
'cf.playTargetAudienceText': 'Target age groups and whether the app appeals to children.',
|
'cf.playTargetAudienceText': 'Target age groups and whether the app appeals to children.',
|
||||||
|
'cf.playAppRecordText': 'The Play Developer API cannot create apps: storebound fills Create app (name, language, app or game, free or paid). You tick the declarations and press Create app; the first AAB upload sets the package name.',
|
||||||
'cf.noRecordTitle': 'No App Store app record yet',
|
'cf.noRecordTitle': 'No App Store app record yet',
|
||||||
'cf.noRecordText': 'App Store Connect has no API to create the app record. storebound fills the New App form from your config; you press Create yourself, then put the Apple ID into apple.appId.',
|
'cf.noRecordText': 'App Store Connect has no API to create the app record. storebound fills the New App form from your config; you press Create yourself, then put the Apple ID into apple.appId.',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
|
||||||
|
|
@ -1274,6 +1274,7 @@ export const tr: Record<keyof typeof en, string> = {
|
||||||
'cf.appleAppPrivacy': 'Uygulama Gizliliği',
|
'cf.appleAppPrivacy': 'Uygulama Gizliliği',
|
||||||
'cf.playContentRating': 'Play içerik derecelendirmesi',
|
'cf.playContentRating': 'Play içerik derecelendirmesi',
|
||||||
'cf.playTargetAudience': 'Play hedef kitle ve içerik',
|
'cf.playTargetAudience': 'Play hedef kitle ve içerik',
|
||||||
|
'cf.playAppRecord': 'Play uygulaması (Uygulama oluştur)',
|
||||||
'cf.dryFailed': '{form} hazırlanamadı',
|
'cf.dryFailed': '{form} hazırlanamadı',
|
||||||
'cf.panelTitle': 'Konsolda doldur: {form}',
|
'cf.panelTitle': 'Konsolda doldur: {form}',
|
||||||
'cf.disclaimer': 'Konsol sayfaları değişebilir. Bu, yapay zekâ destekli bir yardımdır: tarayıcıda her alanı kontrol edin ve Kaydet\'e kendiniz basın. storebound hiçbir zaman kaydetmez, göndermez veya yayınlamaz.',
|
'cf.disclaimer': 'Konsol sayfaları değişebilir. Bu, yapay zekâ destekli bir yardımdır: tarayıcıda her alanı kontrol edin ve Kaydet\'e kendiniz basın. storebound hiçbir zaman kaydetmez, göndermez veya yayınlamaz.',
|
||||||
|
|
@ -1293,10 +1294,11 @@ export const tr: Record<keyof typeof en, string> = {
|
||||||
'cf.cancelRun': 'Vazgeç: tarayıcıyı kapat',
|
'cf.cancelRun': 'Vazgeç: tarayıcıyı kapat',
|
||||||
'cf.open': 'Tarayıcıyı aç',
|
'cf.open': 'Tarayıcıyı aç',
|
||||||
'cf.waiting': 'Tarayıcıyı kapatmanız bekleniyor',
|
'cf.waiting': 'Tarayıcıyı kapatmanız bekleniyor',
|
||||||
'cf.playTitle': 'Play Console anketleri',
|
'cf.playTitle': 'Play Console formları',
|
||||||
'cf.playSub': 'API yok: storebound bunları konsolda doldurur, siz kaydedersiniz',
|
'cf.playSub': 'API yok: storebound bunları konsolda doldurur, son düğmeye siz basarsınız',
|
||||||
'cf.playContentRatingText': 'Uygulamanın yaş derecelendirmelerini belirleyen IARC anketi.',
|
'cf.playContentRatingText': 'Uygulamanın yaş derecelendirmelerini belirleyen IARC anketi.',
|
||||||
'cf.playTargetAudienceText': 'Hedef yaş grupları ve uygulamanın çocuklara hitap edip etmediği.',
|
'cf.playTargetAudienceText': 'Hedef yaş grupları ve uygulamanın çocuklara hitap edip etmediği.',
|
||||||
|
'cf.playAppRecordText': 'Play Developer API uygulama oluşturamaz: storebound Uygulama oluştur formunu doldurur (ad, dil, uygulama veya oyun, ücretsiz veya ücretli). Beyanları siz işaretler ve Uygulama oluştur\'a siz basarsınız; paket adını ilk AAB yüklemesi belirler.',
|
||||||
'cf.noRecordTitle': 'Henüz App Store uygulama kaydı yok',
|
'cf.noRecordTitle': 'Henüz App Store uygulama kaydı yok',
|
||||||
'cf.noRecordText': 'App Store Connect\'te uygulama kaydı oluşturmak için bir API yok. storebound Yeni Uygulama formunu yapılandırmanızdan doldurur; Oluştur\'a kendiniz basar, ardından Apple kimliğini apple.appId alanına yazarsınız.',
|
'cf.noRecordText': 'App Store Connect\'te uygulama kaydı oluşturmak için bir API yok. storebound Yeni Uygulama formunu yapılandırmanızdan doldurur; Oluştur\'a kendiniz basar, ardından Apple kimliğini apple.appId alanına yazarsınız.',
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ export function AppInfoTab({ project }: { project: Project }) {
|
||||||
{d.stores.play && (
|
{d.stores.play && (
|
||||||
<Card title={t('cf.playTitle')} icon="clipboard" sub={<span className="row" style={{ gap: 6 }}><StoreGlyph store="android" className="ic13" />{t('cf.playSub')}</span>} pad={false}>
|
<Card title={t('cf.playTitle')} icon="clipboard" sub={<span className="row" style={{ gap: 6 }}><StoreGlyph store="android" className="ic13" />{t('cf.playSub')}</span>} pad={false}>
|
||||||
<div className="list">
|
<div className="list">
|
||||||
{([['play-content-rating', 'cf.playContentRating', 'cf.playContentRatingText'], ['play-target-audience', 'cf.playTargetAudience', 'cf.playTargetAudienceText']] as const).map(([form, title, text]) => (
|
{([['play-app-record', 'cf.playAppRecord', 'cf.playAppRecordText'], ['play-content-rating', 'cf.playContentRating', 'cf.playContentRatingText'], ['play-target-audience', 'cf.playTargetAudience', 'cf.playTargetAudienceText']] as const).map(([form, title, text]) => (
|
||||||
<div className="li" key={form}>
|
<div className="li" key={form}>
|
||||||
<span className="li-icon tone-bg-info"><Icon name="clipboard" /></span>
|
<span className="li-icon tone-bg-info"><Icon name="clipboard" /></span>
|
||||||
<div className="li-main"><span className="li-title">{t(title)}</span><span className="li-sub">{t(text)}</span></div>
|
<div className="li-main"><span className="li-title">{t(title)}</span><span className="li-sub">{t(text)}</span></div>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// "Fill in console": the store forms without an API (App Store app record, age rating, App Privacy; Play content
|
// "Fill in console": the store forms without an API (App Store app record, age rating, App Privacy; Play Create app,
|
||||||
// rating, target audience). Click -> dry run of `console.fill` (the answers from the config, nothing opens) -> this
|
// content rating, target audience). Click -> dry run of `console.fill` (the answers from the config, nothing opens) -> this
|
||||||
// panel lists them, the uncertain ones marked for the owner, with the disclaimer -> "Open the browser" goes through
|
// panel lists them, the uncertain ones marked for the owner, with the disclaimer -> "Open the browser" goes through
|
||||||
// write_with_confirm (the host shows the answers again in a native dialog and mints the token only on its button) ->
|
// write_with_confirm (the host shows the answers again in a native dialog and mints the token only on its button) ->
|
||||||
// a visible browser the owner signs in to; storebound fills the fields and never saves, submits or publishes. The run
|
// a visible browser the owner signs in to; storebound fills the fields and never saves, submits or publishes. The run
|
||||||
|
|
@ -13,7 +13,7 @@ import { Chip, Notice } from './kit';
|
||||||
|
|
||||||
export const CONSOLE_FORM_NAME: Record<ConsoleForm, Key> = {
|
export const CONSOLE_FORM_NAME: Record<ConsoleForm, Key> = {
|
||||||
'apple-app-record': 'cf.appleAppRecord', 'apple-age-rating': 'cf.appleAgeRating', 'apple-app-privacy': 'cf.appleAppPrivacy',
|
'apple-app-record': 'cf.appleAppRecord', 'apple-age-rating': 'cf.appleAgeRating', 'apple-app-privacy': 'cf.appleAppPrivacy',
|
||||||
'play-content-rating': 'cf.playContentRating', 'play-target-audience': 'cf.playTargetAudience',
|
'play-app-record': 'cf.playAppRecord', 'play-content-rating': 'cf.playContentRating', 'play-target-audience': 'cf.playTargetAudience',
|
||||||
};
|
};
|
||||||
|
|
||||||
type Stage =
|
type Stage =
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
// from play.developerId (config), STOREBOUND_PLAY_DEVELOPER_ID (a workspace account's developerId, set by
|
// from play.developerId (config), STOREBOUND_PLAY_DEVELOPER_ID (a workspace account's developerId, set by
|
||||||
// `ws`), or the cache; else storebound reads every developer account link on the chooser
|
// `ws`), or the cache; else storebound reads every developer account link on the chooser
|
||||||
// (/console/u/0/developers) and looks for play.packageName in each app list.
|
// (/console/u/0/developers) and looks for play.packageName in each app list.
|
||||||
|
// play-app-record (Create app) is a FIRST create: no account has the package yet, so the account is picked, not
|
||||||
|
// searched: play.developerId / the workspace's id / the cache, else the one account the login sees, else the
|
||||||
|
// chooser entry named exactly play.developerAccount. Ambiguous or not set -> storebound stops and lists them.
|
||||||
// Apple: the team is switched in the account menu at the top right (the team list; Apple's help "Switch between
|
// Apple: the team is switched in the account menu at the top right (the team list; Apple's help "Switch between
|
||||||
// teams"). The order tried: the cached team, the menu entry that names apple.teamId, then every other team; the
|
// teams"). The order tried: the cached team, the menu entry that names apple.teamId, then every other team; the
|
||||||
// app is found by its list entry (App Privacy) or, for a new app, by the bundle id in the New App dialog's Bundle ID
|
// app is found by its list entry (App Privacy) or, for a new app, by the bundle id in the New App dialog's Bundle ID
|
||||||
|
|
@ -192,6 +195,39 @@ export async function openAcross(page: Page, o: AcrossOpts): Promise<{ nav: NavR
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Play account names compare by whole name, spaces and case aside. */
|
||||||
|
const sameName = (a: string, b: string) => a.trim().replace(/\s+/g, ' ').toLocaleLowerCase('tr') === b.trim().replace(/\s+/g, ' ').toLocaleLowerCase('tr');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* play-app-record: the developer account to create the app in. Never guessed among several: play.developerId (or the
|
||||||
|
* workspace's STOREBOUND_PLAY_DEVELOPER_ID, or the remembered one for this package), else the only account the login
|
||||||
|
* sees, else the chooser entry named play.developerAccount. Remembered under play.packageName once the form is open.
|
||||||
|
*/
|
||||||
|
async function pickPlayAccount(page: Page, config: ShipConfig, o: AcrossOpts, cache: AccountsCache, file: string,
|
||||||
|
nav: (plan: NavStep[], ms?: number) => Promise<NavResult>, quick: number, stop: Stop): Promise<{ nav: NavResult; plan: NavStep[] }> {
|
||||||
|
const say = o.say, bases = o.bases ?? NAV_BASES, pkg = config.play?.packageName, want = config.play?.developerAccount;
|
||||||
|
const planFor = (id?: string) => navPlan(o.form, id ? { ...config, play: { ...config.play!, developerId: id } } : config, bases);
|
||||||
|
const go = async (id: string, account?: string) => {
|
||||||
|
const plan = planFor(id), r = await nav(plan);
|
||||||
|
if (r.ok && pkg) rememberPlay(pkg, { developerId: id, ...(account ? { account } : {}) }, file);
|
||||||
|
return { nav: r, plan };
|
||||||
|
};
|
||||||
|
const known = config.play?.developerId ?? (pkg ? cache.play[pkg]?.developerId : undefined);
|
||||||
|
if (known) { say(`creating the app in developer account ${known}${config.play?.developerId ? ' (play.developerId)' : ` (remembered in ${file})`}`); return go(known, pkg ? cache.play[pkg]?.account : undefined); }
|
||||||
|
const all = await playAccounts(page, bases.play, quick, stop);
|
||||||
|
const list = all.map(a => a.name ? `${a.name} (${a.id})` : a.id).join(', ');
|
||||||
|
const stopHere = (why: string) => ({ nav: { ok: false, steps: [], failed: 'the developer account', why, ...(all.length ? { candidates: all.map(a => a.name || a.id) } : {}) } as NavResult, plan: planFor() });
|
||||||
|
if (want) {
|
||||||
|
const hits = all.filter(a => a.name && sameName(a.name, want));
|
||||||
|
if (hits.length === 1) { say(`creating the app in developer account "${hits[0]!.name}" (play.developerAccount)`); return go(hits[0]!.id, hits[0]!.name); }
|
||||||
|
return stopHere(hits.length ? `more than one developer account is named "${want}" (${list}): set play.developerId`
|
||||||
|
: `no developer account named "${want}" (play.developerAccount) on the chooser${all.length ? `: ${list}` : ''}. Set play.developerAccount to one of them, or play.developerId`);
|
||||||
|
}
|
||||||
|
if (all.length === 1) { say(`this Google login has one developer account: ${all[0]!.name || all[0]!.id}`); return go(all[0]!.id, all[0]!.name || undefined); }
|
||||||
|
if (all.length > 1) return stopHere(`this Google login sees ${all.length} developer accounts (${list}): set play.developerAccount (the name) or play.developerId to pick the one for the new app`);
|
||||||
|
return stopHere('could not read the developer accounts on the "Choose a developer account" page: set play.developerId (or play.developerAccount)');
|
||||||
|
}
|
||||||
|
|
||||||
async function across(page: Page, o: AcrossOpts): Promise<{ nav: NavResult; plan: NavStep[] }> {
|
async function across(page: Page, o: AcrossOpts): Promise<{ nav: NavResult; plan: NavStep[] }> {
|
||||||
const config = withAccountIds(o.config, o.env), file = o.file ?? accountsFile(), cache = readAccounts(file);
|
const config = withAccountIds(o.config, o.env), file = o.file ?? accountsFile(), cache = readAccounts(file);
|
||||||
const bases = o.bases ?? NAV_BASES, say = o.say;
|
const bases = o.bases ?? NAV_BASES, say = o.say;
|
||||||
|
|
@ -201,6 +237,7 @@ async function across(page: Page, o: AcrossOpts): Promise<{ nav: NavResult; plan
|
||||||
const store = o.form.startsWith('play-') ? 'play' : 'apple';
|
const store = o.form.startsWith('play-') ? 'play' : 'apple';
|
||||||
const quick = Math.min(o.navMs, 8000);
|
const quick = Math.min(o.navMs, 8000);
|
||||||
|
|
||||||
|
if (store === 'play' && o.form === 'play-app-record') return pickPlayAccount(page, config, o, cache, file, nav, quick, stop);
|
||||||
if (store === 'play') {
|
if (store === 'play') {
|
||||||
const pkg = config.play?.packageName;
|
const pkg = config.play?.packageName;
|
||||||
const planFor = (id?: string) => navPlan(o.form, id ? { ...config, play: { ...config.play!, developerId: id } } : config, bases);
|
const planFor = (id?: string) => navPlan(o.form, id ? { ...config, play: { ...config.play!, developerId: id } } : config, bases);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
// storebound console fill <form> --dry [--json] the answers and the step-by-step guidance; opens no browser
|
// storebound console fill <form> --dry [--json] the answers and the step-by-step guidance; opens no browser
|
||||||
// storebound console fill <form> [--store apple|play] [--json] [--profile <dir>]
|
// storebound console fill <form> [--store apple|play] [--json] [--profile <dir>]
|
||||||
// Forms: apple-app-record, apple-age-rating (guide only: `storebound apple appinfo` sets it), apple-app-privacy,
|
// Forms: apple-app-record, apple-age-rating (guide only: `storebound apple appinfo` sets it), apple-app-privacy,
|
||||||
// play-content-rating, play-target-audience. Answers come from the config only (cli/lib/console-answers.ts); anything
|
// play-app-record (Play Console's Create app form: the Play Developer API cannot create apps), play-content-rating,
|
||||||
|
// play-target-audience. Answers come from the config only (cli/lib/console-answers.ts); anything
|
||||||
// it does not prove stays EMPTY and highlighted (AGENTS.md rule 5).
|
// it does not prove stays EMPTY and highlighted (AGENTS.md rule 5).
|
||||||
// Safety: storebound never types passwords, never touches sign-in pages (it waits while the owner signs in), never reads
|
// Safety: storebound never types passwords, never touches sign-in pages (it waits while the owner signs in), never reads
|
||||||
// cookies or storage, and never clicks Save / Submit / Publish / Create / Next: every click goes through safeClick and
|
// cookies or storage, and never clicks Save / Submit / Publish / Create / Next: every click goes through safeClick and
|
||||||
|
|
@ -28,7 +29,7 @@ import { join } from 'node:path';
|
||||||
import type { Ctx } from '../lib/ctx';
|
import type { Ctx } from '../lib/ctx';
|
||||||
import { type Answer, type ConsoleResult, consoleResult, DISCLAIMER, FORM_IDS, type FormId, fillValue, formMeta, isForm, valueText } from '../lib/console-answers';
|
import { type Answer, type ConsoleResult, consoleResult, DISCLAIMER, FORM_IDS, type FormId, fillValue, formMeta, isForm, valueText } from '../lib/console-answers';
|
||||||
import type { ShipConfig } from '../lib/config';
|
import type { ShipConfig } from '../lib/config';
|
||||||
import { consoleReached, type FieldDef, type FormDef, formDef, FORM_OPENERS, forbiddenControl, hasToken, isSignInText, isSignInUrl, type Name, navAllowed, type NavBases, type NavStep, navPlan } from '../lib/console-forms';
|
import { ALL_APPS, consoleReached, CREATE_FORM_FIELD, createAppAllowed, type FieldDef, type FormDef, formDef, FORM_OPENERS, forbiddenControl, hasToken, isSignInText, isSignInUrl, type Name, navAllowed, type NavBases, type NavStep, navPlan } from '../lib/console-forms';
|
||||||
import { log, printJson, warn } from '../lib/log';
|
import { log, printJson, warn } from '../lib/log';
|
||||||
import { openAcross, withAccountIds } from './accounts';
|
import { openAcross, withAccountIds } from './accounts';
|
||||||
import { type ConsoleBrowser, openConsoleBrowser } from './session';
|
import { type ConsoleBrowser, openConsoleBrowser } from './session';
|
||||||
|
|
@ -145,16 +146,21 @@ async function setField(r: Resolved, v: string | boolean): Promise<boolean> {
|
||||||
const exact = labels.indexOf(want);
|
const exact = labels.indexOf(want);
|
||||||
if (exact >= 0) return exact;
|
if (exact >= 0) return exact;
|
||||||
const near = labels.map((l, i) => [l, i] as const).filter(([l]) => l.endsWith(` - ${want}`) || l.endsWith(`(${want})`) || l.includes(want));
|
const near = labels.map((l, i) => [l, i] as const).filter(([l]) => l.endsWith(` - ${want}`) || l.endsWith(`(${want})`) || l.includes(want));
|
||||||
return near.length === 1 ? near[0]![1] : -1;
|
if (near.length === 1) return near[0]![1];
|
||||||
|
// a Play language ("English (United States) – en-US") in a console of another UI language: by its code suffix
|
||||||
|
const code = /\s[–-]\s([A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,4})?)$/.exec(want)?.[1];
|
||||||
|
if (!code) return -1;
|
||||||
|
const byCode = labels.map((l, i) => [l, i] as const).filter(([l]) => l.endsWith(` – ${code}`) || l.endsWith(` - ${code}`));
|
||||||
|
return byCode.length === 1 ? byCode[0]![1] : -1;
|
||||||
}, String(v));
|
}, String(v));
|
||||||
if (idx < 0) return false;
|
if (idx < 0) return false;
|
||||||
await r.loc.selectOption({ index: idx });
|
await r.loc.selectOption({ index: idx });
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mark(r: Resolved): Promise<void> {
|
async function mark(r: Resolved, text = CHECK): Promise<void> {
|
||||||
if (r.loc) return highlight(r.loc);
|
if (r.loc) return highlight(r.loc, text);
|
||||||
for (const o of Object.values(r.options ?? {})) await highlight(o);
|
for (const o of Object.values(r.options ?? {})) await highlight(o, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FillStep {
|
export interface FillStep {
|
||||||
|
|
@ -197,8 +203,10 @@ export async function fillPage(page: Page, def: FormDef, answers: Answer[], done
|
||||||
if (!r.ok) continue;
|
if (!r.ok) continue;
|
||||||
const a = byId.get(r.field.id);
|
const a = byId.get(r.field.id);
|
||||||
if (!a) continue;
|
if (!a) continue;
|
||||||
|
// an agreement is never ticked, whatever the answer says: highlighted for the owner
|
||||||
|
if (r.field.agreement || a.agreement) { await mark(r, 'storebound: you agree to this, never ticked'); highlighted.push(a.id); continue; }
|
||||||
const set = a.certain && a.value !== null ? await setField(r, a.value) : false;
|
const set = a.certain && a.value !== null ? await setField(r, a.value) : false;
|
||||||
if (set) filled.push(a.id); else { await mark(r); highlighted.push(a.id); }
|
if (set) { filled.push(a.id); if (a.ownerCheck) await mark(r, 'storebound: owner check'); } else { await mark(r); highlighted.push(a.id); }
|
||||||
}
|
}
|
||||||
done.add(i);
|
done.add(i);
|
||||||
return { section: i, title: sec.title, filled, highlighted, missing, fallback: false };
|
return { section: i, title: sec.title, filled, highlighted, missing, fallback: false };
|
||||||
|
|
@ -251,13 +259,27 @@ export async function realRole(loc: Locator): Promise<string> {
|
||||||
* so (the click gate stays absolute: never Save / Submit / Publish / Create / Send / Next ...; only a link named exactly
|
* so (the click gate stays absolute: never Save / Submit / Publish / Create / Send / Next ...; only a link named exactly
|
||||||
* Start / Manage / Başla / Yönet is let through). Every navigation click goes through here.
|
* Start / Manage / Başla / Yönet is let through). Every navigation click goes through here.
|
||||||
*/
|
*/
|
||||||
export async function navClick(loc: Locator): Promise<{ clicked: boolean; name: string }> {
|
export async function navClick(loc: Locator, createApp = false): Promise<{ clicked: boolean; name: string }> {
|
||||||
const name = await accName(loc), role = await realRole(loc);
|
const name = await accName(loc), role = await realRole(loc);
|
||||||
if (!navAllowed(name, role)) { warn(TAG, `not clicking "${name}" while opening the form: storebound never presses save, submit, publish, next or similar`); return { clicked: false, name }; }
|
if (createApp ? !await createAppHere(loc, name, role) : !navAllowed(name, role)) { warn(TAG, `not clicking "${name}" while opening the form: storebound never presses save, submit, publish, next or similar`); return { clicked: false, name }; }
|
||||||
await loc.click();
|
await loc.click();
|
||||||
return { clicked: true, name };
|
return { clicked: true, name };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Create app opener check (createAppAllowed) with what the page shows now: the app list (an All apps / Home heading
|
||||||
|
* or an /app-list URL), no Create app form open (no App name field), and the control not inside a form or dialog.
|
||||||
|
*/
|
||||||
|
export async function createAppHere(loc: Locator, name: string, role: string): Promise<boolean> {
|
||||||
|
const page: Page = loc.page();
|
||||||
|
const inForm: boolean = await loc.evaluate((el: any) => !!el.closest('form, [role="form"], [role="dialog"], dialog'));
|
||||||
|
const formOpen = (await findAny(page, ['textbox'], CREATE_FORM_FIELD)).state !== 'none';
|
||||||
|
let appList = false;
|
||||||
|
try { appList = /\/app-list(?:[/?#]|$)/.test(new URL(page.url()).pathname); } catch { /* about:blank */ }
|
||||||
|
if (!appList) for (const n of ALL_APPS) if (await vis(page.getByRole('heading', nameOpts(n))).count() > 0) { appList = true; break; }
|
||||||
|
return createAppAllowed(name, role, { appList, formOpen, inForm });
|
||||||
|
}
|
||||||
|
|
||||||
export interface NavResult {
|
export interface NavResult {
|
||||||
ok: boolean;
|
ok: boolean;
|
||||||
/** Labels of the steps done (["already open"] when the form was already on the page). */
|
/** Labels of the steps done (["already open"] when the form was already on the page). */
|
||||||
|
|
@ -400,7 +422,7 @@ export async function navigate(page: Page, plan: NavStep[], opts: NavOpts = {}):
|
||||||
const f = await poll(s.optional ? Math.min(ms, 2000) : ms, async () => { const r = await findAny(page, s.roles, s.names); return r.state === 'none' ? null : r; }, stop);
|
const f = await poll(s.optional ? Math.min(ms, 2000) : ms, async () => { const r = await findAny(page, s.roles, s.names); return r.state === 'none' ? null : r; }, stop);
|
||||||
if (!f) { if (s.optional) { say(' (not on this page, skipped)'); continue; } return fail(s, 'not found'); }
|
if (!f) { if (s.optional) { say(' (not on this page, skipped)'); continue; } return fail(s, 'not found'); }
|
||||||
if (f.state !== 'ok') return fail(s, 'more than one match');
|
if (f.state !== 'ok') return fail(s, 'more than one match');
|
||||||
const c = await navClick(f.loc);
|
const c = await navClick(f.loc, !!s.createApp);
|
||||||
if (!c.clicked) return fail(s, `refused to click "${c.name}"`);
|
if (!c.clicked) return fail(s, `refused to click "${c.name}"`);
|
||||||
} else if (s.kind === 'pickApp') {
|
} else if (s.kind === 'pickApp') {
|
||||||
if (!s.tokens.length && !s.name) return fail(s, 'no bundle id, package name or app name in the config');
|
if (!s.tokens.length && !s.name) return fail(s, 'no bundle id, package name or app name in the config');
|
||||||
|
|
@ -451,7 +473,10 @@ export async function resumeAt(page: Page, plan: NavStep[]): Promise<number | nu
|
||||||
|
|
||||||
function printText(res: ConsoleResult): void {
|
function printText(res: ConsoleResult): void {
|
||||||
console.log(`${res.title}\n${res.url}\n`);
|
console.log(`${res.title}\n${res.url}\n`);
|
||||||
for (const a of res.answers) console.log(` ${a.certain ? '[ok] ' : '[check]'} ${a.label}: ${valueText(a)} (${a.source})${a.certain || !a.note ? '' : `\n ${a.note}`}`);
|
for (const a of res.answers) {
|
||||||
|
const tag = a.agreement ? '[you] ' : a.ownerCheck ? '[owner]' : a.certain ? '[ok] ' : '[check]';
|
||||||
|
console.log(` ${tag} ${a.label}: ${a.agreement ? '(you tick it; storebound never does)' : valueText(a)} (${a.source})${(a.certain && !a.ownerCheck) || !a.note ? '' : `\n ${a.note}`}`);
|
||||||
|
}
|
||||||
console.log(`\n${res.uncertain} answer(s) to check yourself.\n\nSteps:\n${res.guidance.map(g => ` - ${g}`).join('\n')}`);
|
console.log(`\n${res.uncertain} answer(s) to check yourself.\n\nSteps:\n${res.guidance.map(g => ` - ${g}`).join('\n')}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -587,10 +612,12 @@ export async function fillSession(b: ConsoleBrowser, o: FillSessionOpts): Promis
|
||||||
// refused / ambiguous: not retried on this page; "not found" / "did not appear" is retried when the step shows up
|
// refused / ambiguous: not retried on this page; "not found" / "did not appear" is retried when the step shows up
|
||||||
if (!/^(not found|did not appear)$/.test(r.why ?? '')) tried = `${(active() ?? b.page).url()}#${plan.findIndex(s => s.label === r.failed)}`;
|
if (!/^(not found|did not appear)$/.test(r.why ?? '')) tried = `${(active() ?? b.page).url()}#${plan.findIndex(s => s.label === r.failed)}`;
|
||||||
warn(TAG, `could not open the form by itself at step "${r.failed}" (${r.why}). Open it yourself; storebound keeps watching and fills it when it appears:`);
|
warn(TAG, `could not open the form by itself at step "${r.failed}" (${r.why}). Open it yourself; storebound keeps watching and fills it when it appears:`);
|
||||||
if (r.candidates) say(`apps that match: ${r.candidates.join(' | ')} (set apple.appId / play.packageName in the config to pick one)`);
|
if (r.candidates) say(r.failed === 'the developer account' ? `developer accounts: ${r.candidates.join(' | ')} (set play.developerAccount or play.developerId to pick one)`
|
||||||
|
: `apps that match: ${r.candidates.join(' | ')} (set apple.appId / play.packageName in the config to pick one)`);
|
||||||
if (first) for (const s of meta.open) say(`open the form: ${s}`);
|
if (first) for (const s of meta.open) say(`open the form: ${s}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
for (const n of meta.notes ?? []) say(n);
|
||||||
await b.page.goto(startUrl ?? meta.url).catch(() => { /* the owner can navigate */ });
|
await b.page.goto(startUrl ?? meta.url).catch(() => { /* the owner can navigate */ });
|
||||||
await signedIn();
|
await signedIn();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -472,6 +472,14 @@ export interface ShipConfig {
|
||||||
* one Google login in several developer accounts, `storebound console fill` finds the app by package name and
|
* one Google login in several developer accounts, `storebound console fill` finds the app by package name and
|
||||||
* remembers the account (~/.storebound/console-accounts.json); this skips that search. */
|
* remembers the account (~/.storebound/console-accounts.json); this skips that search. */
|
||||||
developerId?: string;
|
developerId?: string;
|
||||||
|
/** The developer account's display name on Play Console's "Choose a developer account" page (e.g. an
|
||||||
|
* organisation account). `storebound console fill play-app-record` picks the account by it when there is no
|
||||||
|
* package in any account yet and no developerId; ambiguous or unknown -> it stops and lists the accounts. */
|
||||||
|
developerAccount?: string;
|
||||||
|
/** The Play app name when it differs from app.name (Create app form; at most 30 characters). */
|
||||||
|
name?: string;
|
||||||
|
/** Free (true) or paid (false) on Play. A free app can never become paid later; storebound flags it for the owner. */
|
||||||
|
free?: boolean;
|
||||||
/** Promo video: a YouTube URL (public or unlisted, ads off, embeddable). Play takes no video upload. Sent by `play listing`. */
|
/** Promo video: a YouTube URL (public or unlisted, ads off, embeddable). Play takes no video upload. Sent by `play listing`. */
|
||||||
video?: string;
|
video?: string;
|
||||||
/** Cloud Storage bucket of the Play Console report exports, e.g. "pubsite_prod_rev_<number>" (Play Console >
|
/** Cloud Storage bucket of the Play Console report exports, e.g. "pubsite_prod_rev_<number>" (Play Console >
|
||||||
|
|
@ -643,6 +651,10 @@ export function validateExtras(cfg: Partial<ShipConfig>): string[] {
|
||||||
const e: string[] = [];
|
const e: string[] = [];
|
||||||
if (cfg.apple?.teamId !== undefined && !/^[A-Z0-9]{10}$/.test(cfg.apple.teamId)) e.push('apple.teamId: the 10-character Team ID (Membership details)');
|
if (cfg.apple?.teamId !== undefined && !/^[A-Z0-9]{10}$/.test(cfg.apple.teamId)) e.push('apple.teamId: the 10-character Team ID (Membership details)');
|
||||||
if (cfg.play?.developerId !== undefined && !/^\d{1,25}$/.test(cfg.play.developerId)) e.push('play.developerId: the digits of play.google.com/console/u/0/developers/<id>');
|
if (cfg.play?.developerId !== undefined && !/^\d{1,25}$/.test(cfg.play.developerId)) e.push('play.developerId: the digits of play.google.com/console/u/0/developers/<id>');
|
||||||
|
if (cfg.play?.developerAccount !== undefined && !(typeof cfg.play.developerAccount === 'string' && cfg.play.developerAccount.trim() && cfg.play.developerAccount.length <= 100))
|
||||||
|
e.push('play.developerAccount: the developer account name as Play Console shows it (1-100 characters)');
|
||||||
|
if (cfg.play?.name !== undefined && !(typeof cfg.play.name === 'string' && cfg.play.name.trim() && [...cfg.play.name].length <= 30)) e.push('play.name: 1-30 characters (Play app name)');
|
||||||
|
if (cfg.play?.free !== undefined && typeof cfg.play.free !== 'boolean') e.push('play.free: true (free) | false (paid)');
|
||||||
const ad = cfg.apple?.adhoc;
|
const ad = cfg.apple?.adhoc;
|
||||||
if (ad?.method !== undefined && ad.method !== 'release-testing' && ad.method !== 'ad-hoc') e.push('apple.adhoc.method: release-testing | ad-hoc');
|
if (ad?.method !== undefined && ad.method !== 'release-testing' && ad.method !== 'ad-hoc') e.push('apple.adhoc.method: release-testing | ad-hoc');
|
||||||
const ppp = cfg.prices?.ppp;
|
const ppp = cfg.prices?.ppp;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
// apple-app-record App Store Connect > Apps > + > New App
|
// apple-app-record App Store Connect > Apps > + > New App
|
||||||
// apple-age-rating guide only: `storebound apple appinfo` sets every question through the API
|
// apple-age-rating guide only: `storebound apple appinfo` sets every question through the API
|
||||||
// apple-app-privacy App Store Connect > the app > App Privacy (no API)
|
// apple-app-privacy App Store Connect > the app > App Privacy (no API)
|
||||||
|
// play-app-record Play Console > Home (All apps) > Create app (the Play Developer API cannot create apps)
|
||||||
// play-content-rating Play Console > Policy > App content > Content rating (IARC questionnaire)
|
// play-content-rating Play Console > Policy > App content > Content rating (IARC questionnaire)
|
||||||
// play-target-audience Play Console > Policy > App content > Target audience and content (+ the Ads declaration)
|
// play-target-audience Play Console > Policy > App content > Target audience and content (+ the Ads declaration)
|
||||||
// Sources (checked October 2026):
|
// Sources (checked October 2026):
|
||||||
|
|
@ -11,6 +12,7 @@
|
||||||
// https://developer.apple.com/help/app-store-connect/manage-app-information/manage-app-privacy
|
// https://developer.apple.com/help/app-store-connect/manage-app-information/manage-app-privacy
|
||||||
// https://developer.apple.com/app-store/app-privacy-details/ (data types, purposes)
|
// https://developer.apple.com/app-store/app-privacy-details/ (data types, purposes)
|
||||||
// https://developer.apple.com/tutorials/data/documentation/appstoreconnectapi/ageratingdeclaration/attributes-data.dictionary.json
|
// https://developer.apple.com/tutorials/data/documentation/appstoreconnectapi/ageratingdeclaration/attributes-data.dictionary.json
|
||||||
|
// https://support.google.com/googleplay/android-developer/answer/9859152 (create and set up your app)
|
||||||
// https://support.google.com/googleplay/android-developer/answer/9859655 (content ratings)
|
// https://support.google.com/googleplay/android-developer/answer/9859655 (content ratings)
|
||||||
// https://support.google.com/googleplay/android-developer/answer/9867159 (target audience and content)
|
// https://support.google.com/googleplay/android-developer/answer/9867159 (target audience and content)
|
||||||
import { AGE_RATING_NONE } from '../apple/appinfo';
|
import { AGE_RATING_NONE } from '../apple/appinfo';
|
||||||
|
|
@ -18,12 +20,19 @@ import { type AgeGroup, AGE_GROUPS, IARC_QUESTIONS, type IarcQuestion, profileOf
|
||||||
import { APPLE_PRIVACY, applePurpose } from './declarations';
|
import { APPLE_PRIVACY, applePurpose } from './declarations';
|
||||||
import { maskUser } from './credentials';
|
import { maskUser } from './credentials';
|
||||||
|
|
||||||
export const FORM_IDS = ['apple-app-record', 'apple-age-rating', 'apple-app-privacy', 'play-content-rating', 'play-target-audience'] as const;
|
export const FORM_IDS = ['apple-app-record', 'apple-age-rating', 'apple-app-privacy', 'play-app-record', 'play-content-rating', 'play-target-audience'] as const;
|
||||||
export type FormId = typeof FORM_IDS[number];
|
export type FormId = typeof FORM_IDS[number];
|
||||||
export type Store = 'apple' | 'play';
|
export type Store = 'apple' | 'play';
|
||||||
|
|
||||||
export type AnswerValue = string | boolean | null;
|
export type AnswerValue = string | boolean | null;
|
||||||
export interface Answer { id: string; label: string; value: AnswerValue; certain: boolean; source: string; note?: string }
|
export interface Answer {
|
||||||
|
id: string; label: string; value: AnswerValue; certain: boolean; source: string; note?: string;
|
||||||
|
/** Filled from the config but still the owner's call (Play free or paid: free can never become paid): highlighted
|
||||||
|
* in the page even when filled, and printed with its note. */
|
||||||
|
ownerCheck?: boolean;
|
||||||
|
/** An agreement (Play's Developer Program Policies / US export laws boxes): NEVER ticked by storebound, only highlighted. */
|
||||||
|
agreement?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FormMeta {
|
export interface FormMeta {
|
||||||
id: FormId; store: Store; title: string; url: string;
|
id: FormId; store: Store; title: string; url: string;
|
||||||
|
|
@ -35,6 +44,8 @@ export interface FormMeta {
|
||||||
stopBefore: string;
|
stopBefore: string;
|
||||||
/** false: no page filling at all, guidance only (the API covers it). */
|
/** false: no page filling at all, guidance only (the API covers it). */
|
||||||
fillable: boolean;
|
fillable: boolean;
|
||||||
|
/** Lines said at the start of a fill run and printed in the guidance (what this form does not set, owner checks). */
|
||||||
|
notes?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The `--dry --json` result (and the head of a fill run's result). */
|
/** The `--dry --json` result (and the head of a fill run's result). */
|
||||||
|
|
@ -63,6 +74,13 @@ export function formMeta(id: FormId, config: ShipConfig): FormMeta {
|
||||||
case 'apple-app-privacy': return { id, store: 'apple', title: 'App Store Connect: App Privacy', url: privacy, stopBefore: 'Publish', fillable: true,
|
case 'apple-app-privacy': return { id, store: 'apple', title: 'App Store Connect: App Privacy', url: privacy, stopBefore: 'Publish', fillable: true,
|
||||||
open: [...(config.apple?.appId ? [] : ['Apps > your app (set apple.appId so storebound opens it directly)']), 'App Privacy in the sidebar > Get Started (or Edit next to Data Types)'],
|
open: [...(config.apple?.appId ? [] : ['Apps > your app (set apple.appId so storebound opens it directly)']), 'App Privacy in the sidebar > Get Started (or Edit next to Data Types)'],
|
||||||
then: 'Get Started (or Edit next to Data Types)' };
|
then: 'Get Started (or Edit next to Data Types)' };
|
||||||
|
case 'play-app-record': return { id, store: 'play', title: 'Play Console: Create app', url: PLAY, stopBefore: 'Create app', fillable: true,
|
||||||
|
open: ['Pick the developer account if Play Console asks (play.developerId or play.developerAccount picks it)', 'Home (All apps) > Create app'],
|
||||||
|
notes: [
|
||||||
|
'The package name is not part of this form: the first AAB upload sets it for good (storebound play upload --track internal, or storebound flow run release).',
|
||||||
|
'Free or paid is an owner check: a free app can never become paid later on Google Play.',
|
||||||
|
'The Developer Program Policies and US export laws boxes are agreements: storebound never ticks them. Read and tick them yourself, then press Create app.',
|
||||||
|
] };
|
||||||
case 'play-content-rating': return { id, store: 'play', title: 'Play Console: Content rating (IARC)', url: PLAY, stopBefore: 'Submit', fillable: true,
|
case 'play-content-rating': return { id, store: 'play', title: 'Play Console: Content rating (IARC)', url: PLAY, stopBefore: 'Submit', fillable: true,
|
||||||
open: [pickApp, 'Policy > App content > Content rating > Start (or Start new questionnaire)'] };
|
open: [pickApp, 'Policy > App content > Content rating > Start (or Start new questionnaire)'] };
|
||||||
case 'play-target-audience': return { id, store: 'play', title: 'Play Console: Target audience and content', url: PLAY, stopBefore: 'Save', fillable: true,
|
case 'play-target-audience': return { id, store: 'play', title: 'Play Console: Target audience and content', url: PLAY, stopBefore: 'Save', fillable: true,
|
||||||
|
|
@ -98,6 +116,58 @@ function appRecord(config: ShipConfig): Answer[] {
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Play Console's default language entries ("English (United States) – en-US"), by Play listing code. MODELED from
|
||||||
|
* the Play Console language list (help page "Add translations and localized assets"), not recorded. */
|
||||||
|
export const PLAY_LANGUAGE_NAMES: Record<string, string> = {
|
||||||
|
'af': 'Afrikaans', 'am': 'Amharic', 'ar': 'Arabic', 'hy-AM': 'Armenian', 'az-AZ': 'Azerbaijani', 'bn-BD': 'Bangla', 'eu-ES': 'Basque',
|
||||||
|
'be': 'Belarusian', 'bg': 'Bulgarian', 'my-MM': 'Burmese', 'ca': 'Catalan', 'zh-HK': 'Chinese (Hong Kong)', 'zh-CN': 'Chinese (Simplified)',
|
||||||
|
'zh-TW': 'Chinese (Traditional)', 'hr': 'Croatian', 'cs-CZ': 'Czech', 'da-DK': 'Danish', 'nl-NL': 'Dutch', 'en-AU': 'English (Australia)',
|
||||||
|
'en-CA': 'English (Canada)', 'en-IN': 'English (India)', 'en-SG': 'English (Singapore)', 'en-ZA': 'English (South Africa)',
|
||||||
|
'en-GB': 'English (United Kingdom)', 'en-US': 'English (United States)', 'et': 'Estonian', 'fil': 'Filipino', 'fi-FI': 'Finnish',
|
||||||
|
'fr-CA': 'French (Canada)', 'fr-FR': 'French (France)', 'gl-ES': 'Galician', 'ka-GE': 'Georgian', 'de-DE': 'German', 'el-GR': 'Greek',
|
||||||
|
'gu': 'Gujarati', 'iw-IL': 'Hebrew', 'hi-IN': 'Hindi', 'hu-HU': 'Hungarian', 'is-IS': 'Icelandic', 'id': 'Indonesian', 'it-IT': 'Italian',
|
||||||
|
'ja-JP': 'Japanese', 'kn-IN': 'Kannada', 'kk': 'Kazakh', 'km-KH': 'Khmer', 'ko-KR': 'Korean', 'ky-KG': 'Kyrgyz', 'lo-LA': 'Lao',
|
||||||
|
'lv': 'Latvian', 'lt': 'Lithuanian', 'mk-MK': 'Macedonian', 'ms': 'Malay', 'ms-MY': 'Malay (Malaysia)', 'ml-IN': 'Malayalam',
|
||||||
|
'mr-IN': 'Marathi', 'mn-MN': 'Mongolian', 'ne-NP': 'Nepali', 'no-NO': 'Norwegian', 'fa': 'Persian', 'pl-PL': 'Polish',
|
||||||
|
'pt-BR': 'Portuguese (Brazil)', 'pt-PT': 'Portuguese (Portugal)', 'pa': 'Punjabi', 'ro': 'Romanian', 'rm': 'Romansh', 'ru-RU': 'Russian',
|
||||||
|
'sr': 'Serbian', 'si-LK': 'Sinhala', 'sk': 'Slovak', 'sl': 'Slovenian', 'es-419': 'Spanish (Latin America)', 'es-ES': 'Spanish (Spain)',
|
||||||
|
'es-US': 'Spanish (United States)', 'sw': 'Swahili', 'sv-SE': 'Swedish', 'ta-IN': 'Tamil', 'te-IN': 'Telugu', 'th': 'Thai', 'tr-TR': 'Turkish',
|
||||||
|
'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zu': 'Zulu',
|
||||||
|
};
|
||||||
|
/** The Play Console label of a listing language code ("English (United States) – en-US"), or null when unknown. */
|
||||||
|
export const playLanguageLabel = (code: string): string | null => (PLAY_LANGUAGE_NAMES[code] ? `${PLAY_LANGUAGE_NAMES[code]} – ${code}` : null);
|
||||||
|
|
||||||
|
/** The Play app name limit (Create app form and store listing title). */
|
||||||
|
export const PLAY_NAME_MAX = 30;
|
||||||
|
|
||||||
|
function playAppRecord(config: ShipConfig): Answer[] {
|
||||||
|
const p = config.play;
|
||||||
|
const name = p?.name ?? config.app.name, nameSrc = p?.name ? 'play.name' : 'app.name';
|
||||||
|
const len = [...name].length;
|
||||||
|
const first = config.languages.find(l => l.play)?.play;
|
||||||
|
const code = p?.defaultLanguage ?? (Array.isArray(first) ? first[0] : first);
|
||||||
|
const lang = code ? playLanguageLabel(code) : null;
|
||||||
|
const langSrc = p?.defaultLanguage ? 'play.defaultLanguage' : 'languages[0].play';
|
||||||
|
const profile = config.app.profile;
|
||||||
|
const sells = (config.products?.length ?? 0) > 0 || (config.subscriptions?.length ?? 0) > 0, ads = (config.ads?.appAdsTxt?.length ?? 0) > 0;
|
||||||
|
const once = 'A free app can never become paid later on Google Play (a paid app can become free).';
|
||||||
|
const out: Answer[] = [
|
||||||
|
len <= PLAY_NAME_MAX ? ok('name', 'App name', name, nameSrc, 'Shown on Google Play; the store listing can change it later.')
|
||||||
|
: ask('name', 'App name', nameSrc, `"${name}" is ${len} characters; Play allows ${PLAY_NAME_MAX}. Set play.name to a shorter name.`),
|
||||||
|
lang ? ok('language', 'Default language', lang, langSrc)
|
||||||
|
: ask('language', 'Default language', 'play.defaultLanguage', code ? `Pick the language of code "${code}" (storebound does not know its Play Console name).` : 'Set play.defaultLanguage (e.g. en-US) or a play code on the first language.'),
|
||||||
|
profile ? ok('type', 'App or game', profile === 'game' ? 'Game' : 'App', 'app.profile', 'Changeable later in the store settings.')
|
||||||
|
: ask('type', 'App or game', 'app.profile', 'Set app.profile (game | app | subscription-app) to have it filled.'),
|
||||||
|
];
|
||||||
|
if (p?.free !== undefined) out.push({ ...ok('price', 'Free or paid', p.free ? 'Free' : 'Paid', 'play.free', `Owner check: ${once}`), ownerCheck: true });
|
||||||
|
else if (sells || ads) out.push({ ...ok('price', 'Free or paid', 'Free', [sells ? (config.products?.length ? 'products' : 'subscriptions') : '', ads ? 'ads.appAdsTxt' : ''].filter(Boolean).join(' + '),
|
||||||
|
`Owner check: the config earns from in-app purchases / ads only, so Free. ${once} Set play.free to make it explicit.`), ownerCheck: true });
|
||||||
|
else out.push(ask('price', 'Free or paid', 'play.free', `Set play.free. ${once}`));
|
||||||
|
const agree = (id: string, label: string) => ({ ...ask(id, label, 'none', 'An agreement: only you can accept it. storebound never ticks it.'), agreement: true });
|
||||||
|
out.push(agree('agree:policies', 'Declarations: Developer Program Policies'), agree('agree:exportLaws', 'Declarations: US export laws'));
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
/** Every question of the API's ageRatingDeclarations (checked October 2026); appinfo.ts AGE_RATING_NONE plus the newer ones. */
|
/** Every question of the API's ageRatingDeclarations (checked October 2026); appinfo.ts AGE_RATING_NONE plus the newer ones. */
|
||||||
export const AGE_RATING_API = [...new Set([...Object.keys(AGE_RATING_NONE), 'socialMedia', 'socialMediaAgeRestricted'])];
|
export const AGE_RATING_API = [...new Set([...Object.keys(AGE_RATING_NONE), 'socialMedia', 'socialMediaAgeRestricted'])];
|
||||||
|
|
||||||
|
|
@ -207,6 +277,7 @@ export function consoleAnswers(id: FormId, config: ShipConfig): Answer[] {
|
||||||
case 'apple-app-record': return appRecord(config);
|
case 'apple-app-record': return appRecord(config);
|
||||||
case 'apple-age-rating': return ageRating(config);
|
case 'apple-age-rating': return ageRating(config);
|
||||||
case 'apple-app-privacy': return appPrivacy(config);
|
case 'apple-app-privacy': return appPrivacy(config);
|
||||||
|
case 'play-app-record': return playAppRecord(config);
|
||||||
case 'play-content-rating': return contentRating(config);
|
case 'play-content-rating': return contentRating(config);
|
||||||
case 'play-target-audience': return targetAudience(config);
|
case 'play-target-audience': return targetAudience(config);
|
||||||
}
|
}
|
||||||
|
|
@ -223,7 +294,8 @@ export function guidance(meta: FormMeta, answers: Answer[]): string[] {
|
||||||
const g: string[] = [];
|
const g: string[] = [];
|
||||||
if (!meta.fillable) g.push('Nothing to fill here: `storebound apple appinfo --dry`, then `storebound apple appinfo` sets every age rating answer through the App Store Connect API.');
|
if (!meta.fillable) g.push('Nothing to fill here: `storebound apple appinfo --dry`, then `storebound apple appinfo` sets every age rating answer through the App Store Connect API.');
|
||||||
g.push(...meta.open.map(o => `Open: ${o}`));
|
g.push(...meta.open.map(o => `Open: ${o}`));
|
||||||
for (const a of answers) g.push(`${a.label}: ${valueText(a)}${a.certain ? '' : ` (check: ${a.note ?? 'not in the config'})`}`);
|
for (const a of answers) g.push(`${a.label}: ${a.agreement ? 'you tick it (an agreement; storebound never does)' : valueText(a)}${a.certain && !a.ownerCheck ? '' : ` (check: ${a.note ?? 'not in the config'})`}`);
|
||||||
|
g.push(...(meta.notes ?? []).map(n => `Note: ${n}`));
|
||||||
g.push(meta.fillable ? `Review every field, then press ${meta.stopBefore} yourself. storebound never saves, submits or publishes.` : 'Answers marked "check" are yours to confirm in storebound.config.ts (apple.info.ageRating).');
|
g.push(meta.fillable ? `Review every field, then press ${meta.stopBefore} yourself. storebound never saves, submits or publishes.` : 'Answers marked "check" are yours to confirm in storebound.config.ts (apple.info.ageRating).');
|
||||||
return g;
|
return g;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@ export interface FieldDef {
|
||||||
names?: Name[];
|
names?: Name[];
|
||||||
/** radio: answer value (String(value)) -> candidate names of that radio button. */
|
/** radio: answer value (String(value)) -> candidate names of that radio button. */
|
||||||
options?: Record<string, Name[]>;
|
options?: Record<string, Name[]>;
|
||||||
|
/** An agreement checkbox: located and highlighted, NEVER ticked (whatever the answer says). */
|
||||||
|
agreement?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SectionDef {
|
export interface SectionDef {
|
||||||
|
|
@ -64,6 +66,14 @@ export function formDef(id: FormId, answers: Answer[]): FormDef {
|
||||||
{ id: 'access', kind: 'radio', names: ['User Access'], options: { limited: ['Limited Access'], full: ['Full Access'] } },
|
{ id: 'access', kind: 'radio', names: ['User Access'], options: { limited: ['Limited Access'], full: ['Full Access'] } },
|
||||||
] }] };
|
] }] };
|
||||||
case 'apple-age-rating': return { id, sections: [] };
|
case 'apple-age-rating': return { id, sections: [] };
|
||||||
|
case 'play-app-record': return { id, sections: [{ title: 'Create app', fields: [
|
||||||
|
{ id: 'name', kind: 'text', names: ['App name', 'Uygulama adı'] },
|
||||||
|
{ id: 'language', kind: 'select', names: ['Default language', 'Varsayılan dil'] },
|
||||||
|
{ id: 'type', kind: 'radio', names: ['App or game', 'Uygulama veya oyun'], options: { App: ['App', 'Uygulama'], Game: ['Game', 'Oyun'] } },
|
||||||
|
{ id: 'price', kind: 'radio', names: ['Free or paid', 'Ücretsiz veya ücretli'], options: { Free: ['Free', 'Ücretsiz'], Paid: ['Paid', 'Ücretli'] } },
|
||||||
|
{ id: 'agree:policies', kind: 'checkbox', agreement: true, names: [/Developer Program Polic/i, /Geliştirici Program(ı)? Politika/iu] },
|
||||||
|
{ id: 'agree:exportLaws', kind: 'checkbox', agreement: true, names: [/export laws/i, /ihracat yasa/iu] },
|
||||||
|
] }] };
|
||||||
case 'apple-app-privacy': {
|
case 'apple-app-privacy': {
|
||||||
const sections: SectionDef[] = [{ title: 'Data collection', fields: [
|
const sections: SectionDef[] = [{ title: 'Data collection', fields: [
|
||||||
{ id: 'collects', kind: 'radio', options: yesNo([/^Yes, we collect data/i], [/^No, we do not collect data/i]) },
|
{ id: 'collects', kind: 'radio', options: yesNo([/^Yes, we collect data/i], [/^No, we do not collect data/i]) },
|
||||||
|
|
@ -167,8 +177,9 @@ export function consoleReached(store: 'apple' | 'play', url: string, base?: stri
|
||||||
/** One navigation step. Steps are logged by `label`; a failed step is named in the fallback. */
|
/** One navigation step. Steps are logged by `label`; a failed step is named in the fallback. */
|
||||||
export type NavStep =
|
export type NavStep =
|
||||||
| { kind: 'goto'; label: string; url: string }
|
| { kind: 'goto'; label: string; url: string }
|
||||||
/** Click the one visible control of one of `roles` named like one of `names`. `optional`: skipped when absent or when `unless` is already visible. */
|
/** Click the one visible control of one of `roles` named like one of `names`. `optional`: skipped when absent or when `unless` is already visible.
|
||||||
| { kind: 'click'; label: string; roles: string[]; names: Name[]; optional?: boolean; unless?: { roles: string[]; names: Name[] } }
|
* `createApp`: the Play app list's Create app opener (createAppAllowed decides, never the plain gate). */
|
||||||
|
| { kind: 'click'; label: string; roles: string[]; names: Name[]; optional?: boolean; unless?: { roles: string[]; names: Name[] }; createApp?: boolean }
|
||||||
/** Pick the app from the list: rows / links whose name contains one of `tokens` (bundle id / package name) as a whole token, else whose name is `name`. */
|
/** Pick the app from the list: rows / links whose name contains one of `tokens` (bundle id / package name) as a whole token, else whose name is `name`. */
|
||||||
| { kind: 'pickApp'; label: string; tokens: string[]; name?: string; search?: Name[] }
|
| { kind: 'pickApp'; label: string; tokens: string[]; name?: string; search?: Name[] }
|
||||||
/** The Start / Manage link of the App content entry named like `entry`. */
|
/** The Start / Manage link of the App content entry named like `entry`. */
|
||||||
|
|
@ -179,6 +190,32 @@ export type NavStep =
|
||||||
/** Link names that only open a form (whole name, links only): allowed although "start" is in the click gate. */
|
/** Link names that only open a form (whole name, links only): allowed although "start" is in the click gate. */
|
||||||
export const FORM_OPENERS = ['Start', 'Manage', 'Başla', 'Yönet'];
|
export const FORM_OPENERS = ['Start', 'Manage', 'Başla', 'Yönet'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Play Console's page-level "Create app" button on Home (All apps) only OPENS the Create app form, but the same words
|
||||||
|
* are the form's final submit button. So it is let through only as the navigation step from the app list, never
|
||||||
|
* inside the form: the whole name is exactly one of these, the role is button or link, the page is the app list
|
||||||
|
* (an "All apps" heading or an /app-list URL), the Create app form is not open (no App name field on the page), and
|
||||||
|
* the control is not inside a form or dialog. Everything else named Create app is refused (forbiddenControl).
|
||||||
|
*/
|
||||||
|
export const CREATE_APP_OPENERS = ['Create app', 'Uygulama oluştur'];
|
||||||
|
export interface CreateAppWhere {
|
||||||
|
/** The page is the app list (All apps heading or /app-list URL). */
|
||||||
|
appList: boolean;
|
||||||
|
/** The Create app form is open on the page (its App name field is there). */
|
||||||
|
formOpen: boolean;
|
||||||
|
/** The control sits inside a <form>, role=form or a dialog. */
|
||||||
|
inForm: boolean;
|
||||||
|
}
|
||||||
|
export function createAppAllowed(name: string, role: string, where: CreateAppWhere): boolean {
|
||||||
|
const n = name.trim().replace(/\s+/g, ' ');
|
||||||
|
return CREATE_APP_OPENERS.some(o => o.toLocaleLowerCase('tr') === n.toLocaleLowerCase('tr')) && (role === 'button' || role === 'link')
|
||||||
|
&& where.appList && !where.formOpen && !where.inForm;
|
||||||
|
}
|
||||||
|
/** Headings of Play Console's app list (Home / All apps). */
|
||||||
|
export const ALL_APPS: Name[] = ['All apps', 'Tüm uygulamalar', 'Home', 'Ana sayfa'];
|
||||||
|
/** The Create app form's App name field (its presence means the form is open: Create app is the submit there). */
|
||||||
|
export const CREATE_FORM_FIELD: Name[] = ['App name', 'Uygulama adı'];
|
||||||
|
|
||||||
/** URL bases (tests point them at 127.0.0.1 fixtures). */
|
/** URL bases (tests point them at 127.0.0.1 fixtures). */
|
||||||
export interface NavBases { asc: string; play: string }
|
export interface NavBases { asc: string; play: string }
|
||||||
export const NAV_BASES: NavBases = { asc: 'https://appstoreconnect.apple.com', play: 'https://play.google.com/console' };
|
export const NAV_BASES: NavBases = { asc: 'https://appstoreconnect.apple.com', play: 'https://play.google.com/console' };
|
||||||
|
|
@ -202,6 +239,13 @@ export function navPlan(id: FormId, config: ShipConfig, bases: NavBases = NAV_BA
|
||||||
{ kind: 'wait', label: 'the New App dialog', roles: ['dialog'], names: ['New App', 'Yeni Uygulama', /^new app\b/i, /^yeni uygulama\b/iu] },
|
{ kind: 'wait', label: 'the New App dialog', roles: ['dialog'], names: ['New App', 'Yeni Uygulama', /^new app\b/i, /^yeni uygulama\b/iu] },
|
||||||
];
|
];
|
||||||
case 'apple-age-rating': return [];
|
case 'apple-age-rating': return [];
|
||||||
|
case 'play-app-record': return [
|
||||||
|
config.play?.developerId
|
||||||
|
? { kind: 'goto', label: 'open the app list of the developer account', url: playAppList(play, config.play.developerId) }
|
||||||
|
: { kind: 'goto', label: 'open Play Console', url: play },
|
||||||
|
{ kind: 'click', label: 'Create app on the app list', roles: ['button', 'link'], names: CREATE_APP_OPENERS, createApp: true },
|
||||||
|
{ kind: 'wait', label: 'the Create app form', roles: ['textbox'], names: CREATE_FORM_FIELD },
|
||||||
|
];
|
||||||
case 'apple-app-privacy': {
|
case 'apple-app-privacy': {
|
||||||
const appId = config.apple?.appId;
|
const appId = config.apple?.appId;
|
||||||
const open: NavStep[] = appId ? [{ kind: 'goto', label: 'open App Privacy of the app (apple.appId)', url: `${asc}/apps/${encodeURIComponent(appId)}/distribution/privacy` }] : [
|
const open: NavStep[] = appId ? [{ kind: 'goto', label: 'open App Privacy of the app (apple.appId)', url: `${asc}/apps/${encodeURIComponent(appId)}/distribution/privacy` }] : [
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@ export interface AnalyticsCompare {
|
||||||
}
|
}
|
||||||
/** console.fill (`console fill <form> --json`, cli/console/fill.ts): the answers it types into one console form. The
|
/** console.fill (`console fill <form> --json`, cli/console/fill.ts): the answers it types into one console form. The
|
||||||
* dry run has the answers only; the real run (it ends when the owner closes the browser) adds what happened. */
|
* dry run has the answers only; the real run (it ends when the owner closes the browser) adds what happened. */
|
||||||
export type ConsoleForm = 'apple-app-record' | 'apple-age-rating' | 'apple-app-privacy' | 'play-content-rating' | 'play-target-audience';
|
export type ConsoleForm = 'apple-app-record' | 'apple-age-rating' | 'apple-app-privacy' | 'play-app-record' | 'play-content-rating' | 'play-target-audience';
|
||||||
export interface ConsoleAnswer { id: string; label: string; value: string; certain: boolean; source: string; note?: string }
|
export interface ConsoleAnswer { id: string; label: string; value: string; certain: boolean; source: string; note?: string }
|
||||||
export interface ConsoleFillResult {
|
export interface ConsoleFillResult {
|
||||||
form: ConsoleForm; store: 'apple' | 'play'; title: string; url: string; answers: ConsoleAnswer[];
|
form: ConsoleForm; store: 'apple' | 'play'; title: string; url: string; answers: ConsoleAnswer[];
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ export const JSON_TOOLS = new Set(['check', 'check_aso', 'scan', 'validate', 'he
|
||||||
'project_icon', 'project_listings', 'reviews_drafts', 'project_declarations', 'project_listing_text', 'project_renders', 'project_render', 'prices_current']);
|
'project_icon', 'project_listings', 'reviews_drafts', 'project_declarations', 'project_listing_text', 'project_renders', 'project_render', 'prices_current']);
|
||||||
|
|
||||||
/** Console forms `storebound console fill` knows (cli/console/fill.ts). */
|
/** Console forms `storebound console fill` knows (cli/console/fill.ts). */
|
||||||
export const CONSOLE_FORMS = ['apple-app-record', 'apple-age-rating', 'apple-app-privacy', 'play-content-rating', 'play-target-audience'];
|
export const CONSOLE_FORMS = ['apple-app-record', 'apple-age-rating', 'apple-app-privacy', 'play-app-record', 'play-content-rating', 'play-target-audience'];
|
||||||
/** Write tools that print a structured result with --json in the dry run and the real run (console.fill: the answers). */
|
/** Write tools that print a structured result with --json in the dry run and the real run (console.fill: the answers). */
|
||||||
export const JSON_WRITES = new Set(['console_fill']);
|
export const JSON_WRITES = new Set(['console_fill']);
|
||||||
/** Write tools whose command may ask its own question (confirm()): a verified host token answers it, as for owner actions. */
|
/** Write tools whose command may ask its own question (confirm()): a verified host token answers it, as for owner actions. */
|
||||||
|
|
|
||||||
|
|
@ -180,9 +180,9 @@ their keys in the Accounts screen). Project ids in an exported state are stable
|
||||||
|
|
||||||
### Fill in console
|
### Fill in console
|
||||||
|
|
||||||
Some store forms have no API: the App Store app record (New App), the age rating, App Privacy, and the Play content
|
Some store forms have no API: the App Store app record (New App), the age rating, App Privacy, Play's Create app
|
||||||
rating and target audience questionnaires. The App info tab has a **Fill in console** button for each (App Privacy
|
form, and the Play content rating and target audience questionnaires. The App info tab has a **Fill in console**
|
||||||
card, App info card for the age rating, a "Play Console questionnaires" card, and a notice when the config has no
|
button for each (App Privacy card, App info card for the age rating, a "Play Console forms" card, and a notice when the config has no
|
||||||
App Store app id yet). It runs `storebound console fill <form>` through the desktop-only method `console.fill` (a
|
App Store app id yet). It runs `storebound console fill <form>` through the desktop-only method `console.fill` (a
|
||||||
write, never an MCP tool):
|
write, never an MCP tool):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: console-autofill
|
name: console-autofill
|
||||||
description: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes. Use when the user wants help filling one of these console forms, asks what to answer in them, or wants the answers as a checklist.
|
description: AI-assisted autofill of App Store Connect and Google Play Console forms that have no API (the New App dialog, App Privacy, Play's Create app form, the Play IARC content rating questionnaire, Target audience and content plus the Ads declaration; the App Store age rating is shown as guidance because the API sets it) in a visible browser that reuses the owner's Chrome sign-in (or one they sign in to); storebound opens the form itself. Answers come only from storebound.config.ts; anything the config does not prove stays empty and highlighted. storebound never signs in, never saves, submits or publishes. Use when the user wants help filling one of these console forms, asks what to answer in them, or wants the answers as a checklist.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Console autofill (forms without an API)
|
# Console autofill (forms without an API)
|
||||||
|
|
@ -21,6 +21,7 @@ It is not available over MCP.
|
||||||
| `apple-app-record` | App Store Connect > Apps > + > New App | app.name, apple.primaryLocale, apple.bundleId, console.appRecord (SKU, user access) |
|
| `apple-app-record` | App Store Connect > Apps > + > New App | app.name, apple.primaryLocale, apple.bundleId, console.appRecord (SKU, user access) |
|
||||||
| `apple-age-rating` | App Information > Age Ratings | guide only: `storebound apple appinfo` sets every question through the API |
|
| `apple-age-rating` | App Information > Age Ratings | guide only: `storebound apple appinfo` sets every question through the API |
|
||||||
| `apple-app-privacy` | the app > App Privacy | dataSafety (types and purposes); linked to identity and tracking are always the owner's |
|
| `apple-app-privacy` | the app > App Privacy | dataSafety (types and purposes); linked to identity and tracking are always the owner's |
|
||||||
|
| `play-app-record` | Play Console > Home (All apps) > Create app | play.name or app.name (30 chars), play.defaultLanguage or the first language's play code, app.profile (App / Game), play.free or monetization (Free, owner check); the declarations are never ticked |
|
||||||
| `play-content-rating` | Policy > App content > Content rating | app.contactEmail, app.profile, products, console.contentRating |
|
| `play-content-rating` | Policy > App content > Content rating | app.contactEmail, app.profile, products, console.contentRating |
|
||||||
| `play-target-audience` | Policy > App content > Target audience and content (+ Ads) | console.targetAudience, ads.appAdsTxt |
|
| `play-target-audience` | Policy > App content > Target audience and content (+ Ads) | console.targetAudience, ads.appAdsTxt |
|
||||||
|
|
||||||
|
|
@ -93,6 +94,12 @@ It is not available over MCP.
|
||||||
recognized by its entry in the app list (App Privacy) or, for a new app, by the bundle id in the New App dialog's
|
recognized by its entry in the app list (App Privacy) or, for a new app, by the bundle id in the New App dialog's
|
||||||
Bundle ID list (Cancel closes the dialog in a team without it). App Store Connect has no documented URL
|
Bundle ID list (Cancel closes the dialog in a team without it). App Store Connect has no documented URL
|
||||||
parameter that picks a team, so storebound does not use one.
|
parameter that picks a team, so storebound does not use one.
|
||||||
|
- Play Create app (`play-app-record`) is a first create: no account has the package yet, so storebound does not
|
||||||
|
search, it picks: `play.developerId` (or the workspace account's id, or the remembered one), else the only
|
||||||
|
account the login sees, else the chooser entry named exactly `play.developerAccount` (case aside, e.g. an
|
||||||
|
organisation account). Several accounts and none of these set, or a name that matches none or two: it stops
|
||||||
|
and lists the accounts. Ask the owner which one; never guess. The choice is remembered under
|
||||||
|
`play.packageName`.
|
||||||
- Switching only changes what the console shows. Each switch click must be an account name storebound just read
|
- Switching only changes what the console shows. Each switch click must be an account name storebound just read
|
||||||
from the chooser or the menu, and never Sign Out or a deny-listed name (a studio called "Next Games" is left
|
from the chooser or the menu, and never Sign Out or a deny-listed name (a studio called "Next Games" is left
|
||||||
for the owner to pick).
|
for the owner to pick).
|
||||||
|
|
@ -103,10 +110,29 @@ It is not available over MCP.
|
||||||
8. If a field cannot be found or matches twice (for more than a moment: a page that is still loading does not count), the console UI changed: storebound stops filling and prints the
|
8. If a field cannot be found or matches twice (for more than a moment: a page that is still loading does not count), the console UI changed: storebound stops filling and prints the
|
||||||
step-by-step list ("label: answer") for the owner to copy. That is the expected safe behavior, not an error.
|
step-by-step list ("label: answer") for the owner to copy. That is the expected safe behavior, not an error.
|
||||||
|
|
||||||
|
## Play Create app (`play-app-record`)
|
||||||
|
|
||||||
|
- Navigation: the developer account's app list (Home / All apps) > the page-level **Create app** button. That button
|
||||||
|
only opens the form, but the form's final submit has the same words. storebound clicks it only as that one
|
||||||
|
navigation step: whole name exactly "Create app" / "Uygulama oluştur", a button or link, on the app list (All apps
|
||||||
|
heading or an /app-list URL), with no Create app form open and not inside a form or dialog. Inside the form it is
|
||||||
|
refused like every other submit.
|
||||||
|
- Fills App name (`play.name`, else `app.name`; over 30 characters it is left to the owner), Default language
|
||||||
|
(`play.defaultLanguage`, else the first language's play code, shown as "English (United States) – en-US"), App or
|
||||||
|
game (`app.profile`: game -> Game, app / subscription-app -> App) and Free or paid (`play.free`, else Free when the
|
||||||
|
config earns from IAP / subscriptions / ads only).
|
||||||
|
- **Owner check:** Free or paid is filled but outlined: a free app can never become paid on Google Play. Tell the
|
||||||
|
owner before they press Create app.
|
||||||
|
- **Declarations** (Developer Program Policies, US export laws) are agreements: storebound never ticks them, it
|
||||||
|
outlines them. The owner reads and ticks them and presses Create app.
|
||||||
|
- The package name is not in this form: the first AAB upload sets it for good (`storebound play upload --track
|
||||||
|
internal`, or `storebound flow run release`).
|
||||||
|
|
||||||
## The owner decides
|
## The owner decides
|
||||||
|
|
||||||
Every `[check]` answer, linked-to-identity and tracking for each App Privacy data type, the IARC answers, the target
|
Every `[check]` answer, linked-to-identity and tracking for each App Privacy data type, the IARC answers, the target
|
||||||
ages, and pressing the final button (App Privacy Publish, IARC Submit, Target audience Save, New App Create).
|
ages, Play's Free or paid and its declarations, and pressing the final button (App Privacy Publish, IARC Submit,
|
||||||
|
Target audience Save, New App Create, Play Create app).
|
||||||
|
|
||||||
## Out of scope
|
## Out of scope
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,12 @@ import { mkdtempSync, rmSync } from 'node:fs';
|
||||||
import { tmpdir } from 'node:os';
|
import { tmpdir } from 'node:os';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import { openAcross, readAccounts, rememberApple, rememberPlay, withAccountIds } from '../cli/console/accounts';
|
import { openAcross, readAccounts, rememberApple, rememberPlay, withAccountIds } from '../cli/console/accounts';
|
||||||
import { fillPage, fillSession, navClick, navigate, resumeAt, run, safeClick, signInPage } from '../cli/console/fill';
|
import { createAppHere, fillPage, fillSession, navClick, navigate, resumeAt, run, safeClick, signInPage } from '../cli/console/fill';
|
||||||
import { type ConsoleBrowser, openConsoleBrowser } from '../cli/console/session';
|
import { type ConsoleBrowser, openConsoleBrowser } from '../cli/console/session';
|
||||||
import { parseArgs } from '../cli/lib/args';
|
import { parseArgs } from '../cli/lib/args';
|
||||||
import { type ShipConfig, validateExtras } from '../cli/lib/config';
|
import { type ShipConfig, validateExtras } from '../cli/lib/config';
|
||||||
import { AGE_RATING_API, consoleAnswers, consoleResult, fillValue, FORM_IDS, type FormId, formMeta } from '../cli/lib/console-answers';
|
import { AGE_RATING_API, consoleAnswers, consoleResult, fillValue, FORM_IDS, type FormId, formMeta } from '../cli/lib/console-answers';
|
||||||
import { consoleReached, formDef, FORM_OPENERS, forbiddenControl, hasToken, isSignInText, isSignInUrl, navAllowed, navPlan, playDeveloperId, switchAllowed } from '../cli/lib/console-forms';
|
import { consoleReached, CREATE_APP_OPENERS, createAppAllowed, formDef, FORM_OPENERS, forbiddenControl, hasToken, isSignInText, isSignInUrl, navAllowed, navPlan, playDeveloperId, switchAllowed } from '../cli/lib/console-forms';
|
||||||
|
|
||||||
const config: ShipConfig = {
|
const config: ShipConfig = {
|
||||||
app: { name: 'Example Game', profile: 'game', privacyPolicyUrl: 'https://example.com/privacy', supportUrl: 'https://example.com/support', website: 'https://example.com', contactEmail: 'support@example.com' },
|
app: { name: 'Example Game', profile: 'game', privacyPolicyUrl: 'https://example.com/privacy', supportUrl: 'https://example.com/support', website: 'https://example.com', contactEmail: 'support@example.com' },
|
||||||
|
|
@ -174,6 +174,7 @@ const FIX = join(import.meta.dir, 'fixtures', 'console');
|
||||||
const ROUTES: Record<string, string> = {
|
const ROUTES: Record<string, string> = {
|
||||||
'/asc/apps': 'asc-apps.html', '/asc-tr/apps': 'asc-apps-tr.html', '/asc-noplus/apps': 'asc-apps-noplus.html', '/asc-dup/apps': 'asc-apps-dup.html',
|
'/asc/apps': 'asc-apps.html', '/asc-tr/apps': 'asc-apps-tr.html', '/asc-noplus/apps': 'asc-apps-noplus.html', '/asc-dup/apps': 'asc-apps-dup.html',
|
||||||
'/asc/apps/123/distribution/privacy': 'apple-app-privacy.html', '/play': 'play-apps.html', '/teams/apps': 'asc-teams.html',
|
'/asc/apps/123/distribution/privacy': 'apple-app-privacy.html', '/play': 'play-apps.html', '/teams/apps': 'asc-teams.html',
|
||||||
|
'/playc': 'play-home.html', '/playc-tr': 'play-home-tr.html',
|
||||||
};
|
};
|
||||||
let server: ReturnType<typeof Bun.serve> | null = null;
|
let server: ReturnType<typeof Bun.serve> | null = null;
|
||||||
let base = '';
|
let base = '';
|
||||||
|
|
@ -184,7 +185,10 @@ beforeAll(() => {
|
||||||
if (path === '/session-set') return new Response('<p>set</p>', { headers: { 'content-type': 'text/html', 'set-cookie': 'sbsession=example; Path=/; HttpOnly' } });
|
if (path === '/session-set') return new Response('<p>set</p>', { headers: { 'content-type': 'text/html', 'set-cookie': 'sbsession=example; Path=/; HttpOnly' } });
|
||||||
if (path === '/session-echo') return new Response(`<p id="c">${/(?:^|; )sbsession=example(?:;|$)/.test(req.headers.get('cookie') ?? '') ? 'kept' : 'lost'}</p>`, { headers: { 'content-type': 'text/html' } });
|
if (path === '/session-echo') return new Response(`<p id="c">${/(?:^|; )sbsession=example(?:;|$)/.test(req.headers.get('cookie') ?? '') ? 'kept' : 'lost'}</p>`, { headers: { 'content-type': 'text/html' } });
|
||||||
const dev = path.match(/^\/playm\/u\/0\/developers(?:\/(\d+)\/app-list)?$/);
|
const dev = path.match(/^\/playm\/u\/0\/developers(?:\/(\d+)\/app-list)?$/);
|
||||||
const name = path.endsWith('/_common.js') ? '_common.js' : dev ? (!dev[1] ? 'play-chooser.html' : dev[1] === '4444' ? 'play-apps.html' : 'play-apps-other.html')
|
// playn: the same chooser; every account's app list has a Create app button that opens the Create app form
|
||||||
|
const devNew = path.match(/^\/playn\/u\/0\/developers(?:\/(\d+)\/app-list)?$/);
|
||||||
|
const name = path.endsWith('/_common.js') ? '_common.js' : devNew ? (devNew[1] ? 'play-home.html' : 'play-chooser.html')
|
||||||
|
: dev ? (!dev[1] ? 'play-chooser.html' : dev[1] === '4444' ? 'play-apps.html' : 'play-apps-other.html')
|
||||||
: ROUTES[path] ?? path.slice(1);
|
: ROUTES[path] ?? path.slice(1);
|
||||||
if (!/^[a-z_-]+\.(html|js)$/.test(name)) return new Response('not found', { status: 404 });
|
if (!/^[a-z_-]+\.(html|js)$/.test(name)) return new Response('not found', { status: 404 });
|
||||||
return new Response(Bun.file(join(FIX, name)));
|
return new Response(Bun.file(join(FIX, name)));
|
||||||
|
|
@ -377,6 +381,8 @@ describe('navigation plan (pure)', () => {
|
||||||
const withId = { ...config, apple: { ...config.apple!, appId: '123' } } as ShipConfig;
|
const withId = { ...config, apple: { ...config.apple!, appId: '123' } } as ShipConfig;
|
||||||
for (const f of FORM_IDS) for (const s of [...navPlan(f, withId), ...navPlan(f, config)]) {
|
for (const f of FORM_IDS) for (const s of [...navPlan(f, withId), ...navPlan(f, config)]) {
|
||||||
if (s.kind !== 'click') continue;
|
if (s.kind !== 'click') continue;
|
||||||
|
// the one exception: Play's Create app opener, gated by createAppAllowed (never by the plain navigation gate)
|
||||||
|
if (s.createApp) { expect(f).toBe('play-app-record'); expect(s.names).toEqual(CREATE_APP_OPENERS); continue; }
|
||||||
for (const n of s.names) if (typeof n === 'string') expect(forbiddenControl(n)).toBe(false);
|
for (const n of s.names) if (typeof n === 'string') expect(forbiddenControl(n)).toBe(false);
|
||||||
}
|
}
|
||||||
for (const n of FORM_OPENERS) { expect(navAllowed(n, 'link')).toBe(true); expect(navAllowed(n, 'button')).toBe(false); }
|
for (const n of FORM_OPENERS) { expect(navAllowed(n, 'link')).toBe(true); expect(navAllowed(n, 'button')).toBe(false); }
|
||||||
|
|
@ -695,3 +701,196 @@ describe.skipIf(!browser)('accounts (headless, modeled pages)', () => {
|
||||||
await page.close();
|
await page.close();
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ---- play-app-record: Play Console's Create app form (no API can create a Play app) ----
|
||||||
|
|
||||||
|
describe('play-app-record (pure)', () => {
|
||||||
|
test('answers: name, default language label, app or game, free as an owner check, declarations never answered', () => {
|
||||||
|
const a = byId('play-app-record');
|
||||||
|
expect(a.get('name')).toMatchObject({ value: 'Example Game', certain: true, source: 'app.name' });
|
||||||
|
expect(a.get('language')).toMatchObject({ value: 'English (United States) – en-US', certain: true, source: 'languages[0].play' });
|
||||||
|
expect(a.get('type')).toMatchObject({ value: 'Game', certain: true });
|
||||||
|
expect(a.get('price')).toMatchObject({ value: 'Free', certain: true, ownerCheck: true, source: 'products + ads.appAdsTxt' });
|
||||||
|
expect(a.get('price')!.note).toContain('can never become paid');
|
||||||
|
for (const id of ['agree:policies', 'agree:exportLaws']) expect(a.get(id)).toMatchObject({ value: null, certain: false, agreement: true });
|
||||||
|
const own = byId('play-app-record', { ...config, app: { ...config.app, profile: 'subscription-app' }, play: { packageName: 'com.example.game', name: 'Example', defaultLanguage: 'tr-TR', free: false } } as ShipConfig);
|
||||||
|
expect(own.get('name')).toMatchObject({ value: 'Example', source: 'play.name' });
|
||||||
|
expect(own.get('language')).toMatchObject({ value: 'Turkish – tr-TR', source: 'play.defaultLanguage' });
|
||||||
|
expect(own.get('type')?.value).toBe('App');
|
||||||
|
expect(own.get('price')).toMatchObject({ value: 'Paid', certain: true, ownerCheck: true, source: 'play.free' });
|
||||||
|
const bare = byId('play-app-record', { ...config, app: { ...config.app, name: 'An Example Game With A Very Long Name', profile: undefined }, languages: [{ id: 'x', play: 'xx-XX' }], products: undefined, ads: undefined } as ShipConfig);
|
||||||
|
expect(bare.get('name')).toMatchObject({ value: null, certain: false });
|
||||||
|
expect(bare.get('name')!.note).toContain('Play allows 30');
|
||||||
|
expect(bare.get('language')).toMatchObject({ value: null, certain: false });
|
||||||
|
expect(bare.get('type')?.certain).toBe(false);
|
||||||
|
expect(bare.get('price')).toMatchObject({ value: null, certain: false });
|
||||||
|
});
|
||||||
|
test('guidance and notes: package name from the first AAB upload, free is final, declarations are yours', () => {
|
||||||
|
const r = consoleResult('play-app-record', config);
|
||||||
|
const g = r.guidance.join('\n');
|
||||||
|
expect(g).toContain('first AAB upload');
|
||||||
|
expect(g).toContain('play upload --track internal');
|
||||||
|
expect(g).toContain('flow run release');
|
||||||
|
expect(g).toContain('Free or paid: Free (check: Owner check');
|
||||||
|
expect(g).toContain('Declarations: Developer Program Policies: you tick it');
|
||||||
|
expect(r.guidance.at(-1)).toContain('press Create app yourself');
|
||||||
|
expect(formMeta('play-app-record', config)).toMatchObject({ store: 'play', stopBefore: 'Create app', fillable: true });
|
||||||
|
});
|
||||||
|
test('config fields', () => {
|
||||||
|
expect(validateExtras({ play: { packageName: 'com.example.game', developerAccount: 'Example Games Ltd', name: 'Example', free: true } })).toEqual([]);
|
||||||
|
const e = validateExtras({ play: { packageName: 'com.example.game', developerAccount: ' ', name: 'x'.repeat(31), free: 'yes' as unknown as boolean } }).join('\n');
|
||||||
|
for (const k of ['play.developerAccount', 'play.name', 'play.free']) expect(e).toContain(k);
|
||||||
|
});
|
||||||
|
test('navigation plan: the app list (of play.developerId) > Create app > the form', () => {
|
||||||
|
const p = navPlan('play-app-record', config);
|
||||||
|
expect(p.map(s => s.kind)).toEqual(['goto', 'click', 'wait']);
|
||||||
|
expect(p[1]).toMatchObject({ createApp: true, names: CREATE_APP_OPENERS });
|
||||||
|
expect(navPlan('play-app-record', { ...config, play: { ...config.play!, developerId: '4444' } } as ShipConfig)[0])
|
||||||
|
.toMatchObject({ url: 'https://play.google.com/console/u/0/developers/4444/app-list' });
|
||||||
|
});
|
||||||
|
test('the Create app allowlist: only the page-level opener on the app list, never inside the form (EN and TR)', () => {
|
||||||
|
const list = { appList: true, formOpen: false, inForm: false };
|
||||||
|
for (const n of ['Create app', 'Uygulama oluştur', ' Create app ', 'UYGULAMA OLUŞTUR', 'create app']) {
|
||||||
|
expect(createAppAllowed(n, 'button', list)).toBe(true);
|
||||||
|
expect(createAppAllowed(n, 'link', list)).toBe(true);
|
||||||
|
}
|
||||||
|
for (const n of ['Create app', 'Uygulama oluştur']) {
|
||||||
|
expect(createAppAllowed(n, 'button', { ...list, formOpen: true })).toBe(false); // the form is open: it is the submit
|
||||||
|
expect(createAppAllowed(n, 'button', { ...list, inForm: true })).toBe(false);
|
||||||
|
expect(createAppAllowed(n, 'button', { ...list, appList: false })).toBe(false);
|
||||||
|
expect(createAppAllowed(n, 'menuitem', list)).toBe(false);
|
||||||
|
expect(navAllowed(n, 'button')).toBe(false); // the plain navigation gate still refuses it
|
||||||
|
expect(forbiddenControl(n)).toBe(true); // and safeClick never presses it
|
||||||
|
}
|
||||||
|
for (const n of ['Create', 'Create app and continue', 'Create developer account', 'Oluştur', 'Uygulama oluştur ve devam et', 'Save', 'Create new app', ''])
|
||||||
|
expect(createAppAllowed(n, 'button', list)).toBe(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe.skipIf(!browser)('play-app-record (headless, modeled pages)', () => {
|
||||||
|
const quiet = { timeoutMs: 1500, say: () => {} };
|
||||||
|
const navClicks = (page: any): Promise<string[]> => page.evaluate(() => (window as any).__navClicks());
|
||||||
|
const fresh = async () => { const p = await browser.newPage(); await p.goto(base + 'blank.html'); await p.evaluate(() => sessionStorage.clear()); return p; };
|
||||||
|
const pb = (play: string) => ({ asc: base + 'asc', play: base + play });
|
||||||
|
const ans = () => pageAnswers('play-app-record');
|
||||||
|
const def = () => formDef('play-app-record', ans());
|
||||||
|
const agreed = (page: any) => page.getByRole('checkbox').evaluateAll((els: HTMLInputElement[]) => els.filter(e => e.checked).length);
|
||||||
|
|
||||||
|
for (const [lang, play, opener, nameField, game, free] of [['EN', 'playc', 'Create app', 'App name', 'Game', 'Free'], ['TR', 'playc-tr', 'Uygulama oluştur', 'Uygulama adı', 'Oyun', 'Ücretsiz']] as const) {
|
||||||
|
test(`${lang}: All apps > ${opener} opens the form; filled; declarations never ticked; the final ${opener} never clicked`, async () => {
|
||||||
|
const page = await fresh();
|
||||||
|
const r = await navigate(page, navPlan('play-app-record', config, pb(play)), quiet);
|
||||||
|
expect(r).toMatchObject({ ok: true, steps: ['open Play Console', 'Create app on the app list', 'the Create app form'] });
|
||||||
|
expect(await navClicks(page)).toEqual([opener]);
|
||||||
|
const s = await fillPage(page, def(), ans());
|
||||||
|
expect(s.fallback).toBe(false);
|
||||||
|
expect(s.filled.sort()).toEqual(['language', 'name', 'price', 'type']);
|
||||||
|
expect(s.highlighted.sort()).toEqual(['agree:exportLaws', 'agree:policies']);
|
||||||
|
expect(await page.getByRole('textbox', { name: nameField, exact: true }).inputValue()).toBe('Example Game');
|
||||||
|
expect(await page.getByRole('combobox').evaluate((e: HTMLSelectElement) => e.selectedOptions[0]!.textContent)).toMatch(/– en-US$/);
|
||||||
|
expect(await checked(page, game, 'radio')).toBe(true);
|
||||||
|
expect(await checked(page, free, 'radio')).toBe(true);
|
||||||
|
expect(await agreed(page)).toBe(0);
|
||||||
|
expect(await page.evaluate(() => [...document.querySelectorAll('[data-storebound-label]')].map(e => e.textContent))).toEqual([
|
||||||
|
'storebound: owner check', 'storebound: you agree to this, never ticked', 'storebound: you agree to this, never ticked']);
|
||||||
|
expect(await clicks(page)).toEqual([]); // never the final Create app / Uygulama oluştur
|
||||||
|
// inside the form the same words are the submit: refused even when pointed at it
|
||||||
|
const submit = page.getByRole('button', { name: opener, exact: true });
|
||||||
|
expect(await createAppHere(submit, opener, 'button')).toBe(false);
|
||||||
|
expect((await navClick(submit, true)).clicked).toBe(false);
|
||||||
|
expect(await safeClick(submit, opener)).toBe(false);
|
||||||
|
expect(await clicks(page)).toEqual([]);
|
||||||
|
await page.close();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
test('an agreement answer that says yes is still never ticked', async () => {
|
||||||
|
const page = await open('play-create-app.html');
|
||||||
|
const yes = ans().map(a => (a.agreement ? { ...a, value: true, certain: true } : a));
|
||||||
|
const s = await fillPage(page, def(), yes);
|
||||||
|
expect(s.highlighted.sort()).toEqual(['agree:exportLaws', 'agree:policies']);
|
||||||
|
expect(await agreed(page)).toBe(0);
|
||||||
|
expect(await clicks(page)).toEqual([]);
|
||||||
|
await page.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a renamed field: partial fill, the missing one left to the owner; nothing ticked or submitted', async () => {
|
||||||
|
const page = await open('play-create-app-renamed.html');
|
||||||
|
expect((await fillPage(page, def(), ans())).fallback).toBe(true); // first rounds: wait (the page may be loading)
|
||||||
|
const s = await fillPage(page, def(), ans(), new Set(), true);
|
||||||
|
expect(s.fallback).toBe(false);
|
||||||
|
expect(s.missing).toEqual(['language']);
|
||||||
|
expect(s.filled.sort()).toEqual(['name', 'price', 'type']);
|
||||||
|
expect(s.highlighted).toContain('language');
|
||||||
|
expect(await agreed(page)).toBe(0);
|
||||||
|
expect(await clicks(page)).toEqual([]);
|
||||||
|
await page.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('the opener inside a dialog, or on a page that is not the app list, is refused', async () => {
|
||||||
|
const page = await open('blank.html');
|
||||||
|
await page.setContent('<h1>All apps</h1><div role="dialog" aria-label="x"><button type="button">Create app</button></div>');
|
||||||
|
expect((await navClick(page.getByRole('button', { name: 'Create app' }), true)).clicked).toBe(false);
|
||||||
|
await page.setContent('<h1>Dashboard</h1><button type="button">Create app</button>');
|
||||||
|
expect((await navClick(page.getByRole('button', { name: 'Create app' }), true)).clicked).toBe(false);
|
||||||
|
await page.setContent('<h1>All apps</h1><button type="button">Create app</button>');
|
||||||
|
expect(await createAppHere(page.getByRole('button', { name: 'Create app' }), 'Create app', 'button')).toBe(true);
|
||||||
|
await page.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('accounts: several and none picked -> stop and list; by play.developerAccount -> that one, remembered; by play.developerId -> directly', async () => {
|
||||||
|
const go = async (c: ShipConfig, file: string, said: string[], env: Record<string, string> = {}) => {
|
||||||
|
const page = await fresh();
|
||||||
|
const r = await openAcross(page, { form: 'play-app-record', config: c, say: m => { said.push(m); }, bases: pb('playn'), navMs: 1500, file, env });
|
||||||
|
return { r, page };
|
||||||
|
};
|
||||||
|
const file = tmpAccounts();
|
||||||
|
let said: string[] = [];
|
||||||
|
let { r, page } = await go(config, file, said);
|
||||||
|
expect(r.nav).toMatchObject({ ok: false, failed: 'the developer account', candidates: ['Studio One', 'Studio Two', 'Studio Three', 'Example Games Ltd', 'Studio Five'] });
|
||||||
|
expect(r.nav.why).toContain('set play.developerAccount');
|
||||||
|
expect(await navClicks(page)).toEqual([]);
|
||||||
|
expect(readAccounts(file).play).toEqual({});
|
||||||
|
await page.close();
|
||||||
|
|
||||||
|
({ r, page } = await go({ ...config, play: { ...config.play!, developerAccount: 'example games ltd' } } as ShipConfig, file, said = []));
|
||||||
|
expect(r.nav.ok).toBe(true);
|
||||||
|
expect(said).toContain('creating the app in developer account "Example Games Ltd" (play.developerAccount)');
|
||||||
|
expect(new URL(page.url()).pathname).toBe('/play-create-app.html');
|
||||||
|
expect(await navClicks(page)).toEqual(['Create app']);
|
||||||
|
expect(readAccounts(file).play['com.example.game']).toMatchObject({ developerId: '4444', account: 'Example Games Ltd' });
|
||||||
|
await page.close();
|
||||||
|
|
||||||
|
({ r, page } = await go({ ...config, play: { ...config.play!, developerAccount: 'Nope Studio' } } as ShipConfig, tmpAccounts(), said = []));
|
||||||
|
expect(r.nav).toMatchObject({ ok: false, failed: 'the developer account' });
|
||||||
|
expect(r.nav.why).toContain('no developer account named "Nope Studio"');
|
||||||
|
await page.close();
|
||||||
|
|
||||||
|
// remembered for this package: straight to that account, no chooser
|
||||||
|
({ r, page } = await go(config, file, said = []));
|
||||||
|
expect(r.nav.ok).toBe(true);
|
||||||
|
expect(said.some(m => m.startsWith('creating the app in developer account 4444 (remembered'))).toBe(true);
|
||||||
|
await page.close();
|
||||||
|
|
||||||
|
// the workspace account's developerId (env)
|
||||||
|
({ r, page } = await go(config, tmpAccounts(), said = [], { STOREBOUND_PLAY_DEVELOPER_ID: '2222' }));
|
||||||
|
expect(r.nav.ok).toBe(true);
|
||||||
|
expect(said).toContain('creating the app in developer account 2222 (play.developerId)');
|
||||||
|
expect(said).toContain('opening the form, step 1/3: open the app list of the developer account');
|
||||||
|
await page.close();
|
||||||
|
}, 60_000);
|
||||||
|
|
||||||
|
test('fillSession: notes logged, form filled, the run ends without any submit', async () => {
|
||||||
|
const b = await consoleBrowser(u => (u.hostname !== 'play.google.com' ? null : u.pathname === '/console' || u.pathname.endsWith('/app-list') ? 'play-home.html' : u.pathname === '/play-create-app.html' ? 'play-create-app.html' : null));
|
||||||
|
const said: string[] = [];
|
||||||
|
const c = { ...config, play: { ...config.play!, developerId: '4444' } } as ShipConfig;
|
||||||
|
const done = fillSession(b, { form: 'play-app-record', config: c, ...fast(said) });
|
||||||
|
await until('the Create app form filled', () => said.some(m => /^Create app: filled 4, check 2/.test(m)), 20_000, said);
|
||||||
|
expect(said.some(m => m.includes('first AAB upload'))).toBe(true);
|
||||||
|
expect(said.some(m => m.includes('never become paid'))).toBe(true);
|
||||||
|
await until('the final line', () => said.some(m => m.includes('press Create app yourself')), 5_000, said);
|
||||||
|
expect(await clicks(b.page)).toEqual([]);
|
||||||
|
await b.context.close();
|
||||||
|
expect((await done).filled).toBe(4);
|
||||||
|
}, 40_000);
|
||||||
|
});
|
||||||
|
|
|
||||||
21
tests/fixtures/console/play-create-app-renamed.html
vendored
Normal file
21
tests/fixtures/console/play-create-app-renamed.html
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- MODELED, not recorded: the Play Create app form with the Default language field renamed (a UI change): storebound
|
||||||
|
fills the fields it finds and leaves the renamed one to the owner. Otherwise as play-create-app.html. Placeholder
|
||||||
|
data only. -->
|
||||||
|
<html lang="en"><head><meta charset="utf-8"><title>Create app - Play Console</title><script src="/_common.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>Create app</h1>
|
||||||
|
<form onsubmit="return false">
|
||||||
|
<p><label>App name <input type="text" maxlength="30"></label></p>
|
||||||
|
<p><label>Store language <select><option value="">Choose a language</option><option>English (United States) – en-US</option></select></label></p>
|
||||||
|
<fieldset><legend>App or game</legend>
|
||||||
|
<label><input type="radio" name="type"> App</label> <label><input type="radio" name="type"> Game</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>Free or paid</legend>
|
||||||
|
<label><input type="radio" name="price"> Free</label> <label><input type="radio" name="price"> Paid</label>
|
||||||
|
</fieldset>
|
||||||
|
<label><input type="checkbox"> Confirm app meets the Developer Program Policies</label>
|
||||||
|
<label><input type="checkbox"> Accept US export laws</label>
|
||||||
|
<button type="button">Cancel</button> <button type="submit">Create app</button>
|
||||||
|
</form>
|
||||||
|
</body></html>
|
||||||
26
tests/fixtures/console/play-create-app-tr.html
vendored
Normal file
26
tests/fixtures/console/play-create-app-tr.html
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- MODELED, not recorded: Play Console > Uygulama oluştur (the Create app form in Turkish). The declarations are
|
||||||
|
agreements storebound never ticks; the final "Uygulama oluştur" is the owner's click. Placeholder data only. -->
|
||||||
|
<html lang="tr"><head><meta charset="utf-8"><title>Uygulama oluştur - Play Console</title><script src="/_common.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>Uygulama oluştur</h1>
|
||||||
|
<form onsubmit="return false">
|
||||||
|
<h2>Uygulama ayrıntıları</h2>
|
||||||
|
<p><label>Uygulama adı <input type="text" maxlength="30"></label></p>
|
||||||
|
<p><label>Varsayılan dil <select><option value="">Dil seçin</option><option>İngilizce (Birleşik Krallık) – en-GB</option><option>İngilizce (ABD) – en-US</option><option>Türkçe – tr-TR</option></select></label></p>
|
||||||
|
<fieldset><legend>Uygulama veya oyun</legend>
|
||||||
|
<label><input type="radio" name="type"> Uygulama</label> <label><input type="radio" name="type"> Oyun</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>Ücretsiz veya ücretli</legend>
|
||||||
|
<label><input type="radio" name="price"> Ücretsiz</label> <label><input type="radio" name="price"> Ücretli</label>
|
||||||
|
</fieldset>
|
||||||
|
<h2>Beyanlar</h2>
|
||||||
|
<fieldset><legend>Geliştirici Programı Politikaları</legend>
|
||||||
|
<label><input type="checkbox"> Uygulamanın Geliştirici Programı Politikalarına uygun olduğunu onaylayın</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>ABD ihracat yasaları</legend>
|
||||||
|
<label><input type="checkbox"> ABD ihracat yasalarını kabul edin</label>
|
||||||
|
</fieldset>
|
||||||
|
<button type="button">İptal</button> <button type="submit">Uygulama oluştur</button>
|
||||||
|
</form>
|
||||||
|
</body></html>
|
||||||
28
tests/fixtures/console/play-create-app.html
vendored
Normal file
28
tests/fixtures/console/play-create-app.html
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- MODELED, not recorded: Play Console > Create app (App details: App name, Default language; App or game; Free or
|
||||||
|
paid; Declarations: Developer Program Policies, US export laws), written from Google's public help "Create and set
|
||||||
|
up your app". The declarations are agreements storebound never ticks; the final "Create app" is the owner's click.
|
||||||
|
Placeholder data only. -->
|
||||||
|
<html lang="en"><head><meta charset="utf-8"><title>Create app - Play Console</title><script src="/_common.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>Create app</h1>
|
||||||
|
<form onsubmit="return false">
|
||||||
|
<h2>App details</h2>
|
||||||
|
<p><label>App name <input type="text" maxlength="30"></label></p>
|
||||||
|
<p><label>Default language <select><option value="">Choose a language</option><option>English (United Kingdom) – en-GB</option><option>English (United States) – en-US</option><option>Turkish – tr-TR</option></select></label></p>
|
||||||
|
<fieldset><legend>App or game</legend>
|
||||||
|
<label><input type="radio" name="type"> App</label> <label><input type="radio" name="type"> Game</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>Free or paid</legend>
|
||||||
|
<label><input type="radio" name="price"> Free</label> <label><input type="radio" name="price"> Paid</label>
|
||||||
|
</fieldset>
|
||||||
|
<h2>Declarations</h2>
|
||||||
|
<fieldset><legend>Developer Program Policies</legend>
|
||||||
|
<label><input type="checkbox"> Confirm app meets the Developer Program Policies</label>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>US export laws</legend>
|
||||||
|
<label><input type="checkbox"> Accept US export laws</label>
|
||||||
|
</fieldset>
|
||||||
|
<button type="button">Cancel</button> <button type="submit">Create app</button>
|
||||||
|
</form>
|
||||||
|
</body></html>
|
||||||
13
tests/fixtures/console/play-home-tr.html
vendored
Normal file
13
tests/fixtures/console/play-home-tr.html
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- MODELED, not recorded: Play Console > Ana sayfa (Tüm uygulamalar) in Turkish, with the page-level "Uygulama
|
||||||
|
oluştur" button that opens the Create app form. Placeholder data only. -->
|
||||||
|
<html lang="tr"><head><meta charset="utf-8"><title>Tüm uygulamalar - Play Console</title><script src="/_common.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>Tüm uygulamalar</h1>
|
||||||
|
<label>Uygulama ara <input type="search"></label>
|
||||||
|
<button type="button" onclick="location.href='/play-create-app-tr.html'">Uygulama oluştur</button>
|
||||||
|
<table>
|
||||||
|
<tr><th>Uygulama</th><th>Paket</th></tr>
|
||||||
|
<tr><td><a href="/play-dashboard.html">Other App</a></td><td>com.example.other</td></tr>
|
||||||
|
</table>
|
||||||
|
</body></html>
|
||||||
14
tests/fixtures/console/play-home.html
vendored
Normal file
14
tests/fixtures/console/play-home.html
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!doctype html>
|
||||||
|
<!-- MODELED, not recorded: Play Console > Home (All apps) with the page-level "Create app" button that OPENS the
|
||||||
|
Create app form (written from Google's public help "Create and set up your app"). The same words are the form's
|
||||||
|
final submit button, which storebound must never click. Placeholder data only. -->
|
||||||
|
<html lang="en"><head><meta charset="utf-8"><title>All apps - Play Console</title><script src="/_common.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>All apps</h1>
|
||||||
|
<label>Search apps <input type="search"></label>
|
||||||
|
<button type="button" onclick="location.href='/play-create-app.html'">Create app</button>
|
||||||
|
<table>
|
||||||
|
<tr><th>App</th><th>Package</th></tr>
|
||||||
|
<tr><td><a href="/play-dashboard.html">Other App</a></td><td>com.example.other</td></tr>
|
||||||
|
</table>
|
||||||
|
</body></html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue