Skip to content

Commit 9e65784

Browse files
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

12 files changed

+1089
-423
lines changed

e2e/android/app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,24 @@
1717
android:usesCleartextTraffic="true"
1818
tools:targetApi="31" >
1919
<activity
20-
android:name=".SecondaryActivity"
20+
android:name=".masking.ComposeUserFormActivity"
2121
android:exported="false"
2222
android:label="@string/title_activity_secondary"
2323
android:theme="@style/Theme.AndroidObservability" />
2424
<activity
25-
android:name=".CreditCardActivity"
25+
android:name=".masking.XMLUserFormActivity"
2626
android:exported="false"
2727
android:theme="@style/Theme.AndroidObservability" />
28+
<activity
29+
android:name=".masking.ComposeMaskingActivity"
30+
android:exported="false"
31+
android:label="Compose Masking"
32+
android:theme="@style/Theme.AndroidObservability" />
33+
<activity
34+
android:name=".masking.XMLMaskingActivity"
35+
android:exported="false"
36+
android:label="XML Masking"
37+
android:theme="@style/Theme.AndroidObservability" />
2838
<activity
2939
android:name=".smoothie.SmoothieListActivity"
3040
android:exported="false"

0 commit comments

Comments
 (0)