@hot-updater/android-helper 0.29.3 → 0.29.4

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/index.cjs CHANGED
@@ -21,13 +21,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- let _hot_updater_cli_tools = require("@hot-updater/cli-tools");
25
- let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
26
24
  let path = require("path");
27
25
  path = __toESM(path);
28
- let execa = require("execa");
26
+ let _hot_updater_cli_tools = require("@hot-updater/cli-tools");
27
+ let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
29
28
  let fs = require("fs");
30
29
  fs = __toESM(fs);
30
+ let execa = require("execa");
31
31
  let node_os = require("node:os");
32
32
  node_os = __toESM(node_os);
33
33
  //#region src/utils/createGradleLogger.ts
@@ -303,7 +303,7 @@ async function tryRunAdbReverse({ port = 8081, deviceId }) {
303
303
  ];
304
304
  _hot_updater_cli_tools.p.log.info(`Connecting "${deviceId}" to the development server`);
305
305
  await (0, execa.execa)(adbPath, adbArgs);
306
- } catch (_error) {
306
+ } catch {
307
307
  throw new Error(`Failed to connect "${deviceId}" to development server using "adb reverse"`);
308
308
  }
309
309
  }
@@ -599,7 +599,7 @@ async function tryLaunchAppOnDevice({ device, port, mainActivity, applicationId,
599
599
  try {
600
600
  await (0, execa.execa)(adbPath, adbArgs);
601
601
  spinner.stop(`Launched the app on ${device.readableName} (id: ${deviceId}) and listening on port ${port}.`);
602
- } catch (_error) {
602
+ } catch {
603
603
  spinner.error("Failed to launch the app.");
604
604
  throw new Error(`Failed to launch the app on ${device.readableName}`);
605
605
  }
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
+ import path from "path";
1
2
  import { BuildLogger, getCwd, p } from "@hot-updater/cli-tools";
2
3
  import { generateMinBundleId } from "@hot-updater/plugin-core";
3
- import path from "path";
4
- import { ExecaError, execa } from "execa";
5
4
  import fs from "fs";
5
+ import { ExecaError, execa } from "execa";
6
6
  import os from "node:os";
7
7
  //#region src/utils/createGradleLogger.ts
8
8
  const createGradleLogger = ({ logPrefix }) => new BuildLogger({
@@ -277,7 +277,7 @@ async function tryRunAdbReverse({ port = 8081, deviceId }) {
277
277
  ];
278
278
  p.log.info(`Connecting "${deviceId}" to the development server`);
279
279
  await execa(adbPath, adbArgs);
280
- } catch (_error) {
280
+ } catch {
281
281
  throw new Error(`Failed to connect "${deviceId}" to development server using "adb reverse"`);
282
282
  }
283
283
  }
@@ -573,7 +573,7 @@ async function tryLaunchAppOnDevice({ device, port, mainActivity, applicationId,
573
573
  try {
574
574
  await execa(adbPath, adbArgs);
575
575
  spinner.stop(`Launched the app on ${device.readableName} (id: ${deviceId}) and listening on port ${port}.`);
576
- } catch (_error) {
576
+ } catch {
577
577
  spinner.error("Failed to launch the app.");
578
578
  throw new Error(`Failed to launch the app on ${device.readableName}`);
579
579
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/android-helper",
3
- "version": "0.29.3",
3
+ "version": "0.29.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "execa": "9.5.2",
28
- "@hot-updater/cli-tools": "0.29.3",
29
- "@hot-updater/plugin-core": "0.29.3",
30
- "@hot-updater/core": "0.29.3"
28
+ "@hot-updater/cli-tools": "0.29.4",
29
+ "@hot-updater/core": "0.29.4",
30
+ "@hot-updater/plugin-core": "0.29.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20"