pocket-casts-android
pocket-casts-android copied to clipboard
Gravatar native Quick Editor
Description
With the new Gravatar SDK release, we can use the native Quick Editor (QE), which allows an easy avatar change without needing the browser (except for the OAuth authorization).
Currently, we are using the web version; this PR is replacing it with the native version included within the Gravatar SDK.
Note: We must add the "official" gravatarAppId
in the secrets.
Testing Instructions
To test the OAuth Flow, you need a gravatarAppId
in your secret.properties
. You can create and configure your test app following this. Let me know if you need help.
- Enable
GRAVATAR_NATIVE_QUICK_EDITOR
feature flag under Profile -> Settings -> Beta features - Tap on the Profile tab
- Tap on
Change avatar
- Verify Gravatar OAuth flow is opened in the browser
- Complete the OAuth flow
- You should be back on the app, and the QE should show your avatars
- Modify your avatar
- Close the QE and verify the new avatar is already shown in your account
- Tap on
Change avatar
- OAuth flow should be presented again
- Modify/upload your avatar
- Close the QE and verify the new avatar is already shown in your account
-
Sign out
from PocketCast - Login again with the same account
- Tap on the Profile tab
- Tap on
Change avatar
- OAuth flow should be presented again
- Return to PocketCast
- Disable
GRAVATAR_NATIVE_QUICK_EDITOR
feature flag under Profile -> Settings -> Beta features - Tap on the Profile tab
- Tap on
Change avatar
- Browser with the web QE should be opened (previous behavior)
Screenshots or Screencast
Checklist
- [x] If this is a user-facing change, I have added an entry in CHANGELOG.md
- [x] Ensure the linter passes (
./gradlew spotlessApply
to automatically apply formatting/linting) - [x] I have considered whether it makes sense to add tests for my changes
- [x] All strings that need to be localized are in
modules/services/localization/src/main/res/values/strings.xml
- [ ] Any jetpack compose components I added or changed are covered by compose previews
- [ ] I have updated (or requested that someone edit) the spreadsheet to reflect any new or changed analytics.
I have tested any UI changes...
- [ ] with different themes
- [ ] with a landscape orientation
- [ ] with the device set to have a large display and font size
- [ ] for accessibility with TalkBack