Skip to content

Commit

Permalink
Update VPN user agent (#3181)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1207162258152427/1207484485195971/f
Tech Design URL:
CC:

Description:

This PR updates the VPN user agent to be consistent with other parts of the app.
  • Loading branch information
samsymons authored Sep 9, 2024
1 parent e1ef953 commit b14bd88
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,8 @@
4B4F72EC266B2ED300814C60 /* CollectionExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B4F72EB266B2ED300814C60 /* CollectionExtension.swift */; };
4B5235452C7BB14D00AFAF64 /* WireGuard in Frameworks */ = {isa = PBXBuildFile; productRef = 4B5235442C7BB14D00AFAF64 /* WireGuard */; };
4B5235472C7BB15700AFAF64 /* WireGuard in Frameworks */ = {isa = PBXBuildFile; productRef = 4B5235462C7BB15700AFAF64 /* WireGuard */; };
4B52354D2C854CB600AFAF64 /* DuckDuckGoUserAgent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF0E5112AD25A2600FFEC9E /* DuckDuckGoUserAgent.swift */; };
4B52354E2C854CB700AFAF64 /* DuckDuckGoUserAgent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BF0E5112AD25A2600FFEC9E /* DuckDuckGoUserAgent.swift */; };
4B59023E26B35F3600489384 /* ChromiumLoginReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B59023926B35F3600489384 /* ChromiumLoginReader.swift */; };
4B59024026B35F3600489384 /* ChromiumDataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B59023B26B35F3600489384 /* ChromiumDataImporter.swift */; };
4B59024826B3673600489384 /* ThirdPartyBrowser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B59024726B3673600489384 /* ThirdPartyBrowser.swift */; };
Expand Down Expand Up @@ -11575,6 +11577,7 @@
files = (
4B25377A2A11C01700610219 /* UserText+NetworkProtectionExtensions.swift in Sources */,
B65DA5F42A77D3FA00CBEE8D /* BundleExtension.swift in Sources */,
4B52354D2C854CB600AFAF64 /* DuckDuckGoUserAgent.swift in Sources */,
EE66418D2B9B1981005BCD17 /* NetworkProtectionTokenStore+SubscriptionTokenKeychainStorage.swift in Sources */,
EEBCA0C72BD7CE2C004DF19C /* VPNFailureRecoveryPixel.swift in Sources */,
F1DA51932BF6081D00CF29FA /* AttributionPixelHandler.swift in Sources */,
Expand Down Expand Up @@ -11704,6 +11707,7 @@
F1D0429B2BFBABA100A31506 /* SubscriptionManager+StandardConfiguration.swift in Sources */,
B602E8182A1E2570006D261F /* URL+NetworkProtection.swift in Sources */,
B65DA5F52A77D3FA00CBEE8D /* BundleExtension.swift in Sources */,
4B52354E2C854CB700AFAF64 /* DuckDuckGoUserAgent.swift in Sources */,
4B4D60892A0B2A1C00BCD287 /* NetworkProtectionUNNotificationsPresenter.swift in Sources */,
F1C70D7E2BFF510000599292 /* SubscriptionEnvironment+Default.swift in Sources */,
4B4D60A02A0B2D5B00BCD287 /* Bundle+VPN.swift in Sources */,
Expand Down Expand Up @@ -14006,7 +14010,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 191.2.2;
version = 191.2.3;
};
};
9FF521422BAA8FF300B9819B /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "660971f355c2288ebd3041e92d9674abd9e3a3e0",
"version" : "191.2.2"
"revision" : "b83ccf14b5844e8876de04bcc3074a15569f3b26",
"version" : "191.2.3"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ final class MacPacketTunnelProvider: PacketTunnelProvider {
let defaults = UserDefaults.netP
#endif

APIRequest.Headers.setUserAgent(UserAgent.duckDuckGoUserAgent())
NetworkProtectionLastVersionRunStore(userDefaults: defaults).lastExtensionVersionRun = AppVersion.shared.versionAndBuildNumber
let settings = VPNSettings(defaults: defaults)

Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/DataBrokerProtection/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
targets: ["DataBrokerProtection"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.2"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.3"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../XPCHelper"),
],
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionMac/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
.library(name: "VPNAppLauncher", targets: ["VPNAppLauncher"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.2"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.3"),
.package(url: "https://github.com/airbnb/lottie-spm", exact: "4.4.3"),
.package(path: "../AppLauncher"),
.package(path: "../UDSHelper"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SubscriptionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
targets: ["SubscriptionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.2"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "191.2.3"),
.package(path: "../SwiftUIExtensions")
],
targets: [
Expand Down

0 comments on commit b14bd88

Please sign in to comment.