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

Subscription refactoring 4 #2961

Merged
merged 19 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:

Software Engineering Expectations
Technical Design Template

@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Jun 17, 2024
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@github-actions github-actions bot removed the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Jun 18, 2024
@federicocappelli federicocappelli marked this pull request as ready for review June 18, 2024 15:13
@federicocappelli
Copy link
Member Author

What did I test:

  • Purchase subscription
  • Remove subscription
  • Restore subscription
  • Restore a non-existent subscription

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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 51eb29b into main Jun 24, 2024
14 checks passed
@federicocappelli federicocappelli deleted the fcappelli/subscription_refactoring_4 branch June 24, 2024 15:43
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.

None yet

2 participants