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

Authv2 / Networking improvements #3746

Merged
merged 18 commits into from
Jan 27, 2025

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Jan 17, 2025

Task/Issue URL: https://app.asana.com/0/1205842942115003/1209170372758735/f
CC: @ayoy

Description:

Steps to test this PR:

  1. Unit tests working

Definition of Done:


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
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link
Contributor

@alessandroboron alessandroboron left a comment

Choose a reason for hiding this comment

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

I left some comments about translations and I the same comment I left for the iOS PR about having the requests nillable

# Conflicts:
#	DuckDuckGo-macOS.xcodeproj/project.pbxproj
#	DuckDuckGo-macOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	LocalPackages/NewTabPage/Package.swift
federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 27, 2025
Task/Issue URL:
https://app.asana.com/0/1205842942115003/1209170372758735/f
iOS PR: duckduckgo/iOS#3820
macOS PR: duckduckgo/macos-browser#3746
What kind of version bump will this require?: Major

**Description**:

Networking v2 Improvements
- Introduction of RetryPolicy
- Authentication support improved with refresh callback in case of 401
error
- Equatable conformance
- Hashable Conformance
- APIRequestV2Error Equatable conformance
- New Oauth framework inside Networking v2
- Malicious site protection APIClient updated to Networking v2
- A lot of utilities, moks and improvements added to
`NetworkingTestingUtils`
 
Additional changes include:
- `DecodableHelper` expanded and renamed `CodableHelper`
- `Date` extension with utilities + unit tests
- Rationalisation of the package "Testing Utils" modules, now every
library has its `XYZTestingUtils` module, I removed the generic
`TestingUtils`
@federicocappelli federicocappelli merged commit 0e0b029 into main Jan 27, 2025
20 checks passed
@federicocappelli federicocappelli deleted the fcappelli/authv2/networking_improvements branch January 27, 2025 10:08
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