Skip to content

Commit 8a4f0d1

Browse files
committed
fix other platform builds
1 parent 3f1646b commit 8a4f0d1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/Sentry/Public/SentrySDK.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ SENTRY_NO_INIT
271271
*/
272272
+ (void)captureFeedback:(SentryFeedback *)feedback NS_SWIFT_NAME(capture(feedback:));
273273

274+
#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
275+
274276
/**
275277
* Show the feedback widget button.
276278
* @warning This is an experimental feature and may still have bugs.
@@ -287,6 +289,8 @@ SENTRY_NO_INIT
287289
*/
288290
+ (void)hideFeedbackWidget API_AVAILABLE(ios(13.0));
289291

292+
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
293+
290294
/**
291295
* Adds a Breadcrumb to the current Scope of the current Hub. If the total number of breadcrumbs
292296
* exceeds the @c SentryOptions.maxBreadcrumbs the SDK removes the oldest breadcrumb.

Sources/Sentry/SentrySDK.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ + (void)captureFeedback:(SentryFeedback *)feedback
432432
[SentrySDK.currentHub captureFeedback:feedback];
433433
}
434434

435+
#if TARGET_OS_IOS && SENTRY_HAS_UIKIT
436+
435437
+ (void)showFeedbackWidget
436438
{
437439
if (@available(iOS 13.0, *)) {
@@ -454,6 +456,8 @@ + (void)hideFeedbackWidget
454456
}
455457
}
456458

459+
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
460+
457461
+ (void)addBreadcrumb:(SentryBreadcrumb *)crumb
458462
{
459463
[SentrySDK.currentHub addBreadcrumb:crumb];

0 commit comments

Comments
 (0)