forked from open-telemetry/opentelemetry-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenTelemetryApi.podspec
24 lines (20 loc) · 1.13 KB
/
OpenTelemetryApi.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pod::Spec.new do |spec|
spec.name = "OpenTelemetryApi"
spec.version = "1.10.1"
spec.summary = "Swift OpenTelemetryApi"
spec.homepage = "https://github.com/open-telemetry/opentelemetry-swift"
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.git", :tag => spec.version.to_s }
spec.source_files = "Sources/OpenTelemetryApi/**/*.swift"
spec.swift_version = "5.9"
spec.ios.deployment_target = "13.0"
spec.tvos.deployment_target = "13.0"
spec.watchos.deployment_target = "6.0"
# 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