You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7659fe5
Browse filesBrowse the repository at this point in the historyBrowse files
ref(feedback): Rename Dialog to Form across feedback APIs (#5349)
* ref(feedback): Rename Dialog to Form across feedback APIs
Rename SentryUserFeedbackDialog to SentryUserFeedbackForm as the primary
class. Keep SentryUserFeedbackDialog as a deprecated subclass for backward
compatibility.
Also rename internal APIs to use Form naming consistently:
- IDialogHandler -> IFormHandler
- showDialog -> showForm
- setDialogHandler/getDialogHandler -> setFormHandler/getFormHandler
- AndroidUserFeedbackIDialogHandler -> AndroidUserFeedbackFormHandler
Add deprecated Sentry.showUserFeedbackDialog() overloads that delegate to
the new Sentry.showUserFeedbackForm() methods.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(feedback): Preserve binary compatibility for deprecated Builder constructors
Use SentryUserFeedbackDialog.OptionsConfiguration as the parameter type
in the deprecated Builder constructors so old compiled code looking for
the original descriptor still resolves correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Make internal ctor package-private
* Add missing deprecated annotaiton
* Fix api
* docs(changelog): Add deprecation entry for feedback Dialog to Form rename
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs(changelog): Note removal in next major version
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(feedback): Add Sentry.feedback() API
Introduce IFeedbackApi with showForm() and capture() methods,
accessible via Sentry.feedback(). This consolidates all feedback
operations under a single API entry point.
Deprecate Sentry.showUserFeedbackForm(), Sentry.showUserFeedbackDialog(),
Sentry.captureFeedback(), and Sentry.captureUserFeedback() in favor of the
new Sentry.feedback() API. All deprecated methods will be removed in the
next major version.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs(changelog): Update section to Features and remove unpublished API
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ref(feedback): Move FeedbackApi to IScopes
Add feedback() method to IScopes, matching the pattern used by
logger() and metrics(). FeedbackApi takes an IScopes reference instead
of using Sentry.getCurrentScopes() statically.
Implemented in Scopes, NoOpScopes, NoOpHub, HubAdapter, HubScopesWrapper,
and ScopesAdapter. Sentry.feedback() now delegates to
getCurrentScopes().feedback().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ref: Rename showForm() to show() on IFeedbackApi
Since the method is already namespaced under feedback(), the extra
"Form" suffix is redundant. This aligns with the convention used by
logger() and metrics().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: Deprecate UserFeedback and captureUserFeedback, delete showUserFeedbackForm
Deprecate the old `UserFeedback` class and `captureUserFeedback()`
across IScopes, ISentryClient, and all implementations in favor of
`Sentry.feedback().capture()` with the new `Feedback` type.
Delete `Sentry.showUserFeedbackForm()` (3 overloads) as it was never
published.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: Deprecate SentryEnvelopeItem.fromUserFeedback()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: Deprecate SentryClient.buildEnvelope(UserFeedback)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ref: Remove unnecessary SuppressWarnings("deprecation")
Deprecated methods don't need to suppress deprecation warnings for
referencing other deprecated types — the deprecation annotation itself
is sufficient.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix test
* remove redudndant deprecated annotations
* fix test
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-android-core/api/sentry-android-core.api
+27-6Lines changed: 27 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -502,23 +502,44 @@ public class io/sentry/android/core/SentryUserFeedbackButton : android/widget/Bu
502
502
public fun setOnClickListener (Landroid/view/View$OnClickListener;)V
503
503
}
504
504
505
-
public final class io/sentry/android/core/SentryUserFeedbackDialog : android/app/AlertDialog {
506
-
public fun setCancelable (Z)V
507
-
public fun setOnDismissListener (Landroid/content/DialogInterface$OnDismissListener;)V
508
-
public fun show ()V
505
+
public final class io/sentry/android/core/SentryUserFeedbackDialog : io/sentry/android/core/SentryUserFeedbackForm {
509
506
}
510
507
511
-
public class io/sentry/android/core/SentryUserFeedbackDialog$Builder {
508
+
public class io/sentry/android/core/SentryUserFeedbackDialog$Builder : io/sentry/android/core/SentryUserFeedbackForm$Builder {
512
509
public fun <init> (Landroid/content/Context;)V
513
510
public fun <init> (Landroid/content/Context;I)V
514
511
public fun <init> (Landroid/content/Context;ILio/sentry/android/core/SentryUserFeedbackDialog$OptionsConfiguration;)V
515
512
public fun <init> (Landroid/content/Context;Lio/sentry/android/core/SentryUserFeedbackDialog$OptionsConfiguration;)V
516
513
public fun associatedEventId (Lio/sentry/protocol/SentryId;)Lio/sentry/android/core/SentryUserFeedbackDialog$Builder;
514
+
public synthetic fun associatedEventId (Lio/sentry/protocol/SentryId;)Lio/sentry/android/core/SentryUserFeedbackForm$Builder;
517
515
public fun configurator (Lio/sentry/SentryFeedbackOptions$OptionsConfigurator;)Lio/sentry/android/core/SentryUserFeedbackDialog$Builder;
516
+
public synthetic fun configurator (Lio/sentry/SentryFeedbackOptions$OptionsConfigurator;)Lio/sentry/android/core/SentryUserFeedbackForm$Builder;
518
517
public fun create ()Lio/sentry/android/core/SentryUserFeedbackDialog;
518
+
public synthetic fun create ()Lio/sentry/android/core/SentryUserFeedbackForm;
519
+
}
520
+
521
+
public abstract interface class io/sentry/android/core/SentryUserFeedbackDialog$OptionsConfiguration : io/sentry/android/core/SentryUserFeedbackForm$OptionsConfiguration {
522
+
}
523
+
524
+
public class io/sentry/android/core/SentryUserFeedbackForm : android/app/AlertDialog {
525
+
protected fun onCreate (Landroid/os/Bundle;)V
526
+
protected fun onStart ()V
527
+
public fun setCancelable (Z)V
528
+
public fun setOnDismissListener (Landroid/content/DialogInterface$OnDismissListener;)V
529
+
public fun show ()V
530
+
}
531
+
532
+
public class io/sentry/android/core/SentryUserFeedbackForm$Builder {
533
+
public fun <init> (Landroid/content/Context;)V
534
+
public fun <init> (Landroid/content/Context;I)V
535
+
public fun <init> (Landroid/content/Context;ILio/sentry/android/core/SentryUserFeedbackForm$OptionsConfiguration;)V
536
+
public fun <init> (Landroid/content/Context;Lio/sentry/android/core/SentryUserFeedbackForm$OptionsConfiguration;)V
537
+
public fun associatedEventId (Lio/sentry/protocol/SentryId;)Lio/sentry/android/core/SentryUserFeedbackForm$Builder;
538
+
public fun configurator (Lio/sentry/SentryFeedbackOptions$OptionsConfigurator;)Lio/sentry/android/core/SentryUserFeedbackForm$Builder;
539
+
public fun create ()Lio/sentry/android/core/SentryUserFeedbackForm;
519
540
}
520
541
521
-
public abstract interface class io/sentry/android/core/SentryUserFeedbackDialog$OptionsConfiguration {
542
+
public abstract interface class io/sentry/android/core/SentryUserFeedbackForm$OptionsConfiguration {
522
543
public abstract fun configure (Landroid/content/Context;Lio/sentry/SentryFeedbackOptions;)V
0 commit comments