Skip to content

Commit

Permalink
Updates BSK (#2448)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1203137811378537/1206513608690551/f
Tech Design URL:
CC:

BSK PR: duckduckgo/BrowserServicesKit#655
macOS PR: duckduckgo/macos-browser#2174

## Description

Just integrating the latest macOS BSK changes.  There should literally be no changes for iOS, but please double check.
  • Loading branch information
diegoreymendez authored Feb 15, 2024
1 parent 1f2ff2e commit d9a3568
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9892,7 +9892,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 107.0.0;
version = 107.0.1;
};
};
C14882EB27F211A000D59F0C /* XCRemoteSwiftPackageReference "SwiftSoup" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/DuckDuckGo/BrowserServicesKit",
"state" : {
"revision" : "328ce451fd1593809d1470ab5a0b5242a595f88c",
"version" : "107.0.0"
"revision" : "93a9a4153429de38c8b9f186617ff34db84f9250",
"version" : "107.0.1"
}
},
{
Expand Down
16 changes: 13 additions & 3 deletions DuckDuckGo/NetworkProtectionConvenienceInitialisers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,34 @@
import NetworkProtection
import UIKit
import Common
import NetworkExtension

private class DefaultTunnelSessionProvider: TunnelSessionProvider {
func activeSession() async -> NETunnelProviderSession? {
try? await ConnectionSessionUtilities.activeSession()
}
}

extension ConnectionStatusObserverThroughSession {
convenience init() {
self.init(platformNotificationCenter: .default,
self.init(tunnelSessionProvider: DefaultTunnelSessionProvider(),
platformNotificationCenter: .default,
platformDidWakeNotification: UIApplication.didBecomeActiveNotification)
}
}

extension ConnectionErrorObserverThroughSession {
convenience init() {
self.init(platformNotificationCenter: .default,
self.init(tunnelSessionProvider: DefaultTunnelSessionProvider(),
platformNotificationCenter: .default,
platformDidWakeNotification: UIApplication.didBecomeActiveNotification)
}
}

extension ConnectionServerInfoObserverThroughSession {
convenience init() {
self.init(platformNotificationCenter: .default,
self.init(tunnelSessionProvider: DefaultTunnelSessionProvider(),
platformNotificationCenter: .default,
platformDidWakeNotification: UIApplication.didBecomeActiveNotification)
}
}
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/DuckUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let package = Package(
targets: ["DuckUI"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SyncUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let package = Package(
],
dependencies: [
.package(path: "../DuckUI"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.1"),
.package(url: "https://github.com/duckduckgo/DesignResourcesKit", exact: "2.0.0")
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/Waitlist/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let package = Package(
targets: ["Waitlist", "WaitlistMocks"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "107.0.1"),
.package(url: "https://github.com/duckduckgo/DesignResourcesKit", exact: "2.0.0")
],
targets: [
Expand Down

0 comments on commit d9a3568

Please sign in to comment.