Skip to content

v1.21.27 - #952

Merged
piyalbasu merged 3 commits into
releasefrom
v1.21.27
Jul 30, 2026
Merged

v1.21.27#952
piyalbasu merged 3 commits into
releasefrom
v1.21.27

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Release Changes

github-actions Bot and others added 3 commits July 28, 2026 19:00
…xtension) (#955)

Squashed for the v1.21.27 release branch (retargeted from main). Consent now
controls Sentry initialization, event delivery, and runtime shutdown:
- initializeSentry() no-ops during e2e, when already initialized (idempotent),
  or when data sharing is OFF (master switch).
- beforeSend hard-drops every event while sharing is off.
- syncSentryEnablement() reconciles on toggle: inits when turned on, and on
  opt-out clears the user and disables the client by flipping enabled=false
  (NOT close()/close(0), which full-drain the transport backlog); guarded on
  persist.hasHydrated() so the store subscription can't init off the
  pre-hydration Android default.
- App startup + updateSentryContext consent-gate the Sentry user identity.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…956)

* copy(preferences): rename data-sharing toggle to "Usage data sharing" + accurate disclosure

The toggle was labeled "Anonymous data sharing" and claimed we collect "public keys, transaction amounts, and balances" only. Relabel to "Usage data sharing" (i18n key anonymousDataSharing -> usageDataSharing) and replace the description with an accurate disclosure covering usage/device/activity data, public keys, IP address, and the persistent cross-platform ID sent to our analytics and crash-reporting providers. Also aligns the ATT permission-modal wording. Removes the stale pt strings so they fall back to English until a professional pt translation is added.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* i18n(pt): translate usage-data-sharing copy + drop "anônimos" from ATT modal

Addresses review feedback on #956, which caught that removing only the pt
`anonymousDataSharing` block left the ATT permission modal saying
"compartilhamento de dados anônimos" — the exact term this PR retires. A
Portuguese user toggling the setting saw the modal contradict the (English
fallback) toggle description, and still saw "anonymous", which is the
inaccuracy the change exists to fix.

Fixed by translating rather than deleting, so Portuguese users stay in
Portuguese:

- Restored `preferences.usageDataSharing` in pt with Brazilian Portuguese
  for title + description.
- `permissionModal.enable.description` and `.disable.description`:
  "compartilhamento de dados anônimos" -> "compartilhamento de dados de uso",
  matching the en strings this PR already aligned.

The reviewer's suggested fix was to delete the two modal descriptions too
and let `fallbackLng: "en"` cover them. That resolves the contradiction but
regresses two already-translated strings to English; since the toggle copy
needed pt anyway, translating all four keeps the screen in one language.

Copy is byte-identical to stellar/freighter#2922 (extension) for all four
en/pt strings, verified programmatically — these two PRs exist to make the
disclosure consistent across platforms, so drift between them would defeat
the point. Terminology follows the existing catalog: "Política de
Privacidade", "chave pública", "dispositivo", "carteira", "extensão", and
the "o Freighter" article convention.

Verified: 940/940 en/pt leaf-key parity (was 938/940 on this branch, so the
gap this PR opened is closed); zero occurrences of "anônim" left in pt and
zero of "anonymous" in en; `yarn lint:translations` reports no
missing-translations errors; `yarn lint:ts` clean; prettier clean; 13 tests
pass across PreferencesScreen.test.tsx and ducks/preferences.test.ts.

The 6 `import/order` errors from `lint:translations` are pre-existing on
main in parseTransaction.ts / buildAuthJwt.ts / deriveAuthKeypair.ts and
unrelated to this change — confirmed by running eslint on those files at
main.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor Author

iOS Simulator preview build is ready: https://github.com/stellar/freighter-mobile/releases/tag/untagged-ec2968861e2ccac988c6 (SDF collaborators only — install instructions in the release description)

@piyalbasu
piyalbasu merged commit a140d04 into release Jul 30, 2026
59 of 60 checks passed
@piyalbasu
piyalbasu deleted the v1.21.27 branch July 30, 2026 00:43
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