@mentra/crust 0.1.0-beta.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.
- package/README.md +41 -0
- package/android/build.gradle +146 -0
- package/android/src/internal/AndroidManifest.xml +9 -0
- package/android/src/internal/java/com/mentra/crust/receivers/CaptionsTesterIncidentReceiver.kt +46 -0
- package/android/src/main/AndroidManifest.xml +19 -0
- package/android/src/main/java/com/mentra/crust/CrustModule.kt +1042 -0
- package/android/src/main/java/com/mentra/crust/CrustView.kt +30 -0
- package/android/src/main/java/com/mentra/crust/heading/HeadingManager.kt +150 -0
- package/android/src/main/java/com/mentra/crust/jsc/JSCDispatcher.kt +189 -0
- package/android/src/main/java/com/mentra/crust/jsc/JSCPolyfillBridge.kt +287 -0
- package/android/src/main/java/com/mentra/crust/jsc/JSCRuntime.kt +593 -0
- package/android/src/main/java/com/mentra/crust/navigation/NavigationManager.kt +1445 -0
- package/android/src/main/java/com/mentra/crust/services/NotificationListener.kt +319 -0
- package/android/src/main/java/com/mentra/crust/utils/ImageProcessor.java +452 -0
- package/android/src/main/java/com/mentra/crust/utils/VideoStabilizer.kt +556 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/app.plugin.js +3 -0
- package/build/Crust.types.d.ts +148 -0
- package/build/Crust.types.d.ts.map +1 -0
- package/build/Crust.types.js +2 -0
- package/build/Crust.types.js.map +1 -0
- package/build/CrustModule.d.ts +182 -0
- package/build/CrustModule.d.ts.map +1 -0
- package/build/CrustModule.js +4 -0
- package/build/CrustModule.js.map +1 -0
- package/build/CrustModule.web.d.ts +34 -0
- package/build/CrustModule.web.d.ts.map +1 -0
- package/build/CrustModule.web.js +63 -0
- package/build/CrustModule.web.js.map +1 -0
- package/build/CrustView.d.ts +4 -0
- package/build/CrustView.d.ts.map +1 -0
- package/build/CrustView.js +7 -0
- package/build/CrustView.js.map +1 -0
- package/build/CrustView.web.d.ts +4 -0
- package/build/CrustView.web.d.ts.map +1 -0
- package/build/CrustView.web.js +7 -0
- package/build/CrustView.web.js.map +1 -0
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +6 -0
- package/build/index.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/Crust.podspec +65 -0
- package/ios/CrustModule.swift +781 -0
- package/ios/CrustView.swift +38 -0
- package/ios/Resources/startup.js +814 -0
- package/ios/Source/JSCDispatcher.swift +226 -0
- package/ios/Source/JSCPolyfillBridge.swift +378 -0
- package/ios/Source/JSCRuntime.swift +673 -0
- package/ios/Source/utils/ImageProcessor.swift +392 -0
- package/ios/Source/utils/SystemGestures.swift +53 -0
- package/ios/Source/utils/VideoStabilizer.swift +374 -0
- package/ios/heading/HeadingManager.swift +74 -0
- package/ios/navigation/NavPayloads.swift +62 -0
- package/ios/navigation/NavigationManager.swift +720 -0
- package/package.json +69 -0
- package/plugin/build/index.d.ts +19 -0
- package/plugin/build/index.js +23 -0
- package/plugin/build/withAndroid.d.ts +2 -0
- package/plugin/build/withAndroid.js +78 -0
- package/src/Crust.types.ts +157 -0
- package/src/CrustModule.ts +191 -0
- package/src/CrustModule.web.ts +66 -0
- package/src/CrustView.tsx +10 -0
- package/src/CrustView.web.tsx +11 -0
- package/src/index.ts +5 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export type OnLoadEventPayload = {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
5
|
+
export type CrustModuleEvents = {
|
|
6
|
+
onChange: (params: ChangeEventPayload) => void;
|
|
7
|
+
onNavManeuver: (params: NavManeuverPayload) => void;
|
|
8
|
+
onNavRerouting: (params: Record<string, never>) => void;
|
|
9
|
+
onNavArrived: (params: Record<string, never>) => void;
|
|
10
|
+
onNavError: (params: NavErrorPayload) => void;
|
|
11
|
+
onNavLocation: (params: NavLocationPayload) => void;
|
|
12
|
+
onNavRoute: (params: NavRoutePayload) => void;
|
|
13
|
+
onNavOffRoute: (params: NavOffRoutePayload) => void;
|
|
14
|
+
onHeading: (params: HeadingPayload) => void;
|
|
15
|
+
};
|
|
16
|
+
export type NavOffRoutePayload = {
|
|
17
|
+
/** Approximate perpendicular distance in meters from the route. */
|
|
18
|
+
offRouteDistanceMeters: number;
|
|
19
|
+
};
|
|
20
|
+
export type HeadingPayload = {
|
|
21
|
+
/** Compass heading in degrees, 0 = north, 90 = east. */
|
|
22
|
+
degrees: number;
|
|
23
|
+
};
|
|
24
|
+
export type NavRoutePayload = {
|
|
25
|
+
points: Array<{
|
|
26
|
+
lat: number;
|
|
27
|
+
lng: number;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Ordered step list along the route, when supplied by the host. Each
|
|
31
|
+
* step is one navigable segment — typically one straight stretch of
|
|
32
|
+
* road ending in a maneuver. Optional for back-compat with older
|
|
33
|
+
* hosts that only ship the polyline. The SDK's pivot module consumes
|
|
34
|
+
* this to enrich pivots with `fromRoad` / `toRoad` metadata.
|
|
35
|
+
*/
|
|
36
|
+
steps?: NavRouteStepPayload[];
|
|
37
|
+
};
|
|
38
|
+
export type NavRouteStepPayload = {
|
|
39
|
+
/** Coordinate where this step begins (== end of the previous step). */
|
|
40
|
+
lat: number;
|
|
41
|
+
lng: number;
|
|
42
|
+
/**
|
|
43
|
+
* Index into `NavRoutePayload.points[]` where this step starts.
|
|
44
|
+
* Lets consumers correlate step boundaries with polyline geometry.
|
|
45
|
+
*/
|
|
46
|
+
routeIndex: number;
|
|
47
|
+
/** Name of the road traversed during this step. Null when the engine has no name. */
|
|
48
|
+
road?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Categorical maneuver performed at the END of this step (i.e. how
|
|
51
|
+
* the user exits this step). Same vocabulary as `NavManeuverPayload.maneuverType`.
|
|
52
|
+
*/
|
|
53
|
+
maneuver: string;
|
|
54
|
+
/** Length of this step in meters. */
|
|
55
|
+
distanceMeters: number;
|
|
56
|
+
};
|
|
57
|
+
export type NavLocationPayload = {
|
|
58
|
+
lat: number;
|
|
59
|
+
lng: number;
|
|
60
|
+
/** Horizontal accuracy in meters, if reported by the platform. */
|
|
61
|
+
accuracy: number | null;
|
|
62
|
+
/** Unix ms timestamp of the fix. */
|
|
63
|
+
timestamp: number;
|
|
64
|
+
phone_notification: (event: PhoneNotificationEvent) => void;
|
|
65
|
+
phone_notification_dismissed: (event: PhoneNotificationDismissedEvent) => void;
|
|
66
|
+
captions_tester_incident: (event: CaptionsTesterIncidentEvent) => void;
|
|
67
|
+
};
|
|
68
|
+
export type ChangeEventPayload = {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
export type NavManeuverPayload = {
|
|
72
|
+
/**
|
|
73
|
+
* Categorical type of the upcoming maneuver. One of: STRAIGHT,
|
|
74
|
+
* SLIGHT_LEFT, SLIGHT_RIGHT, TURN_LEFT, TURN_RIGHT, SHARP_LEFT,
|
|
75
|
+
* SHARP_RIGHT, U_TURN, ARRIVE.
|
|
76
|
+
*/
|
|
77
|
+
maneuverType: string;
|
|
78
|
+
/** Distance in meters from the user's current position to that maneuver. -1 if unknown. */
|
|
79
|
+
distanceMeters: number;
|
|
80
|
+
/** Road the user is currently on, per the Nav SDK. Null if unavailable. */
|
|
81
|
+
fromRoad?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Legacy "next road" field — historically populated from the same
|
|
84
|
+
* source as `fromRoad` (the current step's road, NOT the road
|
|
85
|
+
* after the upcoming turn). Kept for back-compat. New consumers
|
|
86
|
+
* should read `nextStepRoad` instead.
|
|
87
|
+
*/
|
|
88
|
+
toRoad?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Road the user will be on AFTER the upcoming maneuver, sourced
|
|
91
|
+
* from the Nav SDK's `remainingSteps[0]`. This is the value to
|
|
92
|
+
* show as the "next street" headline on the maneuver card. Null
|
|
93
|
+
* when the SDK hasn't surfaced a remaining step yet (final leg,
|
|
94
|
+
* pre-first-NavInfo, etc.).
|
|
95
|
+
*/
|
|
96
|
+
nextStepRoad?: string | null;
|
|
97
|
+
/** Total remaining distance to final destination, meters. -1 if unknown. */
|
|
98
|
+
distanceToDestinationMeters?: number;
|
|
99
|
+
/** Total remaining travel time, seconds. -1 if unknown. */
|
|
100
|
+
timeToDestinationSeconds?: number;
|
|
101
|
+
/** Current speed in m/s. Null if unavailable. */
|
|
102
|
+
currentSpeedMps?: number | null;
|
|
103
|
+
/** Speed limit on the current road segment in m/s. Null if unknown / not regulated. */
|
|
104
|
+
speedLimitMps?: number | null;
|
|
105
|
+
/** Bearing along the route at the user's current position, 0–360. Null if unknown. */
|
|
106
|
+
routeHeadingDeg?: number | null;
|
|
107
|
+
};
|
|
108
|
+
export type NavErrorPayload = {
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
export type InstalledApp = {
|
|
112
|
+
packageName: string;
|
|
113
|
+
appName: string;
|
|
114
|
+
isBlocked: boolean;
|
|
115
|
+
icon: string | null;
|
|
116
|
+
};
|
|
117
|
+
export type PhoneNotificationEvent = {
|
|
118
|
+
notificationId: string;
|
|
119
|
+
app: string;
|
|
120
|
+
title: string;
|
|
121
|
+
content: string;
|
|
122
|
+
priority: string;
|
|
123
|
+
timestamp: number;
|
|
124
|
+
packageName: string;
|
|
125
|
+
};
|
|
126
|
+
export type PhoneNotificationDismissedEvent = {
|
|
127
|
+
notificationKey: string;
|
|
128
|
+
packageName: string;
|
|
129
|
+
notificationId: string;
|
|
130
|
+
};
|
|
131
|
+
export type CaptionsTesterIncidentEvent = {
|
|
132
|
+
action?: string;
|
|
133
|
+
timestamp?: number;
|
|
134
|
+
failure_code?: string;
|
|
135
|
+
failure_message?: string;
|
|
136
|
+
test_run_id?: string;
|
|
137
|
+
scenario_name?: string;
|
|
138
|
+
source?: string;
|
|
139
|
+
[key: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
export type CrustViewProps = {
|
|
142
|
+
url: string;
|
|
143
|
+
onLoad: (event: {
|
|
144
|
+
nativeEvent: OnLoadEventPayload;
|
|
145
|
+
}) => void;
|
|
146
|
+
style?: StyleProp<ViewStyle>;
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=Crust.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Crust.types.d.ts","sourceRoot":"","sources":["../src/Crust.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AAEtD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC9C,aAAa,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACnD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI,CAAA;IACvD,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI,CAAA;IACrD,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAA;IAC7C,aAAa,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACnD,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAA;IAC7C,aAAa,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mEAAmE;IACnE,sBAAsB,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EA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,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,CAAC,KAAK,EAAE;QAAC,WAAW,EAAE,kBAAkB,CAAA;KAAC,KAAK,IAAI,CAAA;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAC7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Crust.types.js","sourceRoot":"","sources":["../src/Crust.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {StyleProp, ViewStyle} from \"react-native\"\n\nexport type OnLoadEventPayload = {\n url: string\n}\n\nexport type CrustModuleEvents = {\n onChange: (params: ChangeEventPayload) => void\n onNavManeuver: (params: NavManeuverPayload) => void\n onNavRerouting: (params: Record<string, never>) => void\n onNavArrived: (params: Record<string, never>) => void\n onNavError: (params: NavErrorPayload) => void\n onNavLocation: (params: NavLocationPayload) => void\n onNavRoute: (params: NavRoutePayload) => void\n onNavOffRoute: (params: NavOffRoutePayload) => void\n onHeading: (params: HeadingPayload) => void\n}\n\nexport type NavOffRoutePayload = {\n /** Approximate perpendicular distance in meters from the route. */\n offRouteDistanceMeters: number\n}\n\nexport type HeadingPayload = {\n /** Compass heading in degrees, 0 = north, 90 = east. */\n degrees: number\n}\n\nexport type NavRoutePayload = {\n points: Array<{lat: number; lng: number}>\n /**\n * Ordered step list along the route, when supplied by the host. Each\n * step is one navigable segment — typically one straight stretch of\n * road ending in a maneuver. Optional for back-compat with older\n * hosts that only ship the polyline. The SDK's pivot module consumes\n * this to enrich pivots with `fromRoad` / `toRoad` metadata.\n */\n steps?: NavRouteStepPayload[]\n}\n\nexport type NavRouteStepPayload = {\n /** Coordinate where this step begins (== end of the previous step). */\n lat: number\n lng: number\n /**\n * Index into `NavRoutePayload.points[]` where this step starts.\n * Lets consumers correlate step boundaries with polyline geometry.\n */\n routeIndex: number\n /** Name of the road traversed during this step. Null when the engine has no name. */\n road?: string | null\n /**\n * Categorical maneuver performed at the END of this step (i.e. how\n * the user exits this step). Same vocabulary as `NavManeuverPayload.maneuverType`.\n */\n maneuver: string\n /** Length of this step in meters. */\n distanceMeters: number\n}\n\nexport type NavLocationPayload = {\n lat: number\n lng: number\n /** Horizontal accuracy in meters, if reported by the platform. */\n accuracy: number | null\n /** Unix ms timestamp of the fix. */\n timestamp: number\n phone_notification: (event: PhoneNotificationEvent) => void\n phone_notification_dismissed: (event: PhoneNotificationDismissedEvent) => void\n captions_tester_incident: (event: CaptionsTesterIncidentEvent) => void\n}\n\nexport type ChangeEventPayload = {\n value: string\n}\n\nexport type NavManeuverPayload = {\n /**\n * Categorical type of the upcoming maneuver. One of: STRAIGHT,\n * SLIGHT_LEFT, SLIGHT_RIGHT, TURN_LEFT, TURN_RIGHT, SHARP_LEFT,\n * SHARP_RIGHT, U_TURN, ARRIVE.\n */\n maneuverType: string\n /** Distance in meters from the user's current position to that maneuver. -1 if unknown. */\n distanceMeters: number\n /** Road the user is currently on, per the Nav SDK. Null if unavailable. */\n fromRoad?: string | null\n /**\n * Legacy \"next road\" field — historically populated from the same\n * source as `fromRoad` (the current step's road, NOT the road\n * after the upcoming turn). Kept for back-compat. New consumers\n * should read `nextStepRoad` instead.\n */\n toRoad?: string | null\n /**\n * Road the user will be on AFTER the upcoming maneuver, sourced\n * from the Nav SDK's `remainingSteps[0]`. This is the value to\n * show as the \"next street\" headline on the maneuver card. Null\n * when the SDK hasn't surfaced a remaining step yet (final leg,\n * pre-first-NavInfo, etc.).\n */\n nextStepRoad?: string | null\n /** Total remaining distance to final destination, meters. -1 if unknown. */\n distanceToDestinationMeters?: number\n /** Total remaining travel time, seconds. -1 if unknown. */\n timeToDestinationSeconds?: number\n /** Current speed in m/s. Null if unavailable. */\n currentSpeedMps?: number | null\n /** Speed limit on the current road segment in m/s. Null if unknown / not regulated. */\n speedLimitMps?: number | null\n /** Bearing along the route at the user's current position, 0–360. Null if unknown. */\n routeHeadingDeg?: number | null\n}\n\nexport type NavErrorPayload = {\n message: string\n}\n\nexport type InstalledApp = {\n packageName: string\n appName: string\n isBlocked: boolean\n icon: string | null\n}\n\nexport type PhoneNotificationEvent = {\n notificationId: string\n app: string\n title: string\n content: string\n priority: string\n timestamp: number\n packageName: string\n}\n\nexport type PhoneNotificationDismissedEvent = {\n notificationKey: string\n packageName: string\n notificationId: string\n}\n\nexport type CaptionsTesterIncidentEvent = {\n action?: string\n timestamp?: number\n failure_code?: string\n failure_message?: string\n test_run_id?: string\n scenario_name?: string\n source?: string\n [key: string]: unknown\n}\n\nexport type CrustViewProps = {\n url: string\n onLoad: (event: {nativeEvent: OnLoadEventPayload}) => void\n style?: StyleProp<ViewStyle>\n}\n"]}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { NativeModule } from "expo";
|
|
2
|
+
import { CrustModuleEvents, InstalledApp } from "./Crust.types";
|
|
3
|
+
declare class CrustModule extends NativeModule<CrustModuleEvents> {
|
|
4
|
+
PI: number;
|
|
5
|
+
hello(): string;
|
|
6
|
+
setValueAsync(value: string): Promise<void>;
|
|
7
|
+
nativeHttpRequest(method: string, url: string, headers: Record<string, string>, body?: string | null): Promise<{
|
|
8
|
+
status: number;
|
|
9
|
+
statusText: string;
|
|
10
|
+
headers: Record<string, string>;
|
|
11
|
+
body: string;
|
|
12
|
+
}>;
|
|
13
|
+
showAVRoutePicker(tintColor?: string | null): void;
|
|
14
|
+
/**
|
|
15
|
+
* iOS: configure `preferredScreenEdgesDeferringSystemGestures`. When an
|
|
16
|
+
* edge is deferred, the first swipe across that edge is consumed by the
|
|
17
|
+
* app and the system gesture (Control Center, Notification Center, Home
|
|
18
|
+
* indicator) only fires on a second swipe — i.e. a two-swipe-to-exit UX.
|
|
19
|
+
*
|
|
20
|
+
* Pass `[]` to restore default behavior. Android: no-op (Android has no
|
|
21
|
+
* per-app equivalent; system gestures are configured at the OS level).
|
|
22
|
+
*/
|
|
23
|
+
setDeferredSystemGestures(edges: Array<"top" | "bottom" | "left" | "right" | "all">): Promise<void>;
|
|
24
|
+
setNotificationConfig(enabled: boolean, blocklist: string[]): Promise<void>;
|
|
25
|
+
getInstalledApps(): Promise<InstalledApp[]>;
|
|
26
|
+
getInstalledAppsForNotifications(): Promise<InstalledApp[]>;
|
|
27
|
+
hasNotificationListenerPermission(): Promise<boolean>;
|
|
28
|
+
openNotificationListenerSettings(): Promise<boolean>;
|
|
29
|
+
isBetaBuild(): Promise<boolean>;
|
|
30
|
+
showLocationServicesDialog(): Promise<boolean>;
|
|
31
|
+
isLocationServicesEnabled(): Promise<boolean>;
|
|
32
|
+
openLocationSettings(): Promise<boolean>;
|
|
33
|
+
openAppSettings(): Promise<boolean>;
|
|
34
|
+
openBluetoothSettings(): Promise<boolean>;
|
|
35
|
+
processGalleryImage(inputPath: string, outputPath: string, options: {
|
|
36
|
+
lensCorrection?: boolean;
|
|
37
|
+
colorCorrection?: boolean;
|
|
38
|
+
}): Promise<{
|
|
39
|
+
success: boolean;
|
|
40
|
+
outputPath?: string;
|
|
41
|
+
processingTimeMs?: number;
|
|
42
|
+
error?: string;
|
|
43
|
+
}>;
|
|
44
|
+
mergeHdrBrackets(underPath: string, normalPath: string, overPath: string, outputPath: string): Promise<{
|
|
45
|
+
success: boolean;
|
|
46
|
+
outputPath?: string;
|
|
47
|
+
processingTimeMs?: number;
|
|
48
|
+
error?: string;
|
|
49
|
+
}>;
|
|
50
|
+
stabilizeVideo(inputPath: string, imuPath: string, outputPath: string): Promise<{
|
|
51
|
+
success: boolean;
|
|
52
|
+
outputPath?: string;
|
|
53
|
+
processingTimeMs?: number;
|
|
54
|
+
error?: string;
|
|
55
|
+
}>;
|
|
56
|
+
saveToGalleryWithDate(filePath: string, captureTimeMillis?: number, displayName?: string): Promise<{
|
|
57
|
+
success: boolean;
|
|
58
|
+
uri?: string;
|
|
59
|
+
identifier?: string;
|
|
60
|
+
existing?: boolean;
|
|
61
|
+
error?: string;
|
|
62
|
+
}>;
|
|
63
|
+
startNavigation(lat: number, lng: number, options?: {
|
|
64
|
+
simulate?: boolean;
|
|
65
|
+
speedMultiplier?: number;
|
|
66
|
+
/** Optional multi-stop list. When present takes precedence over lat/lng. Last entry is the final destination. */
|
|
67
|
+
stops?: Array<{
|
|
68
|
+
lat: number;
|
|
69
|
+
lng: number;
|
|
70
|
+
}>;
|
|
71
|
+
/** "walking" | "driving" | "cycling" | "two_wheeler". Defaults driving. */
|
|
72
|
+
mode?: string;
|
|
73
|
+
avoid?: {
|
|
74
|
+
highways?: boolean;
|
|
75
|
+
tolls?: boolean;
|
|
76
|
+
ferries?: boolean;
|
|
77
|
+
};
|
|
78
|
+
/** Force a reroute when the user is more than N meters past a pivot they didn't take. */
|
|
79
|
+
missedTurnRerouteMeters?: number;
|
|
80
|
+
}): Promise<{
|
|
81
|
+
ok: boolean;
|
|
82
|
+
error?: string;
|
|
83
|
+
}>;
|
|
84
|
+
stopNavigation(): Promise<{
|
|
85
|
+
ok: boolean;
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Show the Google Nav SDK Terms & Conditions dialog if not already
|
|
90
|
+
* accepted. Idempotent — resolves immediately with `{accepted: true}`
|
|
91
|
+
* when the user has already accepted (cached in-process / on-disk /
|
|
92
|
+
* inside the SDK).
|
|
93
|
+
*/
|
|
94
|
+
requestNavigationPermission(): Promise<{
|
|
95
|
+
ok: boolean;
|
|
96
|
+
accepted: boolean;
|
|
97
|
+
error?: string;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Dev-only: clear cached T&C acceptance (SDK flag + on-disk pref +
|
|
101
|
+
* in-process flag) so the next requestNavigationPermission() re-shows
|
|
102
|
+
* the dialog. Android only; iOS returns {ok: false, error: "not
|
|
103
|
+
* supported on iOS"}.
|
|
104
|
+
*/
|
|
105
|
+
resetNavigationPermission(): Promise<{
|
|
106
|
+
ok: boolean;
|
|
107
|
+
error?: string;
|
|
108
|
+
}>;
|
|
109
|
+
/**
|
|
110
|
+
* Dev-only: nudge the simulated user position ~offsetMeters perpendicular
|
|
111
|
+
* to the route so the Nav SDK reroutes. Default 20m. Android only.
|
|
112
|
+
*/
|
|
113
|
+
simulateDeviation(offsetMeters?: number): Promise<{
|
|
114
|
+
ok: boolean;
|
|
115
|
+
error?: string;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Dev toggle. When enabled, the native NavigationManager shifts every
|
|
119
|
+
* reported location ~8m perpendicular to the route bearing, simulating
|
|
120
|
+
* a pedestrian walking on the wrong sidewalk. Only meaningful in
|
|
121
|
+
* simulate mode; lets us verify the SDK's along-path pivot trigger
|
|
122
|
+
* fires even when the user never crosses the 7m pivot point radius.
|
|
123
|
+
* Android-only today; iOS is a no-op stub.
|
|
124
|
+
*/
|
|
125
|
+
setWrongSidewalkOffset(enabled: boolean): Promise<{
|
|
126
|
+
ok: boolean;
|
|
127
|
+
error?: string;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* Dev toggle. When enabled, the native NavigationManager takes over
|
|
131
|
+
* from the Google simulator and walks the user along a modified
|
|
132
|
+
* polyline that omits crossing micro-steps — reproducing the
|
|
133
|
+
* wrong-sidewalk-then-missed-the-turn scenario. Android-only today;
|
|
134
|
+
* iOS is a no-op stub.
|
|
135
|
+
*/
|
|
136
|
+
setSkipCrossings(enabled: boolean): Promise<{
|
|
137
|
+
ok: boolean;
|
|
138
|
+
error?: string;
|
|
139
|
+
}>;
|
|
140
|
+
startHeading(): Promise<{
|
|
141
|
+
ok: boolean;
|
|
142
|
+
error?: string;
|
|
143
|
+
}>;
|
|
144
|
+
stopHeading(): Promise<{
|
|
145
|
+
ok: boolean;
|
|
146
|
+
error?: string;
|
|
147
|
+
}>;
|
|
148
|
+
/**
|
|
149
|
+
* Spawn a per-miniapp JS context. Re-spawn is allowed: a live context
|
|
150
|
+
* with the same packageName is killed first. Returns true if the
|
|
151
|
+
* polyfill bundle + miniapp source evaluated without throwing.
|
|
152
|
+
*
|
|
153
|
+
* The polyfill bundle is `mobile/modules/mentrajs-runtime/dist/startup.js`
|
|
154
|
+
* (shipped inside the host binary). It installs window-style globals
|
|
155
|
+
* (console, timers, fetch, localStorage, crypto) atop the JSC runtime.
|
|
156
|
+
*/
|
|
157
|
+
mentraJsSpawn(packageName: string, polyfillBundle: string, miniappJs: string): Promise<boolean>;
|
|
158
|
+
mentraJsEvaluate(packageName: string, source: string): Promise<unknown>;
|
|
159
|
+
mentraJsKill(packageName: string): Promise<void>;
|
|
160
|
+
/**
|
|
161
|
+
* Push a `{kind: "event"|"response", …}` envelope into the named
|
|
162
|
+
* context's globalThis.__deliver. Returns when the underlying
|
|
163
|
+
* evaluateScript completes (the JS handler runs synchronously on the
|
|
164
|
+
* context's queue).
|
|
165
|
+
*/
|
|
166
|
+
mentraJsDispatchToJs(packageName: string, envelope: Record<string, unknown>): Promise<void>;
|
|
167
|
+
mentraJsSetManifest(packageName: string, permissions: string[]): Promise<void>;
|
|
168
|
+
/** Diagnostic — returns the packageNames of every live JSContext. */
|
|
169
|
+
mentraJsAlivePackages(): string[];
|
|
170
|
+
/** Diagnostic — force a GC cycle on the named context. */
|
|
171
|
+
mentraJsDebugForceGC(packageName: string): Promise<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* Read the bundled MentraJS polyfill (startup.js) shipped inside the
|
|
174
|
+
* host binary. Synchronous — host RN code calls this once on app boot
|
|
175
|
+
* and caches the string, then passes it to every mentraJsSpawn so
|
|
176
|
+
* every JSContext starts with the same polyfill ABI.
|
|
177
|
+
*/
|
|
178
|
+
mentraJsLoadPolyfillBundle(): string;
|
|
179
|
+
}
|
|
180
|
+
declare const _default: CrustModule;
|
|
181
|
+
export default _default;
|
|
182
|
+
//# sourceMappingURL=CrustModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustModule.d.ts","sourceR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AAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAC3D;;;;;OAKG;IACH,0BAA0B,IAAI,MAAM;CACrC;;AAGD,wBAAwD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustModule.js","sourceRoot":"","sources":["../src/CrustModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,mBAAmB,EAAC,MAAM,MAAM,CAAA;AA6LtD,yDAAyD;AACzD,eAAe,mBAAmB,CAAc,OAAO,CAAC,CAAA","sourcesContent":["import {NativeModule, requireNativeModule} from \"expo\"\n\nimport {CrustModuleEvents, InstalledApp} from \"./Crust.types\"\n\ndeclare class CrustModule extends NativeModule<CrustModuleEvents> {\n PI: number\n hello(): string\n setValueAsync(value: string): Promise<void>\n nativeHttpRequest(\n method: string,\n url: string,\n headers: Record<string, string>,\n body?: string | null,\n ): Promise<{status: number; statusText: string; headers: Record<string, string>; body: string}>\n showAVRoutePicker(tintColor?: string | null): void\n\n /**\n * iOS: configure `preferredScreenEdgesDeferringSystemGestures`. When an\n * edge is deferred, the first swipe across that edge is consumed by the\n * app and the system gesture (Control Center, Notification Center, Home\n * indicator) only fires on a second swipe — i.e. a two-swipe-to-exit UX.\n *\n * Pass `[]` to restore default behavior. Android: no-op (Android has no\n * per-app equivalent; system gestures are configured at the OS level).\n */\n setDeferredSystemGestures(edges: Array<\"top\" | \"bottom\" | \"left\" | \"right\" | \"all\">): Promise<void>\n\n // MentraOS Notification Commands\n setNotificationConfig(enabled: boolean, blocklist: string[]): Promise<void>\n getInstalledApps(): Promise<InstalledApp[]>\n getInstalledAppsForNotifications(): Promise<InstalledApp[]>\n hasNotificationListenerPermission(): Promise<boolean>\n openNotificationListenerSettings(): Promise<boolean>\n isBetaBuild(): Promise<boolean>\n // location services commands\n showLocationServicesDialog(): Promise<boolean>\n isLocationServicesEnabled(): Promise<boolean>\n openLocationSettings(): Promise<boolean>\n openAppSettings(): Promise<boolean>\n openBluetoothSettings(): Promise<boolean>\n\n // Image Processing Commands\n processGalleryImage(\n inputPath: string,\n outputPath: string,\n options: {\n lensCorrection?: boolean\n colorCorrection?: boolean\n },\n ): Promise<{\n success: boolean\n outputPath?: string\n processingTimeMs?: number\n error?: string\n }>\n\n mergeHdrBrackets(\n underPath: string,\n normalPath: string,\n overPath: string,\n outputPath: string,\n ): Promise<{\n success: boolean\n outputPath?: string\n processingTimeMs?: number\n error?: string\n }>\n\n stabilizeVideo(\n inputPath: string,\n imuPath: string,\n outputPath: string,\n ): Promise<{\n success: boolean\n outputPath?: string\n processingTimeMs?: number\n error?: string\n }>\n\n // Media Library Commands\n saveToGalleryWithDate(\n filePath: string,\n captureTimeMillis?: number,\n displayName?: string,\n ): Promise<{\n success: boolean\n uri?: string\n identifier?: string\n existing?: boolean\n error?: string\n }>\n\n // Navigation (Android only — iOS stubs return error)\n startNavigation(\n lat: number,\n lng: number,\n options?: {\n simulate?: boolean\n speedMultiplier?: number\n /** Optional multi-stop list. When present takes precedence over lat/lng. Last entry is the final destination. */\n stops?: Array<{lat: number; lng: number}>\n /** \"walking\" | \"driving\" | \"cycling\" | \"two_wheeler\". Defaults driving. */\n mode?: string\n avoid?: {highways?: boolean; tolls?: boolean; ferries?: boolean}\n /** Force a reroute when the user is more than N meters past a pivot they didn't take. */\n missedTurnRerouteMeters?: number\n },\n ): Promise<{ok: boolean; error?: string}>\n stopNavigation(): Promise<{ok: boolean; error?: string}>\n\n /**\n * Show the Google Nav SDK Terms & Conditions dialog if not already\n * accepted. Idempotent — resolves immediately with `{accepted: true}`\n * when the user has already accepted (cached in-process / on-disk /\n * inside the SDK).\n */\n requestNavigationPermission(): Promise<{ok: boolean; accepted: boolean; error?: string}>\n\n /**\n * Dev-only: clear cached T&C acceptance (SDK flag + on-disk pref +\n * in-process flag) so the next requestNavigationPermission() re-shows\n * the dialog. Android only; iOS returns {ok: false, error: \"not\n * supported on iOS\"}.\n */\n resetNavigationPermission(): Promise<{ok: boolean; error?: string}>\n\n /**\n * Dev-only: nudge the simulated user position ~offsetMeters perpendicular\n * to the route so the Nav SDK reroutes. Default 20m. Android only.\n */\n simulateDeviation(offsetMeters?: number): Promise<{ok: boolean; error?: string}>\n\n /**\n * Dev toggle. When enabled, the native NavigationManager shifts every\n * reported location ~8m perpendicular to the route bearing, simulating\n * a pedestrian walking on the wrong sidewalk. Only meaningful in\n * simulate mode; lets us verify the SDK's along-path pivot trigger\n * fires even when the user never crosses the 7m pivot point radius.\n * Android-only today; iOS is a no-op stub.\n */\n setWrongSidewalkOffset(enabled: boolean): Promise<{ok: boolean; error?: string}>\n\n /**\n * Dev toggle. When enabled, the native NavigationManager takes over\n * from the Google simulator and walks the user along a modified\n * polyline that omits crossing micro-steps — reproducing the\n * wrong-sidewalk-then-missed-the-turn scenario. Android-only today;\n * iOS is a no-op stub.\n */\n setSkipCrossings(enabled: boolean): Promise<{ok: boolean; error?: string}>\n\n // Heading / compass (Android only)\n startHeading(): Promise<{ok: boolean; error?: string}>\n stopHeading(): Promise<{ok: boolean; error?: string}>\n\n // MentraJS Runtime — per-miniapp JSContext lifecycle.\n /**\n * Spawn a per-miniapp JS context. Re-spawn is allowed: a live context\n * with the same packageName is killed first. Returns true if the\n * polyfill bundle + miniapp source evaluated without throwing.\n *\n * The polyfill bundle is `mobile/modules/mentrajs-runtime/dist/startup.js`\n * (shipped inside the host binary). It installs window-style globals\n * (console, timers, fetch, localStorage, crypto) atop the JSC runtime.\n */\n mentraJsSpawn(packageName: string, polyfillBundle: string, miniappJs: string): Promise<boolean>\n mentraJsEvaluate(packageName: string, source: string): Promise<unknown>\n mentraJsKill(packageName: string): Promise<void>\n /**\n * Push a `{kind: \"event\"|\"response\", …}` envelope into the named\n * context's globalThis.__deliver. Returns when the underlying\n * evaluateScript completes (the JS handler runs synchronously on the\n * context's queue).\n */\n mentraJsDispatchToJs(packageName: string, envelope: Record<string, unknown>): Promise<void>\n mentraJsSetManifest(packageName: string, permissions: string[]): Promise<void>\n /** Diagnostic — returns the packageNames of every live JSContext. */\n mentraJsAlivePackages(): string[]\n /** Diagnostic — force a GC cycle on the named context. */\n mentraJsDebugForceGC(packageName: string): Promise<boolean>\n /**\n * Read the bundled MentraJS polyfill (startup.js) shipped inside the\n * host binary. Synchronous — host RN code calls this once on app boot\n * and caches the string, then passes it to every mentraJsSpawn so\n * every JSContext starts with the same polyfill ABI.\n */\n mentraJsLoadPolyfillBundle(): string\n}\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<CrustModule>(\"Crust\")\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { NativeModule } from "expo";
|
|
2
|
+
import { CrustModuleEvents } from "./Crust.types";
|
|
3
|
+
declare class CrustModule extends NativeModule<CrustModuleEvents> {
|
|
4
|
+
PI: number;
|
|
5
|
+
setValueAsync(value: string): Promise<void>;
|
|
6
|
+
nativeHttpRequest(method: string, url: string, headers: Record<string, string>, body?: string | null): Promise<{
|
|
7
|
+
status: number;
|
|
8
|
+
statusText: string;
|
|
9
|
+
headers: {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
};
|
|
12
|
+
body: string;
|
|
13
|
+
}>;
|
|
14
|
+
hello(): string;
|
|
15
|
+
showAVRoutePicker(_tintColor?: string | null): void;
|
|
16
|
+
setDeferredSystemGestures(_edges: string[]): Promise<void>;
|
|
17
|
+
setNotificationConfig(_enabled: boolean, _blocklist: string[]): Promise<void>;
|
|
18
|
+
getInstalledApps(): Promise<never[]>;
|
|
19
|
+
getInstalledAppsForNotifications(): Promise<never[]>;
|
|
20
|
+
hasNotificationListenerPermission(): Promise<boolean>;
|
|
21
|
+
openNotificationListenerSettings(): Promise<boolean>;
|
|
22
|
+
isBetaBuild(): Promise<boolean>;
|
|
23
|
+
mentraJsSpawn(_pkg: string, _polyfill: string, _miniappJs: string): Promise<boolean>;
|
|
24
|
+
mentraJsEvaluate(_pkg: string, _src: string): Promise<null>;
|
|
25
|
+
mentraJsKill(_pkg: string): Promise<void>;
|
|
26
|
+
mentraJsDispatchToJs(_pkg: string, _env: Record<string, unknown>): Promise<void>;
|
|
27
|
+
mentraJsSetManifest(_pkg: string, _perms: string[]): Promise<void>;
|
|
28
|
+
mentraJsAlivePackages(): never[];
|
|
29
|
+
mentraJsDebugForceGC(_pkg: string): Promise<boolean>;
|
|
30
|
+
mentraJsLoadPolyfillBundle(): string;
|
|
31
|
+
}
|
|
32
|
+
declare const _default: typeof CrustModule;
|
|
33
|
+
export default _default;
|
|
34
|
+
//# sourceMappingURL=CrustModule.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustModule.web.d.ts","sourceRoot":"","sources":["../src/CrustModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAC,MAAM,MAAM,CAAA;AAEpD,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAE/C,cAAM,WAAY,SAAQ,YAAY,CAAC,iBAAiB,CAAC;IACvD,EAAE,SAAU;IACN,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAG3C,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;;;;IAS1G,KAAK;IAGL,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI;IACtC,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAC1D,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAC7E,gBAAgB;IAGhB,gCAAgC;IAGhC,iCAAiC;IAGjC,gCAAgC;IAGhC,WAAW;IAGX,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAGjE,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAG3C,YAAY,CAAC,IAAI,EAAE,MAAM;IAGzB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAGhE,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IAGxD,qBAAqB;IAGf,oBAAoB,CAAC,IAAI,EAAE,MAAM;IAGvC,0BAA0B;CAG3B;;AAED,wBAA4D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { registerWebModule, NativeModule } from "expo";
|
|
2
|
+
class CrustModule extends NativeModule {
|
|
3
|
+
PI = Math.PI;
|
|
4
|
+
async setValueAsync(value) {
|
|
5
|
+
this.emit("onChange", { value });
|
|
6
|
+
}
|
|
7
|
+
async nativeHttpRequest(method, url, headers, body) {
|
|
8
|
+
const response = await fetch(url, { method, headers, body });
|
|
9
|
+
return {
|
|
10
|
+
status: response.status,
|
|
11
|
+
statusText: response.statusText,
|
|
12
|
+
headers: Object.fromEntries(response.headers.entries()),
|
|
13
|
+
body: await response.text(),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
hello() {
|
|
17
|
+
return "Hello world! 👋";
|
|
18
|
+
}
|
|
19
|
+
showAVRoutePicker(_tintColor) { }
|
|
20
|
+
async setDeferredSystemGestures(_edges) { }
|
|
21
|
+
async setNotificationConfig(_enabled, _blocklist) { }
|
|
22
|
+
async getInstalledApps() {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
async getInstalledAppsForNotifications() {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
async hasNotificationListenerPermission() {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
async openNotificationListenerSettings() {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
async isBetaBuild() {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
async mentraJsSpawn(_pkg, _polyfill, _miniappJs) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
async mentraJsEvaluate(_pkg, _src) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
async mentraJsKill(_pkg) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
async mentraJsDispatchToJs(_pkg, _env) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
async mentraJsSetManifest(_pkg, _perms) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
mentraJsAlivePackages() {
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
async mentraJsDebugForceGC(_pkg) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
mentraJsLoadPolyfillBundle() {
|
|
59
|
+
return "";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export default registerWebModule(CrustModule, "CrustModule");
|
|
63
|
+
//# sourceMappingURL=CrustModule.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustModule.web.js","sourceRoot":"","sources":["../src/CrustModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,YAAY,EAAC,MAAM,MAAM,CAAA;AAIpD,MAAM,WAAY,SAAQ,YAA+B;IACvD,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;IACZ,KAAK,CAAC,aAAa,CAAC,KAAa;QAC/B,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAC,KAAK,EAAC,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,MAAc,EAAE,GAAW,EAAE,OAA+B,EAAE,IAAoB;QACxG,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAA;QAC1D,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AK,CAAA;IACd,CAAC;IACD,0BAA0B;QACxB,OAAO,EAAE,CAAA;IACX,CAAC;CACF;AAED,eAAe,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA","sourcesContent":["import {registerWebModule, NativeModule} from \"expo\"\n\nimport {CrustModuleEvents} from \"./Crust.types\"\n\nclass CrustModule extends NativeModule<CrustModuleEvents> {\n PI = Math.PI\n async setValueAsync(value: string): Promise<void> {\n this.emit(\"onChange\", {value})\n }\n async nativeHttpRequest(method: string, url: string, headers: Record<string, string>, body?: string | null) {\n const response = await fetch(url, {method, headers, body})\n return {\n status: response.status,\n statusText: response.statusText,\n headers: Object.fromEntries(response.headers.entries()),\n body: await response.text(),\n }\n }\n hello() {\n return \"Hello world! 👋\"\n }\n showAVRoutePicker(_tintColor?: string | null) {}\n async setDeferredSystemGestures(_edges: string[]): Promise<void> {}\n async setNotificationConfig(_enabled: boolean, _blocklist: string[]): Promise<void> {}\n async getInstalledApps() {\n return []\n }\n async getInstalledAppsForNotifications() {\n return []\n }\n async hasNotificationListenerPermission() {\n return false\n }\n async openNotificationListenerSettings() {\n return false\n }\n async isBetaBuild() {\n return false\n }\n async mentraJsSpawn(_pkg: string, _polyfill: string, _miniappJs: string) {\n return false\n }\n async mentraJsEvaluate(_pkg: string, _src: string) {\n return null\n }\n async mentraJsKill(_pkg: string) {\n return\n }\n async mentraJsDispatchToJs(_pkg: string, _env: Record<string, unknown>) {\n return\n }\n async mentraJsSetManifest(_pkg: string, _perms: string[]) {\n return\n }\n mentraJsAlivePackages() {\n return []\n }\n async mentraJsDebugForceGC(_pkg: string) {\n return false\n }\n mentraJsLoadPolyfillBundle() {\n return \"\"\n }\n}\n\nexport default registerWebModule(CrustModule, \"CrustModule\")\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustView.d.ts","sourceRoot":"","sources":["../src/CrustView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAA;AAI5C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,qBAEtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustView.js","sourceRoot":"","sources":["../src/CrustView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,UAAU,GAAwC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAElF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAqB;IACrD,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAA;AAClC,CAAC","sourcesContent":["import {requireNativeView} from \"expo\"\nimport * as React from \"react\"\n\nimport {CrustViewProps} from \"./Crust.types\"\n\nconst NativeView: React.ComponentType<CrustViewProps> = requireNativeView(\"Crust\")\n\nexport default function CrustView(props: CrustViewProps) {\n return <NativeView {...props} />\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustView.web.d.ts","sourceRoot":"","sources":["../src/CrustView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAA;AAE5C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,qBAMtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrustView.web.js","sourceRoot":"","sources":["../src/CrustView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAqB;IACrD,OAAO,CACL,CAAC,GAAG,CACF;MAAA,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,EAAC,GAAG,EAAE,KAAK,CAAC,GAAG,EAAC,EAAC,CAAC,CAAC,EACxG;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC","sourcesContent":["import * as React from \"react\"\n\nimport {CrustViewProps} from \"./Crust.types\"\n\nexport default function CrustView(props: CrustViewProps) {\n return (\n <div>\n <iframe style={{flex: 1}} src={props.url} onLoad={() => props.onLoad({nativeEvent: {url: props.url}})} />\n </div>\n )\n}\n"]}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA;AAChD,cAAc,eAAe,CAAA"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Reexport the native module. On web, it will be resolved to CrustModule.web.ts
|
|
2
|
+
// and on native platforms to CrustModule.ts
|
|
3
|
+
export { default } from "./CrustModule";
|
|
4
|
+
export { default as CrustView } from "./CrustView";
|
|
5
|
+
export * from "./Crust.types";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4CAA4C;AAC5C,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAA;AAChD,cAAc,eAAe,CAAA","sourcesContent":["// Reexport the native module. On web, it will be resolved to CrustModule.web.ts\n// and on native platforms to CrustModule.ts\nexport {default} from \"./CrustModule\"\nexport {default as CrustView} from \"./CrustView\"\nexport * from \"./Crust.types\"\n"]}
|