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

Subscription refactoring 4 #2871

Merged
merged 45 commits into from
Jun 24, 2024
Merged

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Jun 17, 2024

Task/Issue URL: https://app.asana.com/0/1205842942115003/1206805455884775/f
CC: @miasma13

Description:

  • Subscription API services and flows abstracted using protocols
  • Mocks created for all protocols
  • Some APIs improved by changing params' names

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@federicocappelli federicocappelli marked this pull request as ready for review June 18, 2024 15:06
Merge branch 'main' into fcappelli/subscription_refactoring_4

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link
Contributor

github-actions bot commented Jun 21, 2024

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against e8afa00

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link
Contributor

@miasma13 miasma13 left a comment

Choose a reason for hiding this comment

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

Please look at the 3 comments, 2 are small fixes and 1 is overall API usage suggestion to minimise risk of it being used wrong way.

federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jun 24, 2024
Task/Issue URL: https://app.asana.com/0/1205842942115003/1206805455884775/f
iOS PR: duckduckgo/iOS#2961
macOS PR: duckduckgo/macos-browser#2871
What kind of version bump will this require?: Major

**Description**:

- Subscription API services and flows abstracted using protocols
- Mocks created for all protocols

**Mocks:**
APIServiceMock
AuthAPIServiceMock
StorePurchaseManagerMock
SubscriptionAPIServiceMock
AccountKeychainStorageMock
SubscriptionTokenKeychainStorageMock
SubscriptionUIHandlerMock
StripePurchaseFlowMock
AppStoreRestoreFlowMock
AppStorePurchaseFlowMock
AppStoreAccountManagementFlowMock
@federicocappelli federicocappelli merged commit 39396cc into main Jun 24, 2024
19 checks passed
@federicocappelli federicocappelli deleted the fcappelli/subscription_refactoring_4 branch June 24, 2024 15:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants