appstore-precheck 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/README.md +41 -14
- package/package.json +3 -2
- package/skills/appstore-precheck/SKILL.md +13 -9
- package/skills/appstore-precheck/references/methodology.md +2 -1
- package/skills/appstore-precheck/scripts/findings.sh +1 -0
- package/skills/appstore-precheck/scripts/scan.sh +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,49 @@
|
|
|
3
3
|
All notable changes to this project are documented here. Versioning follows
|
|
4
4
|
[SemVer](https://semver.org/). Released as git tags.
|
|
5
5
|
|
|
6
|
+
## [1.17.0] - 2026-08-28
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- **§53 `subscription-eula-metadata` (3.1.2)**: new IAP-gated scan vector requiring a functional
|
|
10
|
+
Terms of Use (EULA) URL in every locale's App Store `description.txt`. Apple's automated
|
|
11
|
+
metadata review rejects auto-renewable-subscription submissions whose app metadata has no
|
|
12
|
+
EULA link (standard Apple EULA linked in the description, or a custom EULA set in App Store
|
|
13
|
+
Connect); the description link is the checkable signal, so its absence in any locale is a
|
|
14
|
+
FAIL, and a missing fastlane metadata dir downgrades to a verify-manually WARN. Caught in the
|
|
15
|
+
wild: a live rejection ("does not include a functional link to the Terms of Use (EULA) in the
|
|
16
|
+
app metadata") passed every existing check — §10 covers the in-app paywall links, but nothing
|
|
17
|
+
covered the store description. Catalog, findings slug, methodology table, SKILL.md/README
|
|
18
|
+
counts (52 → 53), and tests updated.
|
|
19
|
+
|
|
20
|
+
## [1.16.0] - 2026-08-07
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- **Grok Build support**: native [`.grok-plugin/`](.grok-plugin/) marketplace + plugin manifests so
|
|
24
|
+
users can install with `grok plugin marketplace add berkayturk/appstore-precheck` and
|
|
25
|
+
`grok plugin install appstore-precheck --trust` (or a direct path/GitHub install). The same
|
|
26
|
+
`SKILL.md` and upload-guard hook work; Grok sets `GROK_PLUGIN_ROOT` and the `CLAUDE_PLUGIN_ROOT`
|
|
27
|
+
alias used by `hooks/hooks.json`. The marketplace entry uses a URL source (Grok rejects a
|
|
28
|
+
self-referential local source), so that flow installs GitHub `main`; install a path directly to
|
|
29
|
+
test a local clone.
|
|
30
|
+
- **`install.sh grok`**: vendors the skill into `.grok/skills/` (project or user scope). The
|
|
31
|
+
default `all` target now also populates `.grok/skills/` alongside `.claude/skills/` and
|
|
32
|
+
`.agents/skills/`.
|
|
33
|
+
- Docs, badge, AGENTS.md, version lockstep (`check-versions`), and install tests updated for the
|
|
34
|
+
fifth host.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- **Upload guard no longer fails open on Grok Build (or Cursor)**: `hooks/fastlane-guard.sh` read
|
|
38
|
+
only Claude Code's snake_case `.tool_input.command`, while Grok sends the same event camelCased
|
|
39
|
+
as `.toolInput.command` and Cursor's shell event carries `.command` at the top level. The command
|
|
40
|
+
came back empty and every `fastlane deliver/pilot/release` was allowed. Every plugin manifest
|
|
41
|
+
wires this hook, so the guard now reads all three envelopes, and `tests/test-guard.sh` covers
|
|
42
|
+
each.
|
|
43
|
+
- **Block reason reaches the model on every host**: the guard now also writes the deny as stdout
|
|
44
|
+
JSON (`decision: "deny"` plus Claude Code's `hookSpecificOutput.permissionDecision`) alongside
|
|
45
|
+
the stderr message. Grok honours a stdout deny for `PreToolUse` and documents stderr feedback
|
|
46
|
+
only for `Stop`/`SubagentStop`, so Pierre's reason could previously be dropped there. Exit 2 is
|
|
47
|
+
still the authority.
|
|
48
|
+
|
|
6
49
|
## [1.15.0] - 2026-08-04
|
|
7
50
|
|
|
8
51
|
### Added
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License: MIT"></a>
|
|
8
8
|
<img src="https://img.shields.io/badge/platform-iOS-lightgrey.svg" alt="Platform: iOS">
|
|
9
9
|
<img src="https://img.shields.io/badge/Agent%20Skill-open%20standard-1F6FEB.svg" alt="Agent Skill">
|
|
10
|
-
<img src="https://img.shields.io/badge/works%20with-Claude%20Code%20·%20Codex%20·%20Cursor%20·%20Gemini-2563EB.svg" alt="Works with Claude Code, Codex, Cursor, Gemini">
|
|
10
|
+
<img src="https://img.shields.io/badge/works%20with-Claude%20Code%20·%20Codex%20·%20Cursor%20·%20Gemini%20·%20Grok%20Build-2563EB.svg" alt="Works with Claude Code, Codex, Cursor, Gemini, Grok Build">
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
<p align="center"><strong>Catch App Store rejections before a reviewer does.</strong></p>
|
|
@@ -28,8 +28,8 @@ incentivized review, push/HomeKit abuse, rating manipulation).
|
|
|
28
28
|
It hands you a single **GREEN / YELLOW / RED** verdict. It never edits your code.
|
|
29
29
|
|
|
30
30
|
It ships as a portable [Agent Skill](https://agentskills.io): the same `SKILL.md` runs natively in
|
|
31
|
-
Claude Code, OpenAI Codex, Cursor, and
|
|
32
|
-
by hand or wire it into CI.
|
|
31
|
+
Claude Code, OpenAI Codex, Cursor, Gemini CLI, and Grok Build. The scanner is plain Bash, so you can
|
|
32
|
+
also run it by hand or wire it into CI.
|
|
33
33
|
|
|
34
34
|
## Meet Pierre
|
|
35
35
|
|
|
@@ -50,7 +50,7 @@ each, divided by horizontal rules), not one compressed sentence. The breakdown b
|
|
|
50
50
|
|
|
51
51
|
## What it checks
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
53 rejection vectors across code, fastlane metadata, screenshots, `PrivacyInfo.xcprivacy`, and the paywall:
|
|
54
54
|
|
|
55
55
|
| Guideline | Check |
|
|
56
56
|
|-----------|-------|
|
|
@@ -165,14 +165,15 @@ how the app is built:
|
|
|
165
165
|
|
|
166
166
|
| App type | Coverage |
|
|
167
167
|
|----------|----------|
|
|
168
|
-
| 🟢 **Native Swift / SwiftUI** | **Full.** All
|
|
168
|
+
| 🟢 **Native Swift / SwiftUI** | **Full.** All 53 vectors apply. |
|
|
169
169
|
| 🟡 **React Native / Flutter** | Metadata, privacy manifest, screenshots, and export compliance apply in full. The native-source checks (ATT, paywall links, private API, SDK detection, navigation) **under-detect rather than misfire**: that logic lives in JS/Dart, so they stay quiet instead of blocking. |
|
|
170
170
|
|
|
171
171
|
## Quick start
|
|
172
172
|
|
|
173
|
-
One `SKILL.md`, every host. **Claude Code, Cursor, and
|
|
174
|
-
this GitHub repo. **Gemini CLI** installs the same skill with
|
|
175
|
-
marketplace yet). [`install.sh`](install.sh) remains the fallback
|
|
173
|
+
One `SKILL.md`, every host. **Claude Code, Cursor, Codex, and Grok Build** install as native
|
|
174
|
+
**plugins** from this GitHub repo. **Gemini CLI** installs the same skill with
|
|
175
|
+
`gemini skills install` (no plugin marketplace yet). [`install.sh`](install.sh) remains the fallback
|
|
176
|
+
for vendoring into a project.
|
|
176
177
|
|
|
177
178
|
### Install the full skill (Pierre + all phases)
|
|
178
179
|
|
|
@@ -181,6 +182,7 @@ marketplace yet). [`install.sh`](install.sh) remains the fallback for vendoring
|
|
|
181
182
|
| **Claude Code** | Plugin (recommended) |
|
|
182
183
|
| **Cursor** | Plugin (recommended) |
|
|
183
184
|
| **OpenAI Codex** | Plugin (recommended) |
|
|
185
|
+
| **Grok Build** | Plugin (recommended) |
|
|
184
186
|
| **Gemini CLI** | `gemini skills install` one-liner |
|
|
185
187
|
|
|
186
188
|
**Claude Code:**
|
|
@@ -220,6 +222,25 @@ Refresh after repo updates:
|
|
|
220
222
|
codex plugin marketplace upgrade appstore-precheck
|
|
221
223
|
```
|
|
222
224
|
|
|
225
|
+
**Grok Build:**
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
grok plugin marketplace add berkayturk/appstore-precheck
|
|
229
|
+
grok plugin install appstore-precheck --trust
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
The marketplace entry points at this repo by URL, so that flow always installs GitHub `main`. To
|
|
233
|
+
install a local clone or an unmerged branch, install the path directly:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
grok plugin install /path/to/appstore-precheck --trust
|
|
237
|
+
# or: grok plugin install berkayturk/appstore-precheck --trust
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
After install, enable the plugin if needed (`grok plugin enable appstore-precheck` or press `Space`
|
|
241
|
+
in the Plugins tab). Skills appear as `/appstore-precheck`. Verify with `grok inspect` or
|
|
242
|
+
`grok plugin details appstore-precheck`.
|
|
243
|
+
|
|
223
244
|
**Gemini CLI** (native skill install — no plugin marketplace):
|
|
224
245
|
|
|
225
246
|
```bash
|
|
@@ -229,15 +250,17 @@ gemini skills install https://github.com/berkayturk/appstore-precheck.git \
|
|
|
229
250
|
|
|
230
251
|
Use `--scope user` for a global install. Verify with `gemini skills list`.
|
|
231
252
|
|
|
232
|
-
**Fallback — `install.sh`** (vendors the skill into `.claude/skills
|
|
253
|
+
**Fallback — `install.sh`** (vendors the skill into `.claude/skills/`, `.agents/skills/`, and/or
|
|
254
|
+
`.grok/skills/`):
|
|
233
255
|
|
|
234
256
|
```bash
|
|
235
257
|
git clone https://github.com/berkayturk/appstore-precheck.git
|
|
236
258
|
cd your-ios-app
|
|
237
|
-
/path/to/appstore-precheck/install.sh # all hosts → .claude
|
|
259
|
+
/path/to/appstore-precheck/install.sh # all hosts → .claude + .agents + .grok skills
|
|
238
260
|
/path/to/appstore-precheck/install.sh cursor # Cursor only
|
|
239
261
|
/path/to/appstore-precheck/install.sh codex # Codex only
|
|
240
262
|
/path/to/appstore-precheck/install.sh gemini # Gemini only
|
|
263
|
+
/path/to/appstore-precheck/install.sh grok # Grok Build only → ./.grok/skills
|
|
241
264
|
/path/to/appstore-precheck/install.sh claude user # Claude Code user-wide → ~/.claude/skills
|
|
242
265
|
```
|
|
243
266
|
|
|
@@ -330,7 +353,7 @@ nothing is auto-fixed.
|
|
|
330
353
|
| Phase | Step |
|
|
331
354
|
|-------|------|
|
|
332
355
|
| **0** | **Guideline drift**: diff the live App Store Review Guidelines against a tracked baseline. Never blocks. |
|
|
333
|
-
| **1** | **Static scan**: `scan.sh` over the
|
|
356
|
+
| **1** | **Static scan**: `scan.sh` over the 53 vectors above. |
|
|
334
357
|
| **2** | **`fastlane precheck`**: Apple's own metadata rule engine. |
|
|
335
358
|
| **3** | **Pierre commentary**: explains **every** FAIL and WARN from Phases 0–2 in 2–3 sentences each. |
|
|
336
359
|
| **4** | **Pierre deep review**: 29 semantic checks (23 Tier A + 6 Tier B v1 heuristic), plus 5 screenshot-vision checks when screenshots are present. Advisory only. |
|
|
@@ -504,12 +527,13 @@ Hosts differ only in the directory they scan:
|
|
|
504
527
|
| OpenAI Codex | `.agents/skills/` · `~/.agents/skills/` |
|
|
505
528
|
| Cursor | `.agents/skills/`, `.cursor/skills/`, also `.claude/skills/` |
|
|
506
529
|
| Gemini CLI | `.agents/skills/`, `.gemini/skills/` |
|
|
530
|
+
| Grok Build | `.grok/skills/` · `~/.grok/skills/`, also `.agents/skills/` and `.claude/skills/` |
|
|
507
531
|
|
|
508
532
|
A root [`AGENTS.md`](AGENTS.md) covers hosts that read always-on context instead of on-demand skills.
|
|
509
533
|
[`docs/cross-tool-verification.md`](docs/cross-tool-verification.md) records real per-host runs
|
|
510
|
-
(
|
|
511
|
-
[`docs/field-tests.md`](docs/field-tests.md) records dogfooding the scanner against
|
|
512
|
-
App Store apps (DuckDuckGo, Pocket Casts, Wikipedia).
|
|
534
|
+
(Claude Code, Codex, Gemini, and Cursor verified end-to-end; Grok Build plugin install + validate
|
|
535
|
+
verified), and [`docs/field-tests.md`](docs/field-tests.md) records dogfooding the scanner against
|
|
536
|
+
real App Store apps (DuckDuckGo, Pocket Casts, Wikipedia).
|
|
513
537
|
|
|
514
538
|
## Requirements
|
|
515
539
|
|
|
@@ -552,9 +576,11 @@ Everything else works without one.
|
|
|
552
576
|
/plugin uninstall appstore-precheck@appstore-precheck # Claude Code plugin
|
|
553
577
|
# Codex: run `codex`, open `/plugins`, uninstall appstore-precheck (CLI 0.125.x has no `plugin remove`)
|
|
554
578
|
# Cursor: Customize → Plugins → appstore-precheck → Uninstall
|
|
579
|
+
grok plugin uninstall appstore-precheck --confirm # Grok Build plugin
|
|
555
580
|
gemini skills uninstall appstore-precheck # Gemini (if installed via gemini skills)
|
|
556
581
|
rm -rf .claude/skills/appstore-precheck # install.sh (Claude Code / Cursor)
|
|
557
582
|
rm -rf .agents/skills/appstore-precheck # install.sh (Codex / Cursor / Gemini)
|
|
583
|
+
rm -rf .grok/skills/appstore-precheck # install.sh (Grok Build)
|
|
558
584
|
rm -rf .cursor/skills/appstore-precheck # if you mirrored there manually
|
|
559
585
|
rm -rf .gemini/skills/appstore-precheck # if installed to workspace scope manually
|
|
560
586
|
rm -f .precheck-pass # runtime token
|
|
@@ -567,6 +593,7 @@ npm run lint # bash -n on every script
|
|
|
567
593
|
npm run check-versions # plugin manifests / package.json / SKILL.md in lockstep
|
|
568
594
|
npm test # run scan.sh against fixture projects and assert
|
|
569
595
|
claude plugin validate .
|
|
596
|
+
grok plugin validate .
|
|
570
597
|
```
|
|
571
598
|
|
|
572
599
|
CI runs ShellCheck, JSON validation, the version-consistency guard, and the fixture tests on every push.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appstore-precheck",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Read-only iOS App Store pre-submission check, packaged as a portable Agent Skill with native Claude Code, Cursor, and
|
|
3
|
+
"version": "1.17.0",
|
|
4
|
+
"description": "Read-only iOS App Store pre-submission check, packaged as a portable Agent Skill with native Claude Code, Cursor, Codex, and Grok Build plugins, plus an npx CLI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Berkay Turk (https://github.com/berkayturk)",
|
|
7
7
|
"homepage": "https://github.com/berkayturk/appstore-precheck",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"fastlane",
|
|
34
34
|
"agent-skill",
|
|
35
35
|
"claude-code",
|
|
36
|
+
"grok-build",
|
|
36
37
|
"precheck"
|
|
37
38
|
]
|
|
38
39
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: appstore-precheck
|
|
3
|
-
description: Read-only pre-submission check for an iOS app before App Store review. Scans Swift and Objective-C code, fastlane metadata, screenshots, PrivacyInfo.xcprivacy, and the paywall for
|
|
3
|
+
description: Read-only pre-submission check for an iOS app before App Store review. Scans Swift and Objective-C code, fastlane metadata, screenshots, PrivacyInfo.xcprivacy, and the paywall for 53 rejection vectors, wraps Apple's official `fastlane precheck`, watches for live App Store Review Guideline drift, has Pierre explain every FAIL and WARN, then runs 23 semantic deep-review checks (Tier A) plus 6 heuristic checks (Tier B v1) — 29 total. Emits a GREEN/YELLOW/RED verdict and a `.precheck-pass` token an upload guard can gate on. Use when preparing an iOS App Store submission (before Archive, before "Submit for Review", before TestFlight, or before any `fastlane deliver/pilot/release`), or when the user mentions App Store rejection, app review, or fastlane upload.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: Berkay Turk
|
|
7
|
-
version: 1.
|
|
7
|
+
version: 1.17.0
|
|
8
8
|
allowed-tools: Bash Read Grep Glob WebFetch mcp__maestro__list_devices mcp__maestro__run mcp__maestro__inspect_screen mcp__maestro__take_screenshot mcp__maestro__cheat_sheet
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -114,7 +114,7 @@ check(s). It is non-blocking and never runs in the offline user scan; the finger
|
|
|
114
114
|
|
|
115
115
|
Run the bundled scanner from the app repo root. `scripts/` here is relative to THIS skill's own
|
|
116
116
|
directory (wherever the skill is installed — a plugin dir, `.claude/skills/`, `.agents/skills/`,
|
|
117
|
-
or a clone of the source repo):
|
|
117
|
+
`.grok/skills/`, or a clone of the source repo):
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
120
|
bash <skill-dir>/scripts/scan.sh
|
|
@@ -122,7 +122,7 @@ bash <skill-dir>/scripts/scan.sh
|
|
|
122
122
|
bash skills/appstore-precheck/scripts/scan.sh
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
Emits `FAIL:` / `WARN:` / `PASS:` lines covering
|
|
125
|
+
Emits `FAIL:` / `WARN:` / `PASS:` lines covering 53 rejection vectors: Privacy Manifest /
|
|
126
126
|
Required Reason API parity (5.1.1), purpose strings (5.1.1), ATT (5.1.2), other-platform mentions
|
|
127
127
|
(2.3.10), metadata limits (2.3.1), localized parity (2.3.7), screenshots (2.3.3), trial &
|
|
128
128
|
auto-renew disclosures (3.1.2), Restore/Terms/Privacy links (3.1.2), private API (2.5.1), minimum
|
|
@@ -147,7 +147,7 @@ strings (5.1.1(ii)), a third-party AI endpoint without a provider-naming consent
|
|
|
147
147
|
urgency/scarcity dark patterns on the paywall (3.1.2), sentiment-gated rating prompts (5.6.1),
|
|
148
148
|
forced login without a guest path (5.1.1(v)), a marketing-push SDK without an opt-out signal
|
|
149
149
|
(4.5.4), and a pre-26 Xcode `LastUpgradeCheck` against the April 2026 iOS 26 SDK upload minimum
|
|
150
|
-
(2.1). The IAP checks (8–10) are skipped automatically
|
|
150
|
+
(2.1). The IAP checks (8–10 and 53) are skipped automatically
|
|
151
151
|
when no in-app-purchase signals are present, and the signal-gated advisory checks (16–52) stay
|
|
152
152
|
silent unless their triggering signal is found. The
|
|
153
153
|
full check table is in
|
|
@@ -378,7 +378,11 @@ Follow [`references/simulator-dynamic-review.md`](references/simulator-dynamic-r
|
|
|
378
378
|
## Optional: upload guard hook
|
|
379
379
|
|
|
380
380
|
`hooks/fastlane-guard.sh` blocks `fastlane deliver/pilot/release` unless a fresh `.precheck-pass`
|
|
381
|
-
token exists. In Claude Code it auto-wires via `hooks/hooks.json` **when installed
|
|
382
|
-
(the hook path uses `${CLAUDE_PLUGIN_ROOT}`;
|
|
383
|
-
|
|
384
|
-
|
|
381
|
+
token exists. In Claude Code and Grok Build it auto-wires via `hooks/hooks.json` **when installed
|
|
382
|
+
as a plugin** (the hook path uses `${CLAUDE_PLUGIN_ROOT}`; Grok also sets that alias alongside
|
|
383
|
+
`${GROK_PLUGIN_ROOT}`, and maps a `Bash` matcher onto `run_terminal_command`). The guard reads
|
|
384
|
+
the snake_case (`.tool_input`), camelCase (`.toolInput`), and top-level (`.command`, Cursor)
|
|
385
|
+
tool-use envelopes, and reports a block on both stderr and stdout, so it blocks on every host that
|
|
386
|
+
wires it. An `install.sh`-vendored copy gets no automatic hook. In other
|
|
387
|
+
environments, wire it as a pre-command check yourself, or treat the token as a manual go/no-go
|
|
388
|
+
signal.
|
|
@@ -122,9 +122,10 @@ baseline the same deliberate way, with `guideline-drift.sh --reconcile`.
|
|
|
122
122
|
| 50 | **5.1.1(v) Forced login** *(advisory)* | A credential login UI (SecureField / Login view) with no skip / guest / continue-without-account affordance grepped anywhere — requiring login for features that are not account-based is rejected under 5.1.1(v). WARN-verify: an app whose every feature is genuinely account-based is fine |
|
|
123
123
|
| 51 | **4.5.4 Marketing push opt-out** *(advisory)* | A marketing-push SDK (OneSignal, Braze, CleverTap, Iterable, Airship, MoEngage) registers for notifications but no notification-preferences / opt-out signal is found; promotional push requires explicit consent and a working opt-out (4.5.4) |
|
|
124
124
|
| 52 | **2.1 Xcode/SDK minimum** *(advisory)* | The highest `LastUpgradeCheck` across checked-in pbxproj files is clearly pre-26 — since April 2026, App Store uploads must be built with the iOS 26 SDK (Xcode 26) or they are auto-rejected at upload. WARN-verify: the field tracks the upgrade-check, not the actual build toolchain |
|
|
125
|
+
| 53 | **3.1.2 EULA link in metadata** *(IAP-gated)* | Every locale’s App Store `description.txt` contains a functional Terms of Use (EULA) URL — auto-renewable-subscription apps are rejected without one in the app metadata (a custom EULA set in App Store Connect also satisfies Apple, but the description link is the checkable signal) |
|
|
125
126
|
|
|
126
127
|
Vectors 8–10 only run when in-app-purchase signals are detected (StoreKit / RevenueCat import,
|
|
127
|
-
or a paywall view). Otherwise the scanner emits a single PASS and skips them. Vectors 16–52 are
|
|
128
|
+
or a paywall view). Otherwise the scanner emits a single PASS and skips them. Vectors 16–52 (plus the IAP-gated 53) are
|
|
128
129
|
signal-gated advisory WARNs: each emits nothing unless its triggering signal is present.
|
|
129
130
|
|
|
130
131
|
### Screenshot format + dimensions (§7b, 2.3.3)
|
|
@@ -32,6 +32,7 @@ rule_slug() {
|
|
|
32
32
|
47) echo ai-provider-consent ;; 48) echo paywall-urgency ;;
|
|
33
33
|
49) echo rating-sentiment-gate ;; 50) echo forced-login ;;
|
|
34
34
|
51) echo push-marketing-optout ;; 52) echo xcode-sdk-requirement ;;
|
|
35
|
+
53) echo subscription-eula-metadata ;;
|
|
35
36
|
*) echo "" ;;
|
|
36
37
|
esac
|
|
37
38
|
}
|
|
@@ -537,6 +537,30 @@ else
|
|
|
537
537
|
else
|
|
538
538
|
warn "3.1.2 IAP detected but no paywall/subscription view found — set .paywallGlobs so required-link checks can run"
|
|
539
539
|
fi
|
|
540
|
+
|
|
541
|
+
# ---- §53 3.1.2 Terms of Use (EULA) link in the App Store description ----------
|
|
542
|
+
# (IAP-gated, lives with §10.) Apple rejects auto-renewable-subscription
|
|
543
|
+
# submissions whose app metadata (the App Store description) has no functional
|
|
544
|
+
# Terms of Use (EULA) link. Standard Apple EULA: link it in the description;
|
|
545
|
+
# a custom EULA set in App Store Connect also satisfies Apple, but the
|
|
546
|
+
# description link is the checkable signal.
|
|
547
|
+
set_rule "subscription-eula-metadata"
|
|
548
|
+
if [[ -n "$META_DIR" && -d "$META_DIR" ]]; then
|
|
549
|
+
eula_url_re='apple\.com/legal/internet-services/itunes/dev/stdeula|https?://[^[:space:]]*(terms|eula|tos|conditions|nutzungsbedingungen)'
|
|
550
|
+
eula_missing=()
|
|
551
|
+
for loc in "${LOCALES[@]+"${LOCALES[@]}"}"; do
|
|
552
|
+
d="$META_DIR/$loc"
|
|
553
|
+
[[ -f "$d/description.txt" ]] || continue
|
|
554
|
+
grep -qiE "$eula_url_re" "$d/description.txt" || eula_missing+=("$loc")
|
|
555
|
+
done
|
|
556
|
+
if (( ${#eula_missing[@]} > 0 )); then
|
|
557
|
+
fail "3.1.2 Terms of Use (EULA) link missing from App Store description for: ${eula_missing[*]} — auto-renewable subscriptions require a functional EULA link in the app metadata (add it to description.txt, or set a custom EULA in App Store Connect)"
|
|
558
|
+
else
|
|
559
|
+
pass "3.1.2 Terms of Use (EULA) link present in every locale's App Store description"
|
|
560
|
+
fi
|
|
561
|
+
else
|
|
562
|
+
warn "3.1.2 EULA-in-metadata check skipped — no fastlane metadata dir detected; verify the App Store description contains a functional Terms of Use (EULA) link"
|
|
563
|
+
fi
|
|
540
564
|
fi
|
|
541
565
|
|
|
542
566
|
# ===================================================================
|