Commit 14f8d1e
authored
Add FXIOS-14316 #31001 Replace OnboardingDefaultBrowserModelProtocol with OnboardingKit version (#31036)
* Replace OnboardingLinkInfoModel with OnboardingKit version
- Replace Client's OnboardingLinkInfoModel with OnboardingKit.OnboardingLinkInfoModel
- Update NimbusOnboardingFeatureLayer to use OnboardingKit type
- Update OnboardingCardInfoModel and protocol to use OnboardingKit type
- Update test files to import and use OnboardingKit version
- Remove old OnboardingLinkInfoModel.swift file and project references
This is Stage 1 of onboarding duplication removal - plug-and-play replacements.
* Replace OnboardingButtonInfoModel and OnboardingButtons with OnboardingKit versions
- Replace Client's OnboardingButtonInfoModel with OnboardingKit.OnboardingButtonInfoModel<OnboardingActions>
- Replace Client's OnboardingButtons with OnboardingKit.OnboardingButtons<OnboardingActions>
- Update OnboardingCardInfoModelProtocol to use generic button types
- Update OnboardingCardInfoModel to use OnboardingKit generic types
- Update NimbusOnboardingFeatureLayer.getOnboardingCardButtons() to return OnboardingKit types
- Update all test files to use OnboardingKit generic button types with Client.OnboardingActions
- Remove old OnboardingButtonInfoModel.swift and OnboardingButtonsModel.swift files and project references
This is Stage 2 of onboarding duplication removal - generic type replacements.
* Replace OnboardingDefaultBrowserModelProtocol and add Equatable to OnboardingMultipleChoiceButtonModel
- Replace OnboardingDefaultBrowserModelProtocol with OnboardingKit.OnboardingInstructionsPopupInfoModel
- Add extension to OnboardingKit.OnboardingInstructionsPopupInfoModel for getAttributedStrings method
- Update OnboardingInstructionPopupViewController to use OnboardingKit type
- Update OnboardingService to use OnboardingKit types for popup handling
- Add Equatable conformance to OnboardingMultipleChoiceButtonModel in OnboardingKit
- Simplify comparison logic in OnboardingMultipleChoiceCardViewController using Equatable
- Delete old OnboardingDefaultBrowserModelProtocol.swift file
- Remove references from project.pbxproj
* Fix SwiftLint violations
- Break long lines to comply with 125 character limit
- Fix opening brace spacing
* Replace OnboardingLinkInfoModel with OnboardingKit version
- Replace OnboardingLinkInfoModel with OnboardingKit.OnboardingLinkInfoModel
- Replace OnboardingButtonInfoModel and OnboardingButtons with OnboardingKit versions
- Remove unnecessary OnboardingKit prefixes after old files are deleted
- Make OnboardingKit preview enums internal (OnboardingActions, OnboardingMultipleChoiceAction, OnboardingInstructionsPopupActions, OnboardingType)
- Remove unnecessary Client prefix from OnboardingActions in test files
* Remove unnecessary OnboardingKit. prefixes from type references
- Removed OnboardingKit. prefixes where types are already imported from OnboardingKit module
- Updated type references in LaunchCoordinator, OnboardingCardInfoModel, OnboardingKitCardInfoModel, and related files
- Kept OnboardingKit. prefix only where necessary for disambiguation or protocol conformance
* Fix build
* Fix compilation
* Restore Package.resolved files to match origin/main
* Fix warning1 parent 1942aa2 commit 14f8d1e
File tree
16 files changed
+47
-97
lines changed- BrowserKit/Sources/OnboardingKit/Models
- Buttons
- firefox-ios
- Client.xcodeproj
- Client
- Coordinators/Launch
- Frontend/Onboarding
- Models
- Protocols
- Views
- Nimbus/OnboardingFeatureLayer
16 files changed
+47
-97
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
749 | 747 | | |
750 | 748 | | |
751 | 749 | | |
| |||
784 | 782 | | |
785 | 783 | | |
786 | 784 | | |
787 | | - | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
| |||
8596 | 8593 | | |
8597 | 8594 | | |
8598 | 8595 | | |
8599 | | - | |
8600 | | - | |
8601 | 8596 | | |
8602 | 8597 | | |
8603 | 8598 | | |
| |||
8703 | 8698 | | |
8704 | 8699 | | |
8705 | 8700 | | |
8706 | | - | |
8707 | 8701 | | |
8708 | 8702 | | |
8709 | 8703 | | |
| |||
14919 | 14913 | | |
14920 | 14914 | | |
14921 | 14915 | | |
14922 | | - | |
14923 | 14916 | | |
14924 | 14917 | | |
14925 | 14918 | | |
| |||
14938 | 14931 | | |
14939 | 14932 | | |
14940 | 14933 | | |
14941 | | - | |
14942 | 14934 | | |
14943 | 14935 | | |
14944 | 14936 | | |
| |||
18701 | 18693 | | |
18702 | 18694 | | |
18703 | 18695 | | |
18704 | | - | |
18705 | 18696 | | |
18706 | 18697 | | |
18707 | 18698 | | |
18708 | 18699 | | |
18709 | 18700 | | |
18710 | 18701 | | |
18711 | | - | |
18712 | 18702 | | |
18713 | 18703 | | |
18714 | 18704 | | |
| |||
18763 | 18753 | | |
18764 | 18754 | | |
18765 | 18755 | | |
18766 | | - | |
18767 | 18756 | | |
18768 | 18757 | | |
18769 | 18758 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
0 commit comments