app: point the privacy link at the hosted policy, guard the release

- kPrivacyPolicyUrl now holds the public Gitea raw URL (HTTP 200, full policy,
  title "Datenschutzerklaerung - Iron Arc", contact privacy@softwareapp-hb.de).
  Gitea serves it as text/plain, so a browser shows the markup; a real page is
  still recommended and documented in docs/status/blocked.md 3b.
- verified on device: the tile triggers ACTION_VIEW for exactly this URL and
  Chrome opens it.
- release guard rewritten to extract the URL itself and fail on an empty or
  placeholder value (the previous version matched its own marker constant).
- docs: compliance row set to done, listing gained the Play privacy field,
  blocked.md documents the host upgrade plus the consequence that the repo has
  to stay public while the policy is served from it.
- release 0.8.1 (11).
This commit is contained in:
2026-10-25 03:41:14 +01:00
parent 2ed3ee0ea1
commit 9732a7e453
8 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ Alle nennenswerten Änderungen an diesem Projekt. Format nach
- (app) Top-Level-`Stopwatch` startete erst beim ersten Zugriff (Dart initialisiert Top-Level-Finals lazy) - das Bootlog zeigte 0 ms
### Changed
- (build) Version 0.8.0 (10): neuer Ingame-Renderer, generierte Marken-Art, Splash-Kette; signiertes App Bundle mit Upload-Keystore
- (build) Version 0.8.1 (11): Datenschutz-URL gesetzt (Gitea-Raw, HTTP 200), sonst identisch zu 0.8.0; signiertes App Bundle mit Upload-Keystore
### Added
- (app) Datenschutzerklärung im Einstellungen-Sheet (öffnet die Webseite über `url_launcher`),
+11 -8
View File
@@ -1,11 +1,14 @@
/// External links. Single source of truth: the settings sheet, the store
/// listing and the compliance docs all quote these strings.
///
/// The privacy policy URL must stay publicly reachable without login - Play
/// rejects listings that point at a gated page, and AdMob shows it inside the
/// consent form. `tools/build_release.sh` refuses to build while the
/// placeholder below is still in place.
const String kPrivacyPolicyUrl = 'https://example.invalid/iron-arc/privacy';
/// Placeholder marker used by the release guard.
const String kPrivacyPolicyPlaceholder = 'example.invalid';
/// NOTE: this is the raw file from the public Gitea repo. Gitea serves it as
/// `text/plain`, so a browser shows the HTML source instead of rendering it.
/// It is reachable and contains the full policy, but a real page
/// (e.g. https://softwareapp-hb.de/iron-arc/privacy) is strongly preferred for
/// the store listing. Moving it means: upload store/privacy-policy.html as
/// index.html to that path, change this one line, rebuild.
///
/// Because the policy now lives in the repository, the repository has to stay
/// public - see docs/status/blocked.md.
const String kPrivacyPolicyUrl =
'https://gitea.softwareapp-hb.de/fishfacegit/iron-arc/raw/branch/main/store/privacy-policy.html';
+1 -1
View File
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.8.0+10
version: 0.8.1+11
environment:
sdk: ^3.13.4
Binary file not shown.
+1 -1
View File
@@ -43,7 +43,7 @@ Legende: `[ ]` offen · `[x]` erledigt · `[~]` teilweise/geplant mit Owner
| `[x]` | Enthält Werbung | **Ja** – AdMob SDK im Release-APK, App ID verifiziert |
| `[ ]` | Zielgruppe | **13+**, **nicht** am Families-Programm teilnehmen |
| `[ ]` | Altersfreigabe (IARC) | Erwartung: USK 12 / PEGI 12 (kompetitive Gewalt, keine realistischen Darstellungen, keine Sprache) |
| `[~]` | Datenschutzerklärung | Text fertig: [privacy-policy.md](privacy-policy.md) + `store/privacy-policy.html`. In-App-Einstieg ist **implementiert** (Zahnrad → „Datenschutzerklärung“, `url_launcher`, auf Gerät verifiziert); es fehlt nur die öffentliche URL in `app/lib/src/ui/links.dart`. `tools/build_release.sh` bricht ab, solange dort der Platzhalter steht. Deckt: Geräte-ID, Match-/Replay-Daten, AdMob (Werbe-ID, IP, Geräteinformationen), ungefährer Standort aus IP. **Keine** Analytics-, Crash- oder Firebase-SDKs im Build |
| `[x]` | Datenschutzerklärung | URL gesetzt: `store/privacy-policy.html` im öffentlichen Gitea-Repo (Rohdatei, HTTP 200, `text/plain` – funktioniert, aber unschön; besserer Host in [status/blocked.md](status/blocked.md) §3b). In-App-Einstieg implementiert und auf Gerät verifiziert (Zahnrad → „Datenschutzerklärung“, `url_launcher`), Release-Guard gegen Platzhalter. Deckt: Geräte-ID, Match-/Replay-Daten, AdMob (Werbe-ID, IP, Geräteinformationen), ungefährer Standort aus IP. **Keine** Analytics-, Crash- oder Firebase-SDKs im Build |
| `[~]` | Data-Safety-Formular | Angaben aus [privacy-policy.md](privacy-policy.md) übernehmen: Geräte-IDs (App-Funktion), ungefährer Standort aus IP + Werbe-ID (durch AdMob, Weitergabe an Google), **keine** Crash-Logs, **keine** Käufe (bis M7c) |
| `[ ]` | Account-Löschung | In-App **und** Web-URL, da Accounts existieren (Firebase/Leaderboard) |
| `[ ]` | Nachrichten-App? | Nein |
+11 -1
View File
@@ -29,6 +29,16 @@ der öffentliche HTTPS-Abruf. Varianten: Gitea-Pages, GitHub Pages, eigener Webs
| IARC-Fragebogen | Antworten stehen in `docs/compliance-play-store.md` §6 |
| Zielgruppe | 13+ (keine Kinder-Kategorie) |
## 3b. Datenschutz-URL richtig hosten (empfohlen)
Aktuell zeigt `app/lib/src/ui/links.dart` auf die Rohdatei im Gitea-Repo. Die liefert
`content-type: text/plain`, der Browser zeigt also HTML-Quelltext statt einer Seite. Für Play
und AdMob funktioniert das, wirkt im Review aber unsauber.
1. `store/privacy-policy.html` als `index.html` unter `https://softwareapp-hb.de/iron-arc/privacy/` ablegen.
2. Prüfen: `curl -sI <url> | grep -i content-type` → muss `text/html` sein.
3. Die eine Zeile in `app/lib/src/ui/links.dart` ändern, neu bauen, fertig.
## 4. Echte AdMob-Unit-IDs
Aktuell Test-IDs (liefern immer Testanzeigen). Sobald die echten IDs da sind, trage ich sie in
@@ -39,4 +49,4 @@ Aktuell Test-IDs (liefern immer Testanzeigen). Sobald die echten IDs da sind, tr
| Thema | Auswirkung | Aktueller Default |
|---|---|---|
| Lizenz | `LICENSE`, OSS-Fähigkeit | proprietär (keine Datei) |
| Repo-Sichtbarkeit | Quellcode öffentlich einsehbar | öffentlich auf Gitea |
| Repo-Sichtbarkeit | **muss öffentlich bleiben**: die Datenschutzerklärung wird von dort ausgeliefert | öffentlich auf Gitea |
+3 -2
View File
@@ -64,9 +64,10 @@ from Baby Shell to Digger. Drag, aim, release - and watch the hill under your op
| Asset | Status | Datei |
|---|---|---|
| Icon 512×512 | ✅ Platzhalter | `store/assets/icon_512.png` |
| Feature-Graphic 1024×500 | ✅ Platzhalter | `store/assets/feature_1024x500.png` |
| Icon 512×512 | ✅ generiert (`tools/art/artgen.py`) | `store/assets/icon_512.png` |
| Feature-Graphic 1024×500 | ✅ generiert (`tools/art/artgen.py`) | `store/assets/feature_1024x500.png` |
| Screenshots (min. 4) | ✅ echte Geräteaufnahmen | `store/screenshots/01..04` (1080×2400) |
| Datenschutz-URL (Play-Feld) | ✅ gesetzt | https://gitea.softwareapp-hb.de/fishfacegit/iron-arc/raw/branch/main/store/privacy-policy.html |
| Promo-Video 30 s | ❌ offen (Aufnahme auf Gerät nötig) | – |
| Tablet-Screenshots (7", 10") | ❌ offen | – |
+5 -3
View File
@@ -32,12 +32,14 @@ done
echo "symbols: $(stat -c%s build/native-debug-symbols.zip) bytes"
echo '==> Release guards'
if grep -q 'example.invalid' app/lib/src/ui/links.dart; then
echo 'ERROR: privacy policy URL is still the placeholder (app/lib/src/ui/links.dart).' >&2
policy_url=$(grep -A1 'const String kPrivacyPolicyUrl' app/lib/src/ui/links.dart \
| grep -oE "https://[^']+" | head -1)
if [ -z "$policy_url" ] || printf '%s' "$policy_url" | grep -q 'example.invalid'; then
echo 'ERROR: privacy policy URL is missing or still the placeholder (app/lib/src/ui/links.dart).' >&2
echo ' Play rejects a listing whose privacy policy is not reachable.' >&2
exit 1
fi
echo "OK: privacy policy -> $(grep -oE "https://[^']+" app/lib/src/ui/links.dart)"
echo "OK: privacy policy -> $policy_url"
echo '==> Flutter bundle (AAB)'
(cd app && flutter build appbundle --release)