Skip to content

Commit 62c9ced

Browse files
author
Ignacio Bonafonte
authored
Merge pull request #222 from nachoBonafonte/main
Make all SPM provided targets static As talked in the SIG meeting, make all libraries static, having them dynamic creates confusion and issues, Swift way of handling it is very error prone and there is no real reason to prefer them dynamic. We will remove the lib... versions in a future revision.
2 parents c609ba3 + ae2242c commit 62c9ced

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Package.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@ let package = Package(
1010
.tvOS(.v11),
1111
.watchOS(.v3)],
1212
products: [
13-
.library(name: "OpenTelemetryApi", type: .dynamic, targets: ["OpenTelemetryApi"]),
13+
.library(name: "OpenTelemetryApi", type: .static, targets: ["OpenTelemetryApi"]),
1414
.library(name: "libOpenTelemetryApi", type: .static, targets: ["OpenTelemetryApi"]),
15-
.library(name: "OpenTelemetrySdk", type: .dynamic, targets: ["OpenTelemetrySdk"]),
15+
.library(name: "OpenTelemetrySdk", type: .static, targets: ["OpenTelemetrySdk"]),
1616
.library(name: "libOpenTelemetrySdk", type: .static, targets: ["OpenTelemetrySdk"]),
17-
.library(name: "ResourceExtension", type: .dynamic, targets: ["ResourceExtension"]),
17+
.library(name: "ResourceExtension", type: .static, targets: ["ResourceExtension"]),
1818
.library(name: "libResourceExtension", type: .static, targets: ["ResourceExtension"]),
19-
.library(name: "URLSessionInstrumentation", type: .dynamic, targets: ["URLSessionInstrumentation"]),
19+
.library(name: "URLSessionInstrumentation", type: .static, targets: ["URLSessionInstrumentation"]),
2020
.library(name: "libURLSessionInstrumentation", type: .static, targets: ["URLSessionInstrumentation"]),
21-
.library(name: "SignPostIntegration", type: .dynamic, targets: ["SignPostIntegration"]),
21+
.library(name: "SignPostIntegration", type: .static, targets: ["SignPostIntegration"]),
2222
.library(name: "libSignPostIntegration", type: .static, targets: ["SignPostIntegration"]),
23-
.library(name: "OpenTracingShim-experimental", type: .dynamic, targets: ["OpenTracingShim"]),
23+
.library(name: "OpenTracingShim-experimental", type: .static, targets: ["OpenTracingShim"]),
2424
.library(name: "libOpenTracingShim-experimental", type: .static, targets: ["OpenTracingShim"]),
25-
.library(name: "SwiftMetricsShim-experimental", type: .dynamic, targets: ["SwiftMetricsShim"]),
25+
.library(name: "SwiftMetricsShim-experimental", type: .static, targets: ["SwiftMetricsShim"]),
2626
.library(name: "libSwiftMetricsShim-experimental", type: .static, targets: ["SwiftMetricsShim"]),
27-
.library(name: "JaegerExporter", type: .dynamic, targets: ["JaegerExporter"]),
27+
.library(name: "JaegerExporter", type: .static, targets: ["JaegerExporter"]),
2828
.library(name: "libJaegerExporter", type: .static, targets: ["JaegerExporter"]),
29-
.library(name: "ZipkinExporter", type: .dynamic, targets: ["ZipkinExporter"]),
29+
.library(name: "ZipkinExporter", type: .static, targets: ["ZipkinExporter"]),
3030
.library(name: "libZipkinExporter", type: .static, targets: ["ZipkinExporter"]),
31-
.library(name: "StdoutExporter", type: .dynamic, targets: ["StdoutExporter"]),
31+
.library(name: "StdoutExporter", type: .static, targets: ["StdoutExporter"]),
3232
.library(name: "libStdoutExporter", type: .static, targets: ["StdoutExporter"]),
33-
.library(name: "PrometheusExporter-experimental", type: .dynamic, targets: ["PrometheusExporter"]),
33+
.library(name: "PrometheusExporter-experimental", type: .static, targets: ["PrometheusExporter"]),
3434
.library(name: "libPrometheusExporter-experimental", type: .static, targets: ["PrometheusExporter"]),
35-
.library(name: "OpenTelemetryProtocolExporter", type: .dynamic, targets: ["OpenTelemetryProtocolExporter"]),
35+
.library(name: "OpenTelemetryProtocolExporter", type: .static, targets: ["OpenTelemetryProtocolExporter"]),
3636
.library(name: "libOpenTelemetryProtocolExporter", type: .static, targets: ["OpenTelemetryProtocolExporter"]),
37-
.library(name: "InMemoryExporter", type: .dynamic, targets: ["InMemoryExporter"]),
37+
.library(name: "InMemoryExporter", type: .static, targets: ["InMemoryExporter"]),
3838
.library(name: "libInMemoryExporter", type: .static, targets: ["InMemoryExporter"]),
39-
.library(name: "DatadogExporter", type: .dynamic, targets: ["DatadogExporter"]),
39+
.library(name: "DatadogExporter", type: .static, targets: ["DatadogExporter"]),
4040
.library(name: "libDatadogExporter", type: .static, targets: ["DatadogExporter"]),
4141
.library(name: "NetworkStatus", type: .static, targets: ["NetworkStatus"]),
4242
.library(name: "libNetworkStatus", type: .static, targets: ["NetworkStatus"]),

0 commit comments

Comments
 (0)