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 #3820

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Jan 17, 2025

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

Description:

  • Small changes for Networking v2 updates
  • Removed Timport TestUtils and replaced with the new dedicate test utils for each package
  • Dependency tree improved by removing NetworkProtection as Core.framework dependency and avoiding runtime issues during testing like:
NetworkProtection NetworkProtectionConnectionBandwidthAnalyzer is implemented in both 
/Core.framework/Core (0x10950f248)
/UnitTests.xctest/UnitTests (0x11873c4e0). One of the two will be used. Which one is undefined.

Steps to test this PR:

  • Pixels can be fired
  • Unit tests work

Internal references:

Software Engineering Expectations
Technical Design Template

@@ -416,7 +415,7 @@ extension Pixel {
case networkProtectionTunnelFailureDetected
case networkProtectionTunnelFailureRecovered

case networkProtectionLatency(quality: NetworkProtectionLatencyMonitor.ConnectionQuality)
case networkProtectionLatency(quality: String)
Copy link
Member Author

Choose a reason for hiding this comment

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

Changing just these allows us to remove NetworkProtection as dependency of Core and "flatten" the dependency tree, solving possible runtime issues during testing

Copy link
Member Author

Choose a reason for hiding this comment

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

@diegoreymendez Do you have anything against this change? I can explain the rationale if needed.

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

1 participant