Skip to content

Commit 3eebd9a

Browse files
authored
Merge 5efbaa6 into 7911d0c
2 parents 7911d0c + 5efbaa6 commit 3eebd9a

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
- `Sentry.captureUserFeedback()` and `UserFeedback` are deprecated in favor of `Sentry.feedback().capture()` with the new `Feedback` type
1111
- `SentryUserFeedbackDialog` is deprecated in favor of `SentryUserFeedbackForm`
1212
- All deprecated APIs will be removed in the next major version
13+
- Deprecate `SentryUserFeedbackButton` (View-based and Compose-based) ([#5350](https://github.com/getsentry/sentry-java/pull/5350))
14+
- It will be removed in the next major version
1315

1416
### Dependencies
1517

sentry-android-core/src/main/java/io/sentry/android/core/SentryUserFeedbackButton.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,33 @@
1010
import org.jetbrains.annotations.NotNull;
1111
import org.jetbrains.annotations.Nullable;
1212

13+
/**
14+
* @deprecated `SentryUserFeedbackButton` will be removed in the next major version
15+
*/
16+
@Deprecated
1317
public class SentryUserFeedbackButton extends Button {
1418

1519
private @Nullable OnClickListener delegate;
1620

21+
@Deprecated
1722
public SentryUserFeedbackButton(Context context) {
1823
super(context);
1924
init(context, null, 0, 0);
2025
}
2126

27+
@Deprecated
2228
public SentryUserFeedbackButton(Context context, AttributeSet attrs) {
2329
super(context, attrs);
2430
init(context, attrs, 0, 0);
2531
}
2632

33+
@Deprecated
2734
public SentryUserFeedbackButton(Context context, AttributeSet attrs, int defStyleAttr) {
2835
super(context, attrs, defStyleAttr);
2936
init(context, attrs, defStyleAttr, 0);
3037
}
3138

39+
@Deprecated
3240
public SentryUserFeedbackButton(
3341
Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
3442
super(context, attrs, defStyleAttr, defStyleRes);

sentry-compose/src/androidMain/kotlin/io/sentry/compose/SentryUserFeedbackButton.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import androidx.compose.ui.unit.dp
1515
import io.sentry.Sentry
1616
import io.sentry.SentryFeedbackOptions
1717

18+
@Deprecated("`SentryUserFeedbackButton` will be removed in the next major version")
1819
@Composable
1920
public fun SentryUserFeedbackButton(
2021
modifier: Modifier = Modifier,

0 commit comments

Comments
 (0)