Skip to content

Commit

Permalink
rename _Datadog_Private to DatadogPrivate
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfanatics committed Jun 6, 2023
1 parent 2a1b1d9 commit 7b32c42
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Datadog/Datadog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,7 @@
61133B9C2423979B00786299 /* Datadog */,
61133C082423983800786299 /* DatadogObjc */,
6170DC1325C1864B003AED5C /* DatadogCrashReporting */,
9E68FB52244707FD0013A8AA /* _Datadog_Private */,
9E68FB52244707FD0013A8AA /* DatadogPrivate */,
61133C122423990D00786299 /* DatadogTests */,
6170DC1425C18663003AED5C /* DatadogCrashReportingTests */,
61441C772461A204003D8BB8 /* DatadogBenchmarkTests */,
Expand Down Expand Up @@ -4125,15 +4125,15 @@
path = RUM;
sourceTree = "<group>";
};
9E68FB52244707FD0013A8AA /* _Datadog_Private */ = {
9E68FB52244707FD0013A8AA /* DatadogPrivate */ = {
isa = PBXGroup;
children = (
9E47010324471027000073A4 /* include */,
6179FFD2254ADB1100556A0B /* ObjcAppLaunchHandler.m */,
9E68FB53244707FD0013A8AA /* ObjcExceptionHandler.m */,
);
name = _Datadog_Private;
path = ../Sources/_Datadog_Private;
name = DatadogPrivate;
path = ../Sources/DatadogPrivate;
sourceTree = "<group>";
};
9EA95C182791C9BE00F6C1F3 /* WebView */ = {
Expand Down
4 changes: 2 additions & 2 deletions DatadogSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/DataDog/dd-sdk-ios.git", :tag => s.version.to_s }

s.source_files = ["Sources/Datadog/**/*.swift",
"Sources/_Datadog_Private/**/*.{h,m}",
"Sources/DatadogPrivate/**/*.{h,m}",
"Datadog/TargetSupport/Datadog/Datadog.h"]
s.public_header_files = ["Datadog/TargetSupport/Datadog/Datadog.h",
"Sources/_Datadog_Private/include/*.h"]
"Sources/DatadogPrivate/include/*.h"]

end
4 changes: 2 additions & 2 deletions DatadogSDK.podspec.src
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/DataDog/dd-sdk-ios.git", :tag => s.version.to_s }

s.source_files = ["Sources/Datadog/**/*.swift",
"Sources/_Datadog_Private/**/*.{h,m}",
"Sources/DatadogPrivate/**/*.{h,m}",
"Datadog/TargetSupport/Datadog/Datadog.h"]
s.public_header_files = ["Datadog/TargetSupport/Datadog/Datadog.h",
"Sources/_Datadog_Private/include/*.h"]
"Sources/DatadogPrivate/include/*.h"]

end
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let package = Package(
.target(
name: "Datadog",
dependencies: [
"_Datadog_Private",
"DatadogPrivate",
],
swiftSettings: [.define("SPM_BUILD")]
),
Expand All @@ -60,7 +60,7 @@ let package = Package(
]
),
.target(
name: "_Datadog_Private"
name: "DatadogPrivate"
),
.target(
name: "DatadogCrashReporting",
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/Datadog.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ framework module Datadog {
module * { export * }
}

framework module _Datadog_Private {
framework module DatadogPrivate {
export *

// All headers listed below must be also added to the "Headers" Build Phase in Datadog target.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

#if SPM_BUILD
import _Datadog_Private
import DatadogPrivate
#endif

internal struct LaunchTimePublisher: ContextValuePublisher {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/DatadogCore/Storage/Files/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

#if SPM_BUILD
import _Datadog_Private
import DatadogPrivate
#endif

/// Provides convenient interface for reading metadata and appending data to the file.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/Tracing/DDSpan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

#if SPM_BUILD
import _Datadog_Private
import DatadogPrivate
#endif

internal class DDSpan: OTSpan {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Datadog/Utils/Globals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

#if SPM_BUILD
import _Datadog_Private
import DatadogPrivate
#endif

/// Function printing `String` content to console.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ @implementation __dd_private_AppLaunchHandler {
static __dd_private_AppLaunchHandler *_shared;

+ (void)load {
// This is called at the `_Datadog_Private` load time, keep the work minimal
// This is called at the `DatadogPrivate` load time, keep the work minimal
_shared = [[self alloc] initWithProcessInfo:NSProcessInfo.processInfo
loadTime:CFAbsoluteTimeGetCurrent()];

Expand Down

0 comments on commit 7b32c42

Please sign in to comment.