Skip to content

Commit

Permalink
chore: update Package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
YoloMao committed May 7, 2024
1 parent 7e37ed5 commit 284d23a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ let package = Package(
.Module.ads,
.Module.apm,
.Module.abTesting,
.Module.preflight,

// MARK: - Services

Expand Down Expand Up @@ -121,6 +122,7 @@ extension Target {
.Module.hybrid,
.Module.mobileDebugger,
.Module.webCircle,
.Module.preflight,
],
path: .Path.autotracker)

Expand All @@ -129,6 +131,7 @@ extension Target {
.tracker_objc,
.Module.coreServices,
.Module.mobileDebugger,
.Module.preflight,
],
path: .Path.tracker)

Expand Down Expand Up @@ -244,6 +247,12 @@ extension Target {
path: .Path.abTesting,
publicHeadersPath: .Path.publicHeaders,
cSettings: [.hspFor(.Path.abTesting)])

static let preflight = target(name: .preflight,
dependencies: [.Core.trackerCore],
path: .Path.preflight,
publicHeadersPath: .Path.publicHeaders,
cSettings: [.hspFor(.Path.preflight)])
}

enum Service {
Expand Down Expand Up @@ -324,6 +333,7 @@ extension Target.Dependency {
static let mobileDebugger = byName(name: .mobileDebugger, condition: .when(platforms: [.iOS]))
static let webCircle = byName(name: .webCircle, condition: .when(platforms: [.iOS]))
static let hybrid = byName(name: .hybrid, condition: .when(platforms: [.iOS, .macCatalyst]))
static let preflight = byName(name: .preflight)
}

enum Service {
Expand Down Expand Up @@ -375,6 +385,7 @@ extension String {
static let ads = "GrowingModule_Ads"
static let apm = "GrowingModule_APM"
static let abTesting = "GrowingModule_ABTesting"
static let preflight = "GrowingModule_Preflight"

// Services
static let database = "GrowingService_Database"
Expand Down Expand Up @@ -410,6 +421,7 @@ extension String {
static let ads = "Modules/Advertising"
static let apm = "Modules/APM"
static let abTesting = "Modules/ABTesting"
static let preflight = "Modules/Preflight"
static let coreServices = "Modules/DefaultServices"

// Services
Expand Down
12 changes: 12 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ let package = Package(
.Module.ads,
.Module.apm,
.Module.abTesting,
.Module.preflight,

// MARK: - Services

Expand Down Expand Up @@ -122,6 +123,7 @@ extension Target {
.Module.hybrid,
.Module.mobileDebugger,
.Module.webCircle,
.Module.preflight,
],
path: .Path.autotracker)

Expand All @@ -130,6 +132,7 @@ extension Target {
.tracker_objc,
.Module.coreServices,
.Module.mobileDebugger,
.Module.preflight,
],
path: .Path.tracker)

Expand Down Expand Up @@ -245,6 +248,12 @@ extension Target {
path: .Path.abTesting,
publicHeadersPath: .Path.publicHeaders,
cSettings: [.hspFor(.Path.abTesting)])

static let preflight = target(name: .preflight,
dependencies: [.Core.trackerCore],
path: .Path.preflight,
publicHeadersPath: .Path.publicHeaders,
cSettings: [.hspFor(.Path.preflight)])
}

enum Service {
Expand Down Expand Up @@ -325,6 +334,7 @@ extension Target.Dependency {
static let mobileDebugger = byName(name: .mobileDebugger, condition: .when(platforms: [.iOS]))
static let webCircle = byName(name: .webCircle, condition: .when(platforms: [.iOS]))
static let hybrid = byName(name: .hybrid, condition: .when(platforms: [.iOS, .macCatalyst]))
static let preflight = byName(name: .preflight)
}

enum Service {
Expand Down Expand Up @@ -376,6 +386,7 @@ extension String {
static let ads = "GrowingModule_Ads"
static let apm = "GrowingModule_APM"
static let abTesting = "GrowingModule_ABTesting"
static let preflight = "GrowingModule_Preflight"

// Services
static let database = "GrowingService_Database"
Expand Down Expand Up @@ -411,6 +422,7 @@ extension String {
static let ads = "Modules/Advertising"
static let apm = "Modules/APM"
static let abTesting = "Modules/ABTesting"
static let preflight = "Modules/Preflight"
static let coreServices = "Modules/DefaultServices"

// Services
Expand Down

0 comments on commit 284d23a

Please sign in to comment.