Skip to content

Commit

Permalink
Force configuration URL
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Aug 16, 2024
1 parent 757fb3b commit ec22bab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ import WebKit
CrashLogMessageExtractor.setUp(swapCxaThrow: false)
didCrashDuringCrashHandlersSetUp = false
}

#warning("REMOVE BEFORE MERGING TO PROD!!!")
privacyConfigCustomURL = "https://jsonblob.com/api/1253721903368888320"
}

// swiftlint:disable:next function_body_length
Expand Down Expand Up @@ -146,12 +143,17 @@ import WebKit
cleanUpIncrementalRolloutPixelTest()

APIRequest.Headers.setUserAgent(DefaultUserAgentManager.duckDuckGoUserAgent)


/*
if isDebugBuild, let privacyConfigCustomURL, let url = URL(string: privacyConfigCustomURL) {
Configuration.setURLProvider(CustomConfigurationURLProvider(customPrivacyConfigurationURL: url))
} else {
Configuration.setURLProvider(AppConfigurationURLProvider())
}
*/
#warning("REMOVE BEFORE MERGING TO PROD!!!")
let url = URL(string: "https://jsonblob.com/api/1253721903368888320")!
Configuration.setURLProvider(CustomConfigurationURLProvider(customPrivacyConfigurationURL: url))

crashCollection.startAttachingCrashLogMessages { pixelParameters, payloads, sendReport in
pixelParameters.forEach { params in
Expand Down

0 comments on commit ec22bab

Please sign in to comment.