Skip to content

Commit

Permalink
Merge pull request #222 from nachoBonafonte/main
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ignacio Bonafonte authored Aug 13, 2021
2 parents c609ba3 + ae2242c commit 62c9ced
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,33 @@ let package = Package(
.tvOS(.v11),
.watchOS(.v3)],
products: [
.library(name: "OpenTelemetryApi", type: .dynamic, targets: ["OpenTelemetryApi"]),
.library(name: "OpenTelemetryApi", type: .static, targets: ["OpenTelemetryApi"]),
.library(name: "libOpenTelemetryApi", type: .static, targets: ["OpenTelemetryApi"]),
.library(name: "OpenTelemetrySdk", type: .dynamic, targets: ["OpenTelemetrySdk"]),
.library(name: "OpenTelemetrySdk", type: .static, targets: ["OpenTelemetrySdk"]),
.library(name: "libOpenTelemetrySdk", type: .static, targets: ["OpenTelemetrySdk"]),
.library(name: "ResourceExtension", type: .dynamic, targets: ["ResourceExtension"]),
.library(name: "ResourceExtension", type: .static, targets: ["ResourceExtension"]),
.library(name: "libResourceExtension", type: .static, targets: ["ResourceExtension"]),
.library(name: "URLSessionInstrumentation", type: .dynamic, targets: ["URLSessionInstrumentation"]),
.library(name: "URLSessionInstrumentation", type: .static, targets: ["URLSessionInstrumentation"]),
.library(name: "libURLSessionInstrumentation", type: .static, targets: ["URLSessionInstrumentation"]),
.library(name: "SignPostIntegration", type: .dynamic, targets: ["SignPostIntegration"]),
.library(name: "SignPostIntegration", type: .static, targets: ["SignPostIntegration"]),
.library(name: "libSignPostIntegration", type: .static, targets: ["SignPostIntegration"]),
.library(name: "OpenTracingShim-experimental", type: .dynamic, targets: ["OpenTracingShim"]),
.library(name: "OpenTracingShim-experimental", type: .static, targets: ["OpenTracingShim"]),
.library(name: "libOpenTracingShim-experimental", type: .static, targets: ["OpenTracingShim"]),
.library(name: "SwiftMetricsShim-experimental", type: .dynamic, targets: ["SwiftMetricsShim"]),
.library(name: "SwiftMetricsShim-experimental", type: .static, targets: ["SwiftMetricsShim"]),
.library(name: "libSwiftMetricsShim-experimental", type: .static, targets: ["SwiftMetricsShim"]),
.library(name: "JaegerExporter", type: .dynamic, targets: ["JaegerExporter"]),
.library(name: "JaegerExporter", type: .static, targets: ["JaegerExporter"]),
.library(name: "libJaegerExporter", type: .static, targets: ["JaegerExporter"]),
.library(name: "ZipkinExporter", type: .dynamic, targets: ["ZipkinExporter"]),
.library(name: "ZipkinExporter", type: .static, targets: ["ZipkinExporter"]),
.library(name: "libZipkinExporter", type: .static, targets: ["ZipkinExporter"]),
.library(name: "StdoutExporter", type: .dynamic, targets: ["StdoutExporter"]),
.library(name: "StdoutExporter", type: .static, targets: ["StdoutExporter"]),
.library(name: "libStdoutExporter", type: .static, targets: ["StdoutExporter"]),
.library(name: "PrometheusExporter-experimental", type: .dynamic, targets: ["PrometheusExporter"]),
.library(name: "PrometheusExporter-experimental", type: .static, targets: ["PrometheusExporter"]),
.library(name: "libPrometheusExporter-experimental", type: .static, targets: ["PrometheusExporter"]),
.library(name: "OpenTelemetryProtocolExporter", type: .dynamic, targets: ["OpenTelemetryProtocolExporter"]),
.library(name: "OpenTelemetryProtocolExporter", type: .static, targets: ["OpenTelemetryProtocolExporter"]),
.library(name: "libOpenTelemetryProtocolExporter", type: .static, targets: ["OpenTelemetryProtocolExporter"]),
.library(name: "InMemoryExporter", type: .dynamic, targets: ["InMemoryExporter"]),
.library(name: "InMemoryExporter", type: .static, targets: ["InMemoryExporter"]),
.library(name: "libInMemoryExporter", type: .static, targets: ["InMemoryExporter"]),
.library(name: "DatadogExporter", type: .dynamic, targets: ["DatadogExporter"]),
.library(name: "DatadogExporter", type: .static, targets: ["DatadogExporter"]),
.library(name: "libDatadogExporter", type: .static, targets: ["DatadogExporter"]),
.library(name: "NetworkStatus", type: .static, targets: ["NetworkStatus"]),
.library(name: "libNetworkStatus", type: .static, targets: ["NetworkStatus"]),
Expand Down

0 comments on commit 62c9ced

Please sign in to comment.