From 47fed3fd47d7605cdfe5a1c5cbbda0a1f601ae04 Mon Sep 17 00:00:00 2001 From: dsatpm Date: Sat, 10 Oct 2026 09:08:50 -0700 Subject: [PATCH] feat: Play release prep - privacy policy, Android package id, release notes - In-app privacy policy at /privacy, linked from Home (Privacy top left, History top right). Text lives in src/legal/privacyPolicy.ts and is mirrored to docs/privacy-policy.md for the Play Console URL field. - tests/privacyPolicy.test.ts fails if the doc drifts or a claim stops matching the app (backup settings, permissions, no network or analytics SDKs, label limit, emergency number). - Android package is now com.htpdevs.birthmark, guarded by tests/appConfig.test.ts. iOS bundle id unchanged. - docs/release-notes/1.0.0.txt with en-US Play notes; test enforces the 500-character limit and the milestone list. - Ignore Gradle and Kotlin caches under modules/*/android. Co-Authored-By: Claude Opus 5.5 --- .gitignore | 2 + CLAUDE.md | 1 + app.json | 2 +- docs/privacy-policy.md | 47 ++++++++++++++++++ docs/release-notes/1.0.0.txt | 9 ++++ src/app/index.tsx | 16 ++++++- src/app/privacy.tsx | 74 +++++++++++++++++++++++++++++ src/legal/privacyPolicy.ts | 87 ++++++++++++++++++++++++++++++++++ tests/appConfig.test.ts | 12 +++++ tests/privacyPolicy.test.ts | 92 ++++++++++++++++++++++++++++++++++++ tests/releaseNotes.test.ts | 43 +++++++++++++++++ 11 files changed, 383 insertions(+), 2 deletions(-) create mode 100644 docs/privacy-policy.md create mode 100644 docs/release-notes/1.0.0.txt create mode 100644 src/app/privacy.tsx create mode 100644 src/legal/privacyPolicy.ts create mode 100644 tests/appConfig.test.ts create mode 100644 tests/privacyPolicy.test.ts create mode 100644 tests/releaseNotes.test.ts diff --git a/.gitignore b/.gitignore index b771eea..3cb65a8 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,5 @@ example # local native module build output modules/*/android/build/ modules/*/android/.cxx/ +modules/*/android/.gradle/ +modules/*/android/.kotlin/ diff --git a/CLAUDE.md b/CLAUDE.md index 61600ee..65d688d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -46,6 +46,7 @@ Routes are in `src/app/`. Path alias: `@/*` -> `src/*` (tests use it, and jest m - `writeQueue.ts`: serial FIFO. A failed op stays at the head and blocks later ops until `retry()`. - `src/report/`: `buildReport()` returns one model, used by both the report screen and `renderReportHtml()` (escaped, no external assets) for expo-print. - `src/platform/`: the only React Native / Expo-module code outside the UI (`clock`, `database`, `phone`, `exportPdf`). +- `src/legal/privacyPolicy.ts`: privacy policy text, shown in-app at `/privacy` (linked from Home) and mirrored to `docs/privacy-policy.md` for the Play Console URL. `tests/privacyPolicy.test.ts` fails if the doc drifts or a claim (backup, permissions, no network or analytics SDKs) stops matching the app. Edit the TS, then `UPDATE_PRIVACY_MD=1 npx jest tests/privacyPolicy.test.ts`. - `src/state/store.ts`: `appStore` singleton (DB, active controller, controller cache, session list, clock-format pref) plus hooks. `useClockTick` is display-only at 4 Hz. - `modules/clock-snapshot/`: Swift (`mach_continuous_time`, `kern.boottime` boot id, `isExcludedFromBackup`) and Kotlin (`elapsedRealtimeNanos`, `Settings.Global.BOOT_COUNT`). Loaded with `requireOptionalNativeModule`. - Tests: `tests/helpers/sqlite.ts` wraps better-sqlite3 in the `Db` interface. It includes `failNext(regex)` to simulate disk-full errors. `tests/helpers/fakeClock.ts` provides `advance`, `setWallBy`, and `reboot`. Name tests after spec IDs. diff --git a/app.json b/app.json index 880fa1b..25be1c2 100644 --- a/app.json +++ b/app.json @@ -20,7 +20,7 @@ } }, "android": { - "package": "com.birthmark.app", + "package": "com.htpdevs.birthmark", "allowBackup": false, "softwareKeyboardLayoutMode": "resize", "adaptiveIcon": { diff --git a/docs/privacy-policy.md b/docs/privacy-policy.md new file mode 100644 index 0000000..569d1be --- /dev/null +++ b/docs/privacy-policy.md @@ -0,0 +1,47 @@ +# Birthmark privacy policy + +Effective 2026-10-10 + +This policy explains how the Birthmark app, published by HTPdevs, handles information. Birthmark works offline on one device. It has no accounts, no backend server, no advertising, and no analytics. + +## What the app stores + +Birthmark stores what you record during a session: the time of each captured moment, milestone names, optional labels you type (up to 80 characters), event timers, APGAR scores, corrections and their history, and timing details from the device clock (timezone, UTC offset, and a boot identifier used to recover elapsed time after a restart). It also stores your 12-hour or 24-hour clock display preference. + +Birthmark does not ask for names, dates of birth, addresses, medical record numbers, or any patient profile. A label is free text, so it can still contain identifying details if you type them. Do not enter names or identifying details in labels. + +## Where it is stored + +All records are kept in a database inside the app on this device. Birthmark does not send session data to HTPdevs or to anyone else, and it has no account or cloud sync. + +Session data is excluded from automatic device backups: Android app backup is turned off, and on iOS the database folder is excluded from iCloud and computer backups. + +## What the app does not use + +Birthmark does not use the microphone, camera, location, contacts, or photos. It does not record audio. It contains no advertising, analytics, crash-reporting, or tracking services. + +## Exported reports + +When you export a report, Birthmark creates a PDF on the device and opens your device's share sheet. You choose where it goes, for example a file location or another app. Nothing is sent automatically. + +Once you save or share a PDF outside Birthmark, that copy is handled by the destination you chose and its own privacy terms. Deleting a session in Birthmark cannot remove copies saved elsewhere. Birthmark clears its own cached export files when a session is deleted. + +## Emergency button + +After you confirm, the Emergency button opens your device's phone app with 911 entered. The call is placed by your phone app and carrier, not by Birthmark. Birthmark does not record that you used it. + +## Keeping and deleting data + +Records stay on the device until you delete them. You can delete a finished session from its report. This removes its database records and cached exports. Uninstalling Birthmark removes all of its data from the device. + +## Security and medical use + +Records are protected by the security of your device, such as its screen lock. Birthmark does not make records anonymous, and it is not certified for HIPAA or any other medical records standard. It records observations you choose and gives no clinical guidance. + +## Changes to this policy + +If this policy changes, the updated version will ship in the app with a new effective date. + +## Contact + +Questions about this policy: support@htpdevs.tech diff --git a/docs/release-notes/1.0.0.txt b/docs/release-notes/1.0.0.txt new file mode 100644 index 0000000..2d00339 --- /dev/null +++ b/docs/release-notes/1.0.0.txt @@ -0,0 +1,9 @@ + +First release of Birthmark. +- Record birth moments with one tap: ROM, Crown, Head, Body, First Cry, Separation Gush, Placenta +- Dedicated Resuscitate button and APGAR scores at 1 and 5 minutes +- Large real-time clock and time since the last moment +- Review and correct the timeline, then export a PDF report +- Emergency button opens your phone app to call 911 +- Works offline. Records stay on this device + diff --git a/src/app/index.tsx b/src/app/index.tsx index 4f77ccf..92b1b1f 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -115,6 +115,14 @@ export default function Home() { ) : null} +