Skip to content

Commit

Permalink
Merge pull request #1086 from DataDog/maxep/RUMM-2745/decouple-webvie…
Browse files Browse the repository at this point in the history
…w-tracking

RUMM-2745 Decouple Webview Tracking
  • Loading branch information
maxep authored Dec 20, 2022
2 parents 282de76 + 3283010 commit c478fe4
Show file tree
Hide file tree
Showing 57 changed files with 492 additions and 1,821 deletions.
134 changes: 21 additions & 113 deletions Datadog/Datadog.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions Sources/Datadog/Core/System/AppVersionProvider.swift

This file was deleted.

133 changes: 0 additions & 133 deletions Sources/Datadog/Core/System/CarrierInfoProvider.swift

This file was deleted.

137 changes: 0 additions & 137 deletions Sources/Datadog/Core/System/NetworkConnectionInfoProvider.swift

This file was deleted.

23 changes: 0 additions & 23 deletions Sources/Datadog/Core/System/Time/ServerDateCorrector.swift

This file was deleted.

16 changes: 4 additions & 12 deletions Sources/Datadog/Datadog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ public class Datadog {

let userInfoProvider = UserInfoProvider()
let serverDateProvider = configuration.common.serverDateProvider ?? DatadogNTPDateProvider()
let dateCorrector = ServerDateCorrector(serverDateProvider: serverDateProvider)
let networkConnectionInfoProvider = NetworkConnectionInfoProvider()
let carrierInfoProvider = CarrierInfoProvider()
let appStateListener = AppStateListener(dateProvider: configuration.common.dateProvider)

// Set default `DatadogCore`:
Expand All @@ -202,14 +199,6 @@ public class Datadog {
performance: configuration.common.performance,
httpClient: HTTPClient(proxyConfiguration: configuration.common.proxyConfiguration),
encryption: configuration.common.encryption,
v1Context: DatadogV1Context(
configuration: configuration.common,
device: .init(),
dateCorrector: dateCorrector,
networkConnectionInfoProvider: networkConnectionInfoProvider,
carrierInfoProvider: carrierInfoProvider,
userInfoProvider: userInfoProvider
),
contextProvider: DatadogContextProvider(
configuration: configuration.common,
device: .init(),
Expand All @@ -236,7 +225,10 @@ public class Datadog {
)

rum = try core.create(
configuration: createRUMConfiguration(intake: rumConfiguration.uploadURL),
configuration: createRUMConfiguration(
intake: rumConfiguration.uploadURL,
dateProvider: rumConfiguration.dateProvider
),
featureSpecificConfiguration: rumConfiguration
)

Expand Down
Loading

0 comments on commit c478fe4

Please sign in to comment.