forked from open-telemetry/opentelemetry-swift-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenTelemetry-Swift-Api.podspec
More file actions
26 lines (23 loc) · 1.26 KB
/
OpenTelemetry-Swift-Api.podspec
File metadata and controls
26 lines (23 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Pod::Spec.new do |spec|
spec.name = "OpenTelemetry-Swift-Api"
spec.version = "2.3.0"
spec.summary = "Swift OpenTelemetryApi"
spec.homepage = "https://github.com/open-telemetry/opentelemetry-swift-core"
spec.documentation_url = "https://opentelemetry.io/docs/languages/swift"
spec.license = { :type => "Apache 2.0", :file => "LICENSE" }
spec.authors = "OpenTelemetry Authors"
spec.source = { :git => "https://github.com/open-telemetry/opentelemetry-swift-core.git", :tag => spec.version.to_s }
spec.source_files = "Sources/OpenTelemetryApi/**/*.swift"
spec.swift_version = "5.10"
spec.osx.deployment_target = "10.13"
spec.ios.deployment_target = "12.0"
spec.tvos.deployment_target = "12.0"
spec.watchos.deployment_target = "4.0"
spec.visionos.deployment_target = "1.0"
spec.module_name = "OpenTelemetryApi"
# This is necessary because we use the `package` keyword to access some properties in `OpenTelemetryApi`
# This keyword was introduced in Swift 5.9 and it's tightly bound to SPM.
# To provide the correct values to the flags `-package-name` and `-module-name` we checked out the outputs from:
# `swift build --verbose`
spec.pod_target_xcconfig = { "OTHER_SWIFT_FLAGS" => "-module-name OpenTelemetryApi -package-name opentelemetry_swift" }
end