Skip to content

Commit 0b75639

Browse files
committed
Adding support for resource id
1 parent ba20664 commit 0b75639

File tree

6 files changed

+56
-2
lines changed

6 files changed

+56
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"hot",
1313
"reload"
1414
],
15-
"version": "2.0.5",
15+
"version": "2.0.6",
1616
"homepage": "https://github.com/jwlilly/Android-Accessibility-Inspector-Ap/#readme",
1717
"bugs": {
1818
"url": "https://github.com/jwlilly/Android-Accessibility-Inspector-App/issues"

release/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "android-accessibility-inspector",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "View and analyze the accessibility tree for Android apps",
55
"license": "GPL-3.0-only",
66
"author": {

src/input.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ body {
4747
overflow: hidden;
4848
}
4949

50+
.break-words {
51+
word-break: break-word;
52+
word-wrap: break-word;
53+
}
54+
5055
.tree-view .indicator:not(.search-term) .badge {
5156
display: none;
5257
}

src/main/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ async function adbStartAccService(device: IDevice): Promise<boolean> {
131131
async function adbIsAppInstalled(device: IDevice): Promise<boolean> {
132132
if (adb) {
133133
const packages = await adb.listPackages(device.id);
134+
// TODO: check for the app version
134135
return packages.includes('com.jwlilly.accessibilityinspector');
135136
}
136137
return true;

src/renderer/index.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8623,6 +8623,10 @@ html:has(.drawer-open.drawer-open) {
86238623
height: 24px;
86248624
}
86258625

8626+
.h-\[36px\] {
8627+
height: 36px;
8628+
}
8629+
86268630
.h-\[400px\] {
86278631
height: 400px;
86288632
}
@@ -8631,6 +8635,18 @@ html:has(.drawer-open.drawer-open) {
86318635
height: 7%;
86328636
}
86338637

8638+
.h-\[calc\(100vh-22em\)\] {
8639+
height: calc(100vh - 22em);
8640+
}
8641+
8642+
.h-\[calc\(100vh-8em\)\] {
8643+
height: calc(100vh - 8em);
8644+
}
8645+
8646+
.h-auto {
8647+
height: auto;
8648+
}
8649+
86348650
.h-full {
86358651
height: 100%;
86368652
}
@@ -8683,6 +8699,10 @@ html:has(.drawer-open.drawer-open) {
86838699
width: 1%;
86848700
}
86858701

8702+
.w-\[12\%\] {
8703+
width: 12%;
8704+
}
8705+
86868706
.w-\[20\%\] {
86878707
width: 20%;
86888708
}
@@ -8873,6 +8893,10 @@ html:has(.drawer-open.drawer-open) {
88738893
white-space: nowrap;
88748894
}
88758895

8896+
.break-words {
8897+
overflow-wrap: break-word;
8898+
}
8899+
88768900
.rounded {
88778901
border-radius: 0.25rem;
88788902
}
@@ -9190,6 +9214,10 @@ html:has(.drawer-open.drawer-open) {
91909214
padding-bottom: 0.5rem;
91919215
}
91929216

9217+
.pl-4 {
9218+
padding-left: 1rem;
9219+
}
9220+
91939221
.pl-\[10px\] {
91949222
padding-left: 10px;
91959223
}
@@ -9641,6 +9669,11 @@ body {
96419669
overflow: hidden;
96429670
}
96439671

9672+
.break-words {
9673+
word-break: break-word;
9674+
word-wrap: break-word;
9675+
}
9676+
96449677
.tree-view .indicator:not(.search-term) .badge {
96459678
display: none;
96469679
}
@@ -10188,6 +10221,15 @@ body {
1018810221
}
1018910222
}
1019010223

10224+
.hover\:stroke-error-content:hover {
10225+
stroke: var(--fallback-erc,oklch(var(--erc)/1));
10226+
}
10227+
10228+
.hover\:\!text-error-content:hover {
10229+
--tw-text-opacity: 1 !important;
10230+
color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity))) !important;
10231+
}
10232+
1019110233
.focus\:outline-offset-0:focus {
1019210234
outline-offset: 0px;
1019310235
}

src/renderer/views/view-details.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ const ViewDetails = function ViewDetails({ selectedView, viewHierarchy }: any) {
104104
</tr>
105105
</thead>
106106
<tbody>
107+
<tr>
108+
<td>resource id</td>
109+
<td className="font-mono break-words">
110+
{transformData(view.metadata.resourceId)}
111+
</td>
112+
</tr>
107113
<tr>
108114
<td>role</td>
109115
<td className="font-mono">{transformData(view.metadata.role)}</td>

0 commit comments

Comments
 (0)