Skip to content

Link the Hex Code privacy policy from Settings - #1082

Merged
ivanfenenko merged 1 commit into
mainfrom
feature/hexcode-privacy-link
Nov 18, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
feature/hexcode-privacy-link

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Google Play requires the privacy policy to be linked inside the app. Hex Code had no link.

  • Settings › App › Privacy policy on Android and iOS: a HexRow with the lock icon, placed just above Version so it ships in release builds and stays outside the debug-only Developer section.
  • Welcome › Privacy policy: a quiet underlined text link under "Needs OpenCode 2.2.5+". Settings opens only after a computer is paired, and a store reviewer may never pair, so the first screen needs a link too. No Hex component draws a text link, so this one is local to Welcome. Its touch target is 48 dp on Android and 44 pt on iOS.
  • Both links open https://opencode-mobile.github.io/opencode-mobile-docs/hexcode/privacy/ in the system browser, not the in-app browser, which is for pages on the user's own computer. The URL is one untranslated constant per platform (HexPrivacyPolicy). On Android, a missing browser is logged rather than crashing the app.
  • New string app_privacy_policy / app.privacy_policy ("Privacy policy") in strings.xml and Localizable.xcstrings.

Checks

  • Android ./gradlew :hexcode:testDebugUnitTest :hexcode:ktlintMainSourceSetCheck :hexcode:assembleDebug: passed, including the new HexPrivacyPolicyTest.
  • :hexcode:ktlintTestSourceSetCheck fails on main already: session/OpenCodeTodayApiTest.kt:27 (spacing-between-declarations-with-comments). This PR doesn't touch that file.
  • iOS xcodebuild test -project "Hex Code.xcodeproj" -scheme "Hex Code" on an iPhone 18 Pro simulator: 675 tests in 97 suites passed, including the new HexPrivacyPolicyTests.
  • check-hexcode-ui.mjs: passed. check-string-keys.mjs: the new key matches on both platforms, and the known Hex Code difference count is unchanged (208). check-hardcoded-text.mjs: unchanged (15 warnings, none new).
  • Tapping each link opened the policy in Safari on iOS and in Chrome on Android.
  • Screenshots (demo setup and sample session only) are in a comment below.

Risks

  • I checked only the debug builds visually. The Settings row sits outside if (BuildConfig.DEBUG) / #if DEBUG, so release builds include it.
  • The policy page itself is being updated in opencode-mobile-docs#6.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Google Play wants the privacy policy reachable inside the app. Settings
> App gets a Privacy policy row on Android and iOS, in every build, and
Welcome gets a small Privacy policy link because Settings only opens
once a computer is paired. Both open the Hex Code policy page in the
system browser.
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Evidence

Debug builds with demo setup and the sample session only (no real server). Status bars use demo mode.

Step iOS Android
Welcome: Privacy policy link iOS welcome Android welcome
Settings › App › Privacy policy iOS settings Android settings
Tapping it opens the policy in the system browser iOS Safari Opened Chrome (stopped on Chrome's own first-run screen on the emulator, not captured)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.036 · 1 pass(es) stopped early

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit bf24670 Nov 18, 2026
@ivanfenenko
ivanfenenko deleted the feature/hexcode-privacy-link branch November 18, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant