Repository navigation
Link the Hex Code privacy policy from Settings - #1082
Merged
Merged
Conversation
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.
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Summary
Google Play requires the privacy policy to be linked inside the app. Hex Code had no link.
HexRowwith the lock icon, placed just above Version so it ships in release builds and stays outside the debug-only Developer section.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.app_privacy_policy/app.privacy_policy("Privacy policy") instrings.xmlandLocalizable.xcstrings.Checks
./gradlew :hexcode:testDebugUnitTest :hexcode:ktlintMainSourceSetCheck :hexcode:assembleDebug: passed, including the newHexPrivacyPolicyTest.:hexcode:ktlintTestSourceSetCheckfails onmainalready:session/OpenCodeTodayApiTest.kt:27(spacing-between-declarations-with-comments). This PR doesn't touch that file.xcodebuild test -project "Hex Code.xcodeproj" -scheme "Hex Code"on an iPhone 18 Pro simulator: 675 tests in 97 suites passed, including the newHexPrivacyPolicyTests.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).Risks
if (BuildConfig.DEBUG)/#if DEBUG, so release builds include it.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.