Commit c98d19a
fix: android crash for new social login users cp-7.79.0 (#30775)
## Description
Cherry-pick of #30765 with manual conflict resolution.
Skips success animation on Android for seedless onboarding flow to
prevent crash on new social login users.
## Changes
- Add `SEEDLESS_ONBOARDING` to `ONBOARDING_SUCCESS_FLOW` enum
- Skip success animation on Android for seedless onboarding
- Include seedless onboarding in wallet home steps eligibility
## Original PR
#30765
CHANGELOG entry: null
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Targeted UI/navigation guard on Android for one onboarding flow; no
auth or wallet-core logic changes beyond existing success-flow routing.
>
> **Overview**
> Fixes an **Android crash** when new **social (seedless) login** users
finish password setup by skipping the Rive-based **onboarding success
animation** on that platform for the new flow.
>
> **Choose Password** now resets navigation to **Onboarding Success**
with `successFlow: SEEDLESS_ONBOARDING` instead of `showPasswordHint:
true`, and a matching **`SEEDLESS_ONBOARDING`** value is added to
**`ONBOARDING_SUCCESS_FLOW`**. **Onboarding Success** conditionally
omits **`OnboardingSuccessEndAnimation`** when `Platform.OS ===
'android'` and the flow is seedless. **Wallet home onboarding steps**
eligibility treats seedless onboarding like other first-time completion
flows, with tests updated.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a1ce648. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Gaurav Goel <grvgoel19@gmail.com>1 parent 1657ce6 commit c98d19a
6 files changed
Lines changed: 24 additions & 8 deletions
File tree
- app
- components/Views
- ChoosePassword
- OnboardingSuccess
- constants
- util/onboarding
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
702 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
358 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
359 | 362 | | |
360 | 363 | | |
361 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
0 commit comments