feat(feedback): Add per-form shake detection and sample app showcases#5353
Draft
feat(feedback): Add per-form shake detection and sample app showcases#5353
Conversation
Resolve feedback options once in the constructor and reuse them in onCreate, avoiding duplicate resolution. Add per-form shake-to-show support via SentryShakeDetector that skips activation when the global FeedbackShakeIntegration is already enabled. Update sample app with custom form builder, auto-dismiss, programmatic capture, and shake-to-show examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6f64a4e to
f6f626b
Compare
Contributor
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📲 Install BuildsAndroid
|
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 5865051 | 324.24 ms | 356.02 ms | 31.78 ms |
| b750b96 | 421.25 ms | 444.09 ms | 22.84 ms |
| 9139b91 | 351.35 ms | 355.63 ms | 4.28 ms |
| 3d205d0 | 352.15 ms | 432.53 ms | 80.38 ms |
| c8125f3 | 397.65 ms | 485.14 ms | 87.49 ms |
| f064536 | 329.00 ms | 395.62 ms | 66.62 ms |
| b750b96 | 408.98 ms | 480.32 ms | 71.34 ms |
| f064536 | 349.86 ms | 417.66 ms | 67.80 ms |
| d15471f | 310.26 ms | 377.04 ms | 66.78 ms |
| d15471f | 294.13 ms | 399.49 ms | 105.36 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 5865051 | 0 B | 0 B | 0 B |
| b750b96 | 1.58 MiB | 2.10 MiB | 533.20 KiB |
| 9139b91 | 1.58 MiB | 2.13 MiB | 559.52 KiB |
| 3d205d0 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
| c8125f3 | 1.58 MiB | 2.10 MiB | 532.32 KiB |
| f064536 | 1.58 MiB | 2.20 MiB | 633.90 KiB |
| b750b96 | 1.58 MiB | 2.10 MiB | 533.19 KiB |
| f064536 | 1.58 MiB | 2.20 MiB | 633.90 KiB |
| d15471f | 1.58 MiB | 2.13 MiB | 559.54 KiB |
| d15471f | 1.58 MiB | 2.13 MiB | 559.54 KiB |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add per-instance shake-to-show support on
SentryUserFeedbackFormand update the sample app with examples covering the new feedback API surface.Per-form shake detection
SentryUserFeedbackFormnow supports per-instance shake-to-show via the options configurator (isUseShakeGesture = true). When the globalFeedbackShakeIntegrationis already active, per-form shake is skipped to avoid conflicts. Feedback options are resolved once in the constructor and reused inonCreate.Sample app showcases
Updated
UserFeedbackScreenwith examples for: custom form via Builder with many options, auto-dismiss form, programmaticFeedbackcapture without a form, and shake-to-show toggle.Closes #5304