From 4c00f8ce3aa9f8bb8560977533e170613df5d397 Mon Sep 17 00:00:00 2001 From: Dhiogo Brustolin Date: Thu, 19 Jan 2023 08:48:11 +0100 Subject: [PATCH] chore: Fix SentrySwiftUI pod publish (#2624) Fixed the publishing of SentrySwiftUI Co-authored-by: Dhiogo Ramos Brustolin --- SentrySwiftUI.podspec | 16 +++++----------- Sources/SentrySwiftUI/SentryTracedView.swift | 6 ++++++ develop-docs/README.md | 7 +++++++ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/SentrySwiftUI.podspec b/SentrySwiftUI.podspec index 9eb08d52bba..9dbb96dc763 100644 --- a/SentrySwiftUI.podspec +++ b/SentrySwiftUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SentrySwiftUI" - s.version = "0.1.0" + s.version = "8.0.0" s.summary = "Sentry client for SwiftUI" s.homepage = "https://github.com/getsentry/sentry-cocoa" s.license = "mit" @@ -15,15 +15,9 @@ Pod::Spec.new do |s| s.module_name = "SentrySwiftUI" s.requires_arc = true s.frameworks = 'Foundation', 'SwiftUI' - s.swift_versions = "5.0" - s.watchos.pod_target_xcconfig = { - 'OTHER_LDFLAGS' => '$(inherited) -framework WatchKit' - } + s.swift_versions = "5.5" + s.watchos.framework = 'WatchKit' - s.default_subspecs = ['Core'] - - s.subspec 'Core' do |sp| - sp.source_files = "Sources/SentrySwiftUI/**/*.{swift,h,m}" - sp.dependency 'Sentry', "8.0.0" - end + s.source_files = "Sources/SentrySwiftUI/**/*.{swift,h,m}" + s.dependency 'Sentry', "8.0.0" end diff --git a/Sources/SentrySwiftUI/SentryTracedView.swift b/Sources/SentrySwiftUI/SentryTracedView.swift index c5fd90f5f9d..7939b634eae 100644 --- a/Sources/SentrySwiftUI/SentryTracedView.swift +++ b/Sources/SentrySwiftUI/SentryTracedView.swift @@ -5,6 +5,9 @@ import SwiftUI import SentryInternal #endif +/// +/// This feature is EXPERIMENTAL. +/// /// A control to measure the performance of your views and send the result as a transaction to Sentry.io. /// /// You create a transaction by wrapping your views with this. @@ -69,6 +72,9 @@ public struct SentryTracedView: View { } } +/// +/// This feature is EXPERIMENTAL. +/// @available(iOS 13, macOS 10.15, tvOS 13, watchOS 6.0, *) public extension View { func sentryTrace(_ transactionName: String? = nil) -> some View { diff --git a/develop-docs/README.md b/develop-docs/README.md index 06022108546..463ee3821ba 100644 --- a/develop-docs/README.md +++ b/develop-docs/README.md @@ -180,3 +180,10 @@ Date: January 16th, 2023 Contributors: @kahest, @brustolin and @philipphofmann 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. + +## SentrySwiftUI version + +Date: January 18th, 2023 +Contributors: @brustolin and @philipphofmann + +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.