simvyn 2.5.3 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,8 +38,8 @@
38
38
  }
39
39
  </style>
40
40
  <title>simvyn</title>
41
- <script type="module" crossorigin src="/assets/index-CCGh-MNu.js"></script>
42
- <link rel="stylesheet" crossorigin href="/assets/index-C-atBUQQ.css">
41
+ <script type="module" crossorigin src="/assets/index-y3nYH57L.js"></script>
42
+ <link rel="stylesheet" crossorigin href="/assets/index-B-km6Iwq.css">
43
43
  </head>
44
44
  <body>
45
45
  <div id="root"></div>
package/dist/index.js CHANGED
@@ -96,12 +96,25 @@ async function getAdbDevices() {
96
96
  }
97
97
  }
98
98
  async function getEmulatorAvdName(serial) {
99
+ try {
100
+ const { stdout } = await verboseExec("adb", [
101
+ "-s",
102
+ serial,
103
+ "shell",
104
+ "getprop",
105
+ "ro.boot.qemu.avd_name"
106
+ ]);
107
+ const name = stdout.trim();
108
+ if (name) return name;
109
+ } catch {
110
+ }
99
111
  try {
100
112
  const { stdout } = await verboseExec("adb", ["-s", serial, "emu", "avd", "name"]);
101
- return stdout.trim().split("\n")[0]?.trim() ?? serial;
113
+ const name = stdout.trim().split(/\r?\n/)[0]?.trim();
114
+ if (name && name !== "OK" && !name.startsWith("KO")) return name;
102
115
  } catch {
103
- return serial;
104
116
  }
117
+ return serial;
105
118
  }
106
119
  async function getDeviceProp(serial, prop) {
107
120
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simvyn",
3
- "version": "2.5.3",
3
+ "version": "2.6.0",
4
4
  "type": "module",
5
5
  "description": "Universal mobile device devtool — control iOS Simulators, Android Emulators, and real devices from a single dashboard and CLI",
6
6
  "main": "./dist/index.js",