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.
- package/dist/AssistsX.d.ts +2 -0
- package/dist/AssistsX.js +8 -0
- package/dist/CallMethod.d.ts +2 -0
- package/dist/CallMethod.js +2 -0
- package/package.json +1 -1
- package/src/AssistsX.ts +8 -0
- package/src/CallMethod.ts +2 -0
package/dist/AssistsX.d.ts
CHANGED
|
@@ -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 屏幕尺寸对象
|
package/dist/CallMethod.d.ts
CHANGED
|
@@ -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];
|
package/dist/CallMethod.js
CHANGED
package/package.json
CHANGED
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
|
* 获取屏幕尺寸
|