Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplashScreen Animation: Add wink animation #5565

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

mikescamell
Copy link
Contributor

@mikescamell mikescamell commented Jan 30, 2025

Task/Issue URL: https://app.asana.com/0/1207908166761516/1209192748061740/f

Description

Adds a new wink animation to the splashscreen for devices on sdk 32+😉

On devices <32 we show the existing static logo splashscreen.

Steps to test this PR

Splashscreen on SDK 32+

  • Open the app
  • Check wink animation plays
  • Press back to exit the app
  • Launch the app
  • Check the animation plays

Splashscreen on SDK < 31

  • Open the app
  • Check the existing static splashscreen logo is shown
  • Press back to exit the app
  • Launch the app
  • Check the existing static splashscreen logo is shown

Demo

Light

light_demo.mp4

Dark

dark_demo.mp4

Copy link
Contributor Author

mikescamell commented Jan 30, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mikescamell mikescamell marked this pull request as ready for review January 30, 2025 21:05
Copy link
Contributor

@malmstein malmstein left a comment

Choose a reason for hiding this comment

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

Works as expected, nice one @mikescamell !

mikescamell and others added 5 commits February 7, 2025 15:19
we can only play the new wink animation on sdk 32+, otherwise we stick to our existing static splash logo

It's necessary to add windowSplashScreenAnimationDuration and this is only used by sdk32, sdk33+ determine the duration via the AnimatedVectorDrawable itself
I observed that on warm starts the animation never gets to fully play out, it seems like it's dismissed before being able to finish which makes it look like something is broken.

Therefore we can register an exit animation listener and use the length of the animation to determine when we should actually move on which results in the animation being played to completion on warm starts.
Task/Issue URL:
https://app.asana.com/0/1207908166761516/1209192748061745

Added a new pixel tracking event `m_splashscreen_shown` that fires when
the app's splash screen is displayed. The pixel is configured to remove
all parameters for privacy protection.

_Splash Screen Pixel Cold Start_
- [ ] Launch the app from a cold start (force close the app if
necessary)
- [ ] Verify in the network logs that the `m_splashscreen_shown` pixel
is fired
- [ ] Confirm that the pixel is sent without ATB or other tracking
parameters

_Splash Screen Pixel Warm Start_
- [ ] Press back to close the app
- [ ] Open the app
- [ ] Verify in the network logs that the `m_splashscreen_shown` pixel
is fired
- [ ] Confirm that the pixel is sent without ATB or other tracking
parameters

No UI changes were made in this PR.
@mikescamell mikescamell force-pushed the feature/mike/splashscreen-animation/add-wink-animation branch from 641425c to 4274b24 Compare February 7, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants