@react-native-harness/platforms 1.2.0 → 1.3.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.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AppLifecycleMonitor } from './types.js';
|
|
2
|
+
export declare class CrashWatchCancelledError extends Error {
|
|
3
|
+
constructor();
|
|
4
|
+
}
|
|
5
|
+
export declare const createNoopAppLifecycleMonitor: () => AppLifecycleMonitor;
|
|
6
|
+
//# sourceMappingURL=app-lifecycle-monitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-lifecycle-monitor.d.ts","sourceRoot":"","sources":["../src/app-lifecycle-monitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,qBAAa,wBAAyB,SAAQ,KAAK;;CAKlD;AAED,eAAO,MAAM,6BAA6B,QAAO,mBAe/C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class CrashWatchCancelledError extends Error {
|
|
2
|
+
constructor() {
|
|
3
|
+
super('Crash watch was cancelled');
|
|
4
|
+
this.name = 'CrashWatchCancelledError';
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export const createNoopAppLifecycleMonitor = () => ({
|
|
8
|
+
start: async () => undefined,
|
|
9
|
+
stop: async () => undefined,
|
|
10
|
+
dispose: async () => undefined,
|
|
11
|
+
launchRequested: () => undefined,
|
|
12
|
+
launchCompleted: () => undefined,
|
|
13
|
+
launchFailed: () => undefined,
|
|
14
|
+
stopRequested: () => undefined,
|
|
15
|
+
stopCompleted: () => undefined,
|
|
16
|
+
watch: () => ({
|
|
17
|
+
promise: new Promise(() => undefined),
|
|
18
|
+
cancel: () => undefined,
|
|
19
|
+
}),
|
|
20
|
+
reset: () => undefined,
|
|
21
|
+
isAlive: () => true,
|
|
22
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type PermissionName = 'all' | 'calendar' | 'contacts' | 'contacts-limited' | 'location' | 'location-always' | 'photos' | 'photos-add' | 'media-library' | 'mediaLibrary' | 'microphone' | 'motion' | 'reminders' | 'siri' | 'notifications' | 'camera' | (string & {});
|
|
2
|
+
export type PermissionDecision = 'grant' | 'deny' | 'reset';
|
|
3
|
+
export type DevicePermissionCommand = {
|
|
4
|
+
kind: 'permission';
|
|
5
|
+
permission: PermissionName;
|
|
6
|
+
decision: PermissionDecision;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'permission-all';
|
|
9
|
+
decision: PermissionDecision;
|
|
10
|
+
};
|
|
11
|
+
export type DeviceStateMutation = {
|
|
12
|
+
id: string;
|
|
13
|
+
revert: () => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export type DeviceStateApplyResult = {
|
|
16
|
+
mutation: DeviceStateMutation | null;
|
|
17
|
+
warning?: string;
|
|
18
|
+
};
|
|
19
|
+
export type DeviceStateController = {
|
|
20
|
+
permissions: {
|
|
21
|
+
apply: (command: DevicePermissionCommand) => Promise<DeviceStateApplyResult>;
|
|
22
|
+
revert: (mutationId: string) => Promise<void>;
|
|
23
|
+
resetOutstanding: () => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=device-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-state.d.ts","sourceRoot":"","sources":["../src/device-state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,UAAU,GACV,UAAU,GACV,kBAAkB,GAClB,UAAU,GACV,iBAAiB,GACjB,QAAQ,GACR,YAAY,GACZ,eAAe,GACf,cAAc,GACd,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,MAAM,GACN,eAAe,GACf,QAAQ,GACR,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAC/B;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,GACD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC;AAEN,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE;QACX,KAAK,EAAE,CACL,OAAO,EAAE,uBAAuB,KAC7B,OAAO,CAAC,sBAAsB,CAAC,CAAC;QACrC,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;QAC9C,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;KACvC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED