app: privacy policy link in the settings sheet
- new lib/src/ui/links.dart holds kPrivacyPolicyUrl (single source of truth for the app, the store listing and the compliance docs) - settings sheet: "Datenschutzerklaerung" tile opens the policy in the browser via url_launcher; manifest grown a <queries> VIEW/https intent so Android 11+ can resolve it - verified on device: tap sends ACTION_VIEW for the URL and Chrome comes up - guard: tools/build_release.sh aborts while links.dart still contains the example.invalid placeholder, so a release cannot ship without a policy URL - docs: compliance row updated (in-app entry done, only the public URL missing)
This commit is contained in:
@@ -31,6 +31,14 @@ done
|
||||
(cd build/native-symbols && zip -qr ../native-debug-symbols.zip .)
|
||||
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
|
||||
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 '==> Flutter bundle (AAB)'
|
||||
(cd app && flutter build appbundle --release)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user