From 9732a7e453a345ff15a7a9855ef484da5934ec04 Mon Sep 17 00:00:00 2001 From: Hadrian Burkhardt Date: Sun, 25 Oct 2026 03:41:14 +0100 Subject: [PATCH] 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). --- CHANGELOG.md | 2 +- app/lib/src/ui/links.dart | 19 +++++++++++-------- app/pubspec.yaml | 2 +- build/native-debug-symbols.zip | Bin 527231 -> 527231 bytes docs/compliance-play-store.md | 2 +- docs/status/blocked.md | 12 +++++++++++- store/listing.md | 5 +++-- tools/build_release.sh | 8 +++++--- 8 files changed, 33 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e26d88..7515ace 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`), diff --git a/app/lib/src/ui/links.dart b/app/lib/src/ui/links.dart index 0d687b2..65f445c 100644 --- a/app/lib/src/ui/links.dart +++ b/app/lib/src/ui/links.dart @@ -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'; diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 00cb544..685d25a 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -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 diff --git a/build/native-debug-symbols.zip b/build/native-debug-symbols.zip index 4c6641a09278f0c09deeb6eb0a7774e5d5c45aeb..c99a45c0957aa03d78180ff1e2ea332fcd8b790d 100644 GIT binary patch delta 228 zcmexAP2vAE1)czJW)?065V#{Vkw;PaK=$1%5H79YW?*D_!OXw_CP2zWfQmRk$^x|5 zAj%pWS{oQ!8<<)fn71~tL35vFJd}X-_v|0b*7lX4{@_#J=M? v$RtHB4t=Hr+0*}Wama%Bg24MXmsW5yFtWU0W?%plAY~#zRU8Zq5)%Wo z*dWRp8(JF}TN{{K8<@8?u;dytF-S~*Z^)udj49JijaYP`=Cr39u>dhE5VLJhH)7v$ w9b}Rs7l%I6{G{oBxj1A&{6a1c3n*Wl1Lo%Gr?@x_kyXiXb6A1+5!@W=01U`HsQ>@~ diff --git a/docs/compliance-play-store.md b/docs/compliance-play-store.md index e6ab8fc..d09d277 100644 --- a/docs/compliance-play-store.md +++ b/docs/compliance-play-store.md @@ -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 | diff --git a/docs/status/blocked.md b/docs/status/blocked.md index 5604c2e..df07103 100644 --- a/docs/status/blocked.md +++ b/docs/status/blocked.md @@ -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 | 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 | diff --git a/store/listing.md b/store/listing.md index d60af2f..14f1af9 100644 --- a/store/listing.md +++ b/store/listing.md @@ -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 | – | diff --git a/tools/build_release.sh b/tools/build_release.sh index 579187e..c551f14 100755 --- a/tools/build_release.sh +++ b/tools/build_release.sh @@ -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)