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
+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)