@midscene/android 0.23.4 → 0.23.5-beta-20250728060950.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.
package/dist/es/index.js CHANGED
@@ -1,3 +1,11 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined")
5
+ return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
8
+
1
9
  // src/page/index.ts
2
10
  import assert from "assert";
3
11
  import { randomUUID } from "crypto";
@@ -436,7 +444,8 @@ ${Object.keys(size).filter((key) => size[key]).map(
436
444
  async ensureYadb() {
437
445
  if (!this.yadbPushed) {
438
446
  const adb = await this.getAdb();
439
- const yadbBin = path.join(__dirname, "../../bin/yadb");
447
+ const androidPkgJson = __require.resolve("@midscene/android/package.json");
448
+ const yadbBin = path.join(path.dirname(androidPkgJson), "bin", "yadb");
440
449
  await adb.push(yadbBin, "/data/local/tmp");
441
450
  this.yadbPushed = true;
442
451
  }
package/dist/lib/index.js CHANGED
@@ -471,7 +471,8 @@ ${Object.keys(size).filter((key) => size[key]).map(
471
471
  async ensureYadb() {
472
472
  if (!this.yadbPushed) {
473
473
  const adb = await this.getAdb();
474
- const yadbBin = import_node_path.default.join(__dirname, "../../bin/yadb");
474
+ const androidPkgJson = require.resolve("@midscene/android/package.json");
475
+ const yadbBin = import_node_path.default.join(import_node_path.default.dirname(androidPkgJson), "bin", "yadb");
475
476
  await adb.push(yadbBin, "/data/local/tmp");
476
477
  this.yadbPushed = true;
477
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midscene/android",
3
- "version": "0.23.4",
3
+ "version": "0.23.5-beta-20250728060950.0",
4
4
  "description": "Android automation library for Midscene",
5
5
  "keywords": [
6
6
  "Android UI automation",
@@ -20,13 +20,14 @@
20
20
  ".": {
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "default": "./dist/lib/index.js"
23
- }
23
+ },
24
+ "./package.json": "./package.json"
24
25
  },
25
26
  "dependencies": {
26
27
  "appium-adb": "12.12.1",
27
- "@midscene/core": "0.23.4",
28
- "@midscene/shared": "0.23.4",
29
- "@midscene/web": "0.23.4"
28
+ "@midscene/shared": "0.23.5-beta-20250728060950.0",
29
+ "@midscene/web": "0.23.5-beta-20250728060950.0",
30
+ "@midscene/core": "0.23.5-beta-20250728060950.0"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@modern-js/module-tools": "2.60.6",