@g9tm/app-diagnostic-lynx 0.2.0 → 0.2.1

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.
@@ -1,45 +1,45 @@
1
- // Generated by @lynx-js/autolink-codegen. Do not edit.
2
- // Parameter types: scripts/android-bridge-types.mjs --fix (Lynx's bridge rejects the generator's Object).
3
- package com.g9tm.appdiagnostic.generated;
4
-
5
- import androidx.annotation.Nullable;
6
- import com.lynx.jsbridge.LynxContextModule;
7
- import com.lynx.jsbridge.LynxMethod;
8
- import com.lynx.react.bridge.Callback;
9
- import com.lynx.tasm.behavior.LynxContext;
10
-
11
- public abstract class G9AppDiagnosticModuleSpec extends LynxContextModule {
12
- public G9AppDiagnosticModuleSpec(LynxContext context) {
13
- super(context);
14
- }
15
-
16
- @LynxMethod
17
- public abstract void capabilities(Callback callback);
18
-
19
- @LynxMethod
20
- public abstract void state(Callback callback);
21
-
22
- @LynxMethod
23
- public abstract void startScreen(String dir, double maxFps, Callback callback);
24
-
25
- @LynxMethod
26
- public abstract void stopScreen(Callback callback);
27
-
28
- @LynxMethod
29
- public abstract void startVoice(String dir, Callback callback);
30
-
31
- @LynxMethod
32
- public abstract void stopVoice(Callback callback);
33
-
34
- @LynxMethod
35
- public abstract void watchTouches(boolean taps, boolean touches, boolean consume, boolean excludeSurfaces, Callback callback);
36
-
37
- @LynxMethod
38
- public abstract void screenshot(String dir, double maxEdge, double quality, Callback callback);
39
-
40
- @LynxMethod
41
- public abstract void sendRange(String requestJson, Callback callback);
42
-
43
- @LynxMethod
44
- public abstract void touch(String kind, double x, double y, double toX, double toY, double durationMs, Callback callback);
45
- }
1
+ // Generated by @lynx-js/autolink-codegen. Do not edit.
2
+ // Parameter types: scripts/android-bridge-types.mjs --fix (Lynx's bridge rejects the generator's Object).
3
+ package com.g9tm.appdiagnostic.generated;
4
+
5
+ import androidx.annotation.Nullable;
6
+ import com.lynx.jsbridge.LynxContextModule;
7
+ import com.lynx.jsbridge.LynxMethod;
8
+ import com.lynx.react.bridge.Callback;
9
+ import com.lynx.tasm.behavior.LynxContext;
10
+
11
+ public abstract class G9AppDiagnosticModuleSpec extends LynxContextModule {
12
+ public G9AppDiagnosticModuleSpec(LynxContext context) {
13
+ super(context);
14
+ }
15
+
16
+ @LynxMethod
17
+ public abstract void capabilities(Callback callback);
18
+
19
+ @LynxMethod
20
+ public abstract void state(Callback callback);
21
+
22
+ @LynxMethod
23
+ public abstract void startScreen(String dir, double maxFps, Callback callback);
24
+
25
+ @LynxMethod
26
+ public abstract void stopScreen(Callback callback);
27
+
28
+ @LynxMethod
29
+ public abstract void startVoice(String dir, Callback callback);
30
+
31
+ @LynxMethod
32
+ public abstract void stopVoice(Callback callback);
33
+
34
+ @LynxMethod
35
+ public abstract void watchTouches(boolean taps, boolean touches, boolean consume, boolean excludeSurfaces, Callback callback);
36
+
37
+ @LynxMethod
38
+ public abstract void screenshot(String dir, double maxEdge, double quality, Callback callback);
39
+
40
+ @LynxMethod
41
+ public abstract void sendRange(String requestJson, Callback callback);
42
+
43
+ @LynxMethod
44
+ public abstract void touch(String kind, double x, double y, double toX, double toY, double durationMs, Callback callback);
45
+ }
@@ -1,70 +1,70 @@
1
- // Generated by @lynx-js/autolink-codegen. Do not edit.
2
-
3
- const ADDON_NAME = "G9AppDiagnosticModule";
4
-
5
- export interface G9AppDiagnosticModuleSpec {
6
- capabilities(callback: (reply: Record<string, unknown>) => void): void;
7
- state(callback: (reply: Record<string, unknown>) => void): void;
8
- startScreen(dir: string, maxFps: number, callback: (reply: Record<string, unknown>) => void): void;
9
- stopScreen(callback: (reply: Record<string, unknown>) => void): void;
10
- startVoice(dir: string, callback: (reply: Record<string, unknown>) => void): void;
11
- stopVoice(callback: (reply: Record<string, unknown>) => void): void;
12
- watchTouches(taps: boolean, touches: boolean, consume: boolean, excludeSurfaces: boolean, callback: (reply: Record<string, unknown>) => void): void;
13
- screenshot(dir: string, maxEdge: number, quality: number, callback: (reply: Record<string, unknown>) => void): void;
14
- sendRange(requestJson: string, callback: (reply: Record<string, unknown>) => void): void;
15
- touch(kind: string, x: number, y: number, toX: number, toY: number, durationMs: number, callback: (reply: Record<string, unknown>) => void): void;
16
- }
17
-
18
- type AddonExports = Record<string, unknown>;
19
-
20
- declare let NativeModules: Record<string, unknown>;
21
-
22
- declare global {
23
- interface LynxNapiLoader {
24
- load(moduleName: string): AddonExports | null | undefined;
25
- }
26
-
27
- // eslint-disable-next-line no-var
28
- var __lynxNapiLoader: LynxNapiLoader | undefined;
29
-
30
- function getNapiLoader(): LynxNapiLoader | undefined;
31
- }
32
-
33
- declare const lynx: {
34
- getModuleLoader?(): LynxNapiLoader | undefined;
35
- };
36
-
37
- function getNativeModules(): Record<string, unknown> | undefined {
38
- const globalObject = globalThis as unknown as {
39
- NativeModules?: Record<string, unknown>;
40
- };
41
- return typeof NativeModules !== 'undefined'
42
- ? NativeModules
43
- : globalObject.NativeModules;
44
- }
45
-
46
- function installG9AppDiagnosticModuleShim(): void {
47
-
48
- }
49
-
50
- export function requireG9AppDiagnosticModule(): G9AppDiagnosticModuleSpec {
51
- const nativeModules = getNativeModules();
52
- const existingModule = nativeModules?.[ADDON_NAME];
53
- if (existingModule !== undefined && existingModule !== null) {
54
- return existingModule as G9AppDiagnosticModuleSpec;
55
- }
56
-
57
-
58
-
59
- throw new Error(`Native module "${ADDON_NAME}" is unavailable.`);
60
- }
61
-
62
- export const G9AppDiagnosticModule = new Proxy({}, {
63
- get(_target, property) {
64
- return requireG9AppDiagnosticModule()[property as keyof G9AppDiagnosticModuleSpec];
65
- },
66
- }) as G9AppDiagnosticModuleSpec;
67
-
68
- installG9AppDiagnosticModuleShim();
69
-
70
- export default G9AppDiagnosticModule;
1
+ // Generated by @lynx-js/autolink-codegen. Do not edit.
2
+
3
+ const ADDON_NAME = "G9AppDiagnosticModule";
4
+
5
+ export interface G9AppDiagnosticModuleSpec {
6
+ capabilities(callback: (reply: Record<string, unknown>) => void): void;
7
+ state(callback: (reply: Record<string, unknown>) => void): void;
8
+ startScreen(dir: string, maxFps: number, callback: (reply: Record<string, unknown>) => void): void;
9
+ stopScreen(callback: (reply: Record<string, unknown>) => void): void;
10
+ startVoice(dir: string, callback: (reply: Record<string, unknown>) => void): void;
11
+ stopVoice(callback: (reply: Record<string, unknown>) => void): void;
12
+ watchTouches(taps: boolean, touches: boolean, consume: boolean, excludeSurfaces: boolean, callback: (reply: Record<string, unknown>) => void): void;
13
+ screenshot(dir: string, maxEdge: number, quality: number, callback: (reply: Record<string, unknown>) => void): void;
14
+ sendRange(requestJson: string, callback: (reply: Record<string, unknown>) => void): void;
15
+ touch(kind: string, x: number, y: number, toX: number, toY: number, durationMs: number, callback: (reply: Record<string, unknown>) => void): void;
16
+ }
17
+
18
+ type AddonExports = Record<string, unknown>;
19
+
20
+ declare let NativeModules: Record<string, unknown>;
21
+
22
+ declare global {
23
+ interface LynxNapiLoader {
24
+ load(moduleName: string): AddonExports | null | undefined;
25
+ }
26
+
27
+ // eslint-disable-next-line no-var
28
+ var __lynxNapiLoader: LynxNapiLoader | undefined;
29
+
30
+ function getNapiLoader(): LynxNapiLoader | undefined;
31
+ }
32
+
33
+ declare const lynx: {
34
+ getModuleLoader?(): LynxNapiLoader | undefined;
35
+ };
36
+
37
+ function getNativeModules(): Record<string, unknown> | undefined {
38
+ const globalObject = globalThis as unknown as {
39
+ NativeModules?: Record<string, unknown>;
40
+ };
41
+ return typeof NativeModules !== 'undefined'
42
+ ? NativeModules
43
+ : globalObject.NativeModules;
44
+ }
45
+
46
+ function installG9AppDiagnosticModuleShim(): void {
47
+
48
+ }
49
+
50
+ export function requireG9AppDiagnosticModule(): G9AppDiagnosticModuleSpec {
51
+ const nativeModules = getNativeModules();
52
+ const existingModule = nativeModules?.[ADDON_NAME];
53
+ if (existingModule !== undefined && existingModule !== null) {
54
+ return existingModule as G9AppDiagnosticModuleSpec;
55
+ }
56
+
57
+
58
+
59
+ throw new Error(`Native module "${ADDON_NAME}" is unavailable.`);
60
+ }
61
+
62
+ export const G9AppDiagnosticModule = new Proxy({}, {
63
+ get(_target, property) {
64
+ return requireG9AppDiagnosticModule()[property as keyof G9AppDiagnosticModuleSpec];
65
+ },
66
+ }) as G9AppDiagnosticModuleSpec;
67
+
68
+ installG9AppDiagnosticModuleShim();
69
+
70
+ export default G9AppDiagnosticModule;
package/lynx.lib.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "platforms": {
3
- "android": {
4
- "packageName": "com.g9tm.appdiagnostic",
5
- "sourceDir": "android"
6
- },
7
- "ios": {
8
- "sourceDir": "ios",
9
- "podspecPath": "ios/g9tm-app-diagnostic-lynx.podspec"
10
- }
11
- }
12
- }
1
+ {
2
+ "platforms": {
3
+ "android": {
4
+ "packageName": "com.g9tm.appdiagnostic",
5
+ "sourceDir": "android"
6
+ },
7
+ "ios": {
8
+ "sourceDir": "ios",
9
+ "podspecPath": "ios/g9tm-app-diagnostic-lynx.podspec"
10
+ }
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@g9tm/app-diagnostic-lynx",
3
- "version": "0.2.0",
4
- "description": "Lynx native half of @g9tm/app-diagnostic: the app's own window as an MP4, a spoken note, the window screenshot, a file range sent natively, and the tester gesture (observed or consumed). No product names: the host configures everything.",
5
- "type": "module",
6
- "main": "src/index.ts",
7
- "types": "src/index.ts",
8
- "exports": {
9
- ".": {
10
- "source": "./src/index.ts",
11
- "types": "./src/index.ts",
12
- "default": "./src/index.ts"
13
- },
14
- "./package.json": "./package.json"
15
- },
16
- "files": [
17
- "src",
18
- "generated",
19
- "types",
20
- "android/build.gradle.kts",
21
- "android/consumer-rules.pro",
22
- "android/src/main",
23
- "ios/g9tm-app-diagnostic-lynx.podspec",
24
- "ios/src",
25
- "lynx.lib.json",
26
- "README.md",
27
- "Native-Validation-Pending.md"
28
- ],
29
- "scripts": {
30
- "test": "node --test test/*.test.ts",
31
- "test:android-jvm": "node scripts/run-gradle.mjs -p jvm test",
32
- "check:android-module": "node scripts/run-gradle.mjs -p android-check build"
33
- },
34
- "peerDependencies": {
35
- "@g9tm/app-diagnostic": "^0.2.0"
36
- },
37
- "license": "UNLICENSED",
38
- "engines": { "node": ">=22.6" }
39
- }
1
+ {
2
+ "name": "@g9tm/app-diagnostic-lynx",
3
+ "version": "0.2.1",
4
+ "description": "Lynx native half of @g9tm/app-diagnostic: the app's own window as an MP4, a spoken note, the window screenshot, a file range sent natively, and the tester gesture (observed or consumed). No product names: the host configures everything.",
5
+ "type": "module",
6
+ "main": "src/index.ts",
7
+ "types": "src/index.ts",
8
+ "exports": {
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./src/index.ts",
12
+ "default": "./src/index.ts"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "files": [
17
+ "src",
18
+ "generated",
19
+ "types",
20
+ "android/build.gradle.kts",
21
+ "android/consumer-rules.pro",
22
+ "android/src/main",
23
+ "ios/g9tm-app-diagnostic-lynx.podspec",
24
+ "ios/src",
25
+ "lynx.lib.json",
26
+ "README.md",
27
+ "Native-Validation-Pending.md"
28
+ ],
29
+ "scripts": {
30
+ "test": "node --test test/*.test.ts",
31
+ "test:android-jvm": "node scripts/run-gradle.mjs -p jvm test",
32
+ "check:android-module": "node scripts/run-gradle.mjs -p android-check build"
33
+ },
34
+ "peerDependencies": {
35
+ "@g9tm/app-diagnostic": "^0.2.1"
36
+ },
37
+ "license": "MIT",
38
+ "engines": { "node": ">=22.6" }
39
+ }