Skip to content

Commit

Permalink
Point to BSK branch and adapt code
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed May 23, 2024
1 parent d96ee2a commit e99fdb7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9853,8 +9853,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 145.3.3;
branch = "graeme/sanitize-location-selection";
kind = branch;
};
};
9F8FE9472BAE50E50071E372 /* 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" : "a49bbac8aa58033981a5a946d220886366dd471b",
"version" : "145.3.3"
"branch" : "graeme/sanitize-location-selection",
"revision" : "63daeee8c09fa851052c0430a1ccf189d02a365c"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ final class NetworkProtectionPacketTunnelProvider: PacketTunnelProvider {
// MARK: - Error Reporting

// swiftlint:disable:next cyclomatic_complexity function_body_length
private static func networkProtectionDebugEvents(controllerErrorStore: NetworkProtectionTunnelErrorStore) -> EventMapping<NetworkProtectionError>? {
private static func networkProtectionDebugEvents(controllerErrorStore: NetworkProtectionTunnelErrorStore) -> EventMapping<NetworkProtectionError> {
return EventMapping { event, _, _, _ in
let pixelEvent: Pixel.Event
var pixelError: Error?
Expand Down Expand Up @@ -277,6 +277,12 @@ final class NetworkProtectionPacketTunnelProvider: PacketTunnelProvider {
defaults: .networkProtectionGroupDefaults,
wrappee: notificationsPresenter
)
let locationListRepo = NetworkProtectionLocationListCompositeRepository(
environment: settings.selectedEnvironment,
tokenStore: tokenStore,
errorEvents: Self.networkProtectionDebugEvents(controllerErrorStore: errorStore),
isSubscriptionEnabled: isSubscriptionEnabled
)
notificationsPresenter.requestAuthorization()
super.init(notificationsPresenter: notificationsPresenterDecorator,
tunnelHealthStore: NetworkProtectionTunnelHealthStore(),
Expand Down

0 comments on commit e99fdb7

Please sign in to comment.