assistsx-js 0.0.1341 → 0.0.1350

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.
@@ -325,6 +325,8 @@ export declare class AssistsX {
325
325
  longPressDuration?: number;
326
326
  }): Promise<boolean>;
327
327
  static getAppInfo(packageName: string): Promise<any>;
328
+ static getAndroidID(): Promise<any>;
329
+ static getMacAddress(): Promise<any>;
328
330
  /**
329
331
  * 获取屏幕尺寸
330
332
  * @returns 屏幕尺寸对象
package/dist/AssistsX.js CHANGED
@@ -448,6 +448,14 @@ export class AssistsX {
448
448
  const response = await this.asyncCall(CallMethod.getAppInfo, { args: { packageName } });
449
449
  return response.getDataOrDefault({});
450
450
  }
451
+ static async getAndroidID() {
452
+ const response = this.call(CallMethod.getAndroidID);
453
+ return response.getDataOrDefault("");
454
+ }
455
+ static async getMacAddress() {
456
+ const response = await this.asyncCall(CallMethod.getMacAddress);
457
+ return response.getDataOrDefault({});
458
+ }
451
459
  /**
452
460
  * 获取屏幕尺寸
453
461
  * @returns 屏幕尺寸对象
@@ -38,5 +38,7 @@ export declare const CallMethod: {
38
38
  readonly performLinearGesture: "performLinearGesture";
39
39
  readonly longPressGestureAutoPaste: "longPressGestureAutoPaste";
40
40
  readonly getAppInfo: "getAppInfo";
41
+ readonly getMacAddress: "getMacAddress";
42
+ readonly getAndroidID: "getAndroidID";
41
43
  };
42
44
  export type CallMethodType = typeof CallMethod[keyof typeof CallMethod];
@@ -39,4 +39,6 @@ export const CallMethod = {
39
39
  performLinearGesture: "performLinearGesture",
40
40
  longPressGestureAutoPaste: "longPressGestureAutoPaste",
41
41
  getAppInfo: "getAppInfo",
42
+ getMacAddress: "getMacAddress",
43
+ getAndroidID: "getAndroidID",
42
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.1341",
3
+ "version": "0.0.1350",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/AssistsX.ts CHANGED
@@ -522,6 +522,14 @@ export class AssistsX {
522
522
  const response = await this.asyncCall(CallMethod.getAppInfo, { args: { packageName } });
523
523
  return response.getDataOrDefault({});
524
524
  }
525
+ public static async getAndroidID(): Promise<any> {
526
+ const response = this.call(CallMethod.getAndroidID);
527
+ return response.getDataOrDefault("");
528
+ }
529
+ public static async getMacAddress(): Promise<any> {
530
+ const response = await this.asyncCall(CallMethod.getMacAddress);
531
+ return response.getDataOrDefault({});
532
+ }
525
533
 
526
534
  /**
527
535
  * 获取屏幕尺寸
package/src/CallMethod.ts CHANGED
@@ -41,6 +41,8 @@ export const CallMethod = {
41
41
  longPressGestureAutoPaste: "longPressGestureAutoPaste",
42
42
 
43
43
  getAppInfo: "getAppInfo",
44
+ getMacAddress: "getMacAddress",
45
+ getAndroidID: "getAndroidID",
44
46
  } as const;
45
47
 
46
48
  // 导出类型定义