Skip to content

Commit

Permalink
RUMM-655 Add basic no-op usage of Kronos
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreated committed Nov 24, 2020
1 parent 6d9c9dc commit 7c7fb55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Datadog/Datadog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import Foundation
import Kronos

/// Datadog SDK configuration object.
public class Datadog {
Expand Down Expand Up @@ -47,6 +48,10 @@ public class Datadog {
/// - appContext: context passing information about the app.
/// - configuration: the SDK configuration obtained using `Datadog.Configuration.builderUsing(clientToken:)`.
public static func initialize(appContext: AppContext, configuration: Configuration) {
// TODO: RUMM-655 This is only to check at runtime if `lyft/Kronos` is properly linked. Will be removed before
// merging to `master` branch.
_ = Clock.now

// TODO: RUMM-511 remove this warning
#if targetEnvironment(macCatalyst)
consolePrint("⚠️ Catalyst is not officially supported by Datadog SDK: some features may NOT be functional!")
Expand Down

0 comments on commit 7c7fb55

Please sign in to comment.