Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Privacy Settings#114

Merged
AdamGrzybkowski merged 10 commits intotrunkfrom
adam/GRA-743
Aug 20, 2025
Merged

Privacy Settings#114
AdamGrzybkowski merged 10 commits intotrunkfrom
adam/GRA-743

Conversation

@AdamGrzybkowski
Copy link
Contributor

@AdamGrzybkowski AdamGrzybkowski commented Aug 19, 2025

Description

This PR adds the Privacy Setting bottom sheet with an option to opt-out of analytics and/or Crashlytics.

The PrivacySettingsStorage stores the information locally and will be cleared during logout.

Screenshot_20250819_121256

⚠️ Revert 8720dc2 before merging

Testing Steps

  1. Launch the app
  2. Log in
  3. Open the AboutAppDialog via ... menu button
  4. Tap Privacy Settings
  5. Confirm the Privacy Settings are displayed
  6. Change the settings values
  7. Kill and open the app
  8. Open the Privacy Settings again and verify the values are restored

There's an extra commit 8720dc2 to test crash reporting.

  1. Install the prototype build
  2. Enable crash reporting
  3. Tap Done button in the About app dialog
  4. Confirm the error is logged in Sentry
  5. Disable crash reporting
  6. Tap Done button in the About app dialog
  7. Confirm the error doesn't appear in Sentry

text = stringResource(R.string.about_app_dialog_privacy_settings),
modifier = Modifier.clickable {
context.openPrivacyPolicy()
onPrivacySettingsClicked()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

❓ Should we invoke onDismiss as well here?

Choose a reason for hiding this comment

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

We are not dismissing it for the delete flow so that I would say no. (Or, yes, if we apply the same approach to both flows).

Copy link

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

Looks good!

❓Probably in a different PR, but should we use those privacy settings to disable the CrashLogging somehow? I would say we should also do the same in TracksTracker.


@Composable
private fun PrivacySettingsCard(
settingTitle: String,

Choose a reason for hiding this comment

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

⛏️

Suggested change
settingTitle: String,
@StringRes settingTitle: Int,
@DrawableRes settingIcon: Int,
@StringRes settingDescription: Int,

@AdamGrzybkowski AdamGrzybkowski force-pushed the adam/GRA-743 branch 2 times, most recently from e5a1091 to 7782cb9 Compare August 19, 2025 14:16
@wpmobilebot
Copy link

wpmobilebot commented Aug 19, 2025

📲 You can test the changes from this Pull Request in Gravatar Android by scanning the QR code below to install the corresponding build.
App NameGravatar Android
Build TypeRelease
Commit7782cb9
Direct Downloadgravatar-app-prototype-build-pr114-7782cb9.apk

@AdamGrzybkowski AdamGrzybkowski added the enhancement New feature or request label Aug 19, 2025
@AdamGrzybkowski AdamGrzybkowski marked this pull request as ready for review August 19, 2025 15:01
Copy link

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

🚀

@AdamGrzybkowski AdamGrzybkowski merged commit 4d5c001 into trunk Aug 20, 2025
11 checks passed
@AdamGrzybkowski AdamGrzybkowski deleted the adam/GRA-743 branch August 20, 2025 07:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants