Skip to content

Commit 4c00f8c

Browse files
authored
chore: Fix SentrySwiftUI pod publish (#2624)
Fixed the publishing of SentrySwiftUI Co-authored-by: Dhiogo Ramos Brustolin <[email protected]>
1 parent b2f82fa commit 4c00f8c

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

SentrySwiftUI.podspec

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SentrySwiftUI"
3-
s.version = "0.1.0"
3+
s.version = "8.0.0"
44
s.summary = "Sentry client for SwiftUI"
55
s.homepage = "https://github.com/getsentry/sentry-cocoa"
66
s.license = "mit"
@@ -15,15 +15,9 @@ Pod::Spec.new do |s|
1515
s.module_name = "SentrySwiftUI"
1616
s.requires_arc = true
1717
s.frameworks = 'Foundation', 'SwiftUI'
18-
s.swift_versions = "5.0"
19-
s.watchos.pod_target_xcconfig = {
20-
'OTHER_LDFLAGS' => '$(inherited) -framework WatchKit'
21-
}
18+
s.swift_versions = "5.5"
19+
s.watchos.framework = 'WatchKit'
2220

23-
s.default_subspecs = ['Core']
24-
25-
s.subspec 'Core' do |sp|
26-
sp.source_files = "Sources/SentrySwiftUI/**/*.{swift,h,m}"
27-
sp.dependency 'Sentry', "8.0.0"
28-
end
21+
s.source_files = "Sources/SentrySwiftUI/**/*.{swift,h,m}"
22+
s.dependency 'Sentry', "8.0.0"
2923
end

Sources/SentrySwiftUI/SentryTracedView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import SwiftUI
55
import SentryInternal
66
#endif
77

8+
///
9+
/// This feature is EXPERIMENTAL.
10+
///
811
/// A control to measure the performance of your views and send the result as a transaction to Sentry.io.
912
///
1013
/// You create a transaction by wrapping your views with this.
@@ -69,6 +72,9 @@ public struct SentryTracedView<Content: View>: View {
6972
}
7073
}
7174

75+
///
76+
/// This feature is EXPERIMENTAL.
77+
///
7278
@available(iOS 13, macOS 10.15, tvOS 13, watchOS 6.0, *)
7379
public extension View {
7480
func sentryTrace(_ transactionName: String? = nil) -> some View {

develop-docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,10 @@ Date: January 16th, 2023
180180
Contributors: @kahest, @brustolin and @philipphofmann
181181

182182
With 8.0.0, we rename the default branch from `master` to `main`. We will keep the `master` branch for backwards compatibility for package managers pointing to the `master` branch.
183+
184+
## SentrySwiftUI version
185+
186+
Date: January 18th, 2023
187+
Contributors: @brustolin and @philipphofmann
188+
189+
We release experimental SentrySwiftUI cocoa package with the version 8.0.0 because all podspecs file in a repo need to have the same version.

0 commit comments

Comments
 (0)