Commit 9e65784
authored
chore: Update Android Test main screen (#301)
## Summary
- Adding check screens for XML and Compose to detect maskign regressions
- Rearrange buttons into section
<img width="402" height="810" alt="image"
src="https://github.com/user-attachments/assets/7d160d25-11c1-4887-bd51-49b21d0488e9"
/>
## How did you test this change?
<!--
Frontend - Leave a screencast or a screenshot to visually describe the
changes.
-->
## Are there any deployment considerations?
<!--
Backend - Do we need to consider migrations or backfilling data?
-->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds XML/Compose masking benchmark and user form screens, restructures
MainActivity UI into sections, removes old activities, and refactors
capture width/height handling.
>
> - **e2e Android app**:
> - **New masking screens**:
> - Add `masking/ComposeMaskingActivity` with full-screen/confirmation
dialog variants, alert/toast demos, and input fields.
> - Add `masking/XMLMaskingActivity` with `activity_masking_bench.xml`
layout mirroring the Compose demo.
> - **User form screens**:
> - Add `masking/ComposeUserFormActivity` (Compose form) and update
`masking/XMLUserFormActivity` (XML form) with expanded fields.
> - **Main screen refactor**:
> - Reorganize `MainActivity` into sections: `Masking`, `Observability`
with composables `MaskingButtons`, `InstrumentationButtons`,
`MetricButtons`, `CustomerApiButtons`.
> - Update navigation to new `masking` activities and
`SmoothieListActivity`; remove references to `SecondaryActivity` and
`CreditCardActivity`.
> - **Resources/Manifest**:
> - Register new activities in `AndroidManifest.xml`.
> - Add `ic_arrow_back` drawable and dialog themes in
`values/themes.xml`.
> - Add new layouts `activity_masking_bench.xml` and update
`activity_user_form.xml`.
> - **SDK (replay)**:
> - Refactor `CaptureSource.doCapture`: rename variables and use
`viewWidth/viewHeight` consistently for bitmap creation and
`CaptureEvent.origWidth/origHeight`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2ff581e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 613fef8 commit 9e65784
File tree
12 files changed
+1089
-423
lines changed- e2e/android/app/src/main
- java/com/example/androidobservability
- masking
- res
- drawable
- layout
- values
- sdk/@launchdarkly/observability-android/lib/src/main/kotlin/com/launchdarkly/observability/replay
12 files changed
+1089
-423
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
0 commit comments