chore: add mobile app

This commit is contained in:
2026-02-07 22:33:02 +01:00
parent db34640acc
commit e89384ad4e
29327 changed files with 3886944 additions and 12 deletions
@@ -0,0 +1,13 @@
/**
* Copyright © 2025 650 Industries.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* This is added as `asyncRequireModulePath` in `@expo/metro-config`
* Fork of https://github.com/facebook/metro/blob/b8e9e64f1de97a67234e223f5ee21524b160e8a5/packages/metro-runtime/src/modules/asyncRequire.js#L1
* - Adds worker support.
*/
export {};
//# sourceMappingURL=asyncRequireModule.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"asyncRequireModule.d.ts","sourceRoot":"","sources":["../../src/async-require/asyncRequireModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
@@ -0,0 +1,15 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Must satisfy the requirements of the Metro bundler.
* https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0605-lazy-bundling.md#__loadbundleasync-in-metro
*/
type AsyncRequire = (path: string) => Promise<void>;
/** Create an `loadBundleAsync` function in the expected shape for Metro bundler. */
export declare function buildAsyncRequire(): AsyncRequire;
export {};
//# sourceMappingURL=buildAsyncRequire.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"buildAsyncRequire.d.ts","sourceRoot":"","sources":["../../src/async-require/buildAsyncRequire.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,KAAK,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpD,oFAAoF;AACpF,wBAAgB,iBAAiB,IAAI,YAAY,CAiBhD"}
@@ -0,0 +1,14 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Given a path and some optional additional query parameters, create the dev server bundle URL.
* @param bundlePath like `/foobar`
* @param params like `{ platform: "web" }`
* @returns a URL like "/foobar.bundle?platform=android&modulesOnly=true&runModule=false&runtimeBytecodeVersion=null"
*/
export declare function buildUrlForBundle(bundlePath: string): string;
//# sourceMappingURL=buildUrlForBundle.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"buildUrlForBundle.d.ts","sourceRoot":"","sources":["../../src/async-require/buildUrlForBundle.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAM5D"}
@@ -0,0 +1,8 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function buildUrlForBundle(bundlePath: string): string;
//# sourceMappingURL=buildUrlForBundle.native.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"buildUrlForBundle.native.d.ts","sourceRoot":"","sources":["../../src/async-require/buildUrlForBundle.native.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAoB5D"}
+8
View File
@@ -0,0 +1,8 @@
export declare class MetroServerError extends Error {
code: string;
url: string;
constructor(errorObject: {
message: string;
} & Record<string, any>, url: string);
}
//# sourceMappingURL=errors.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/async-require/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,IAAI,SAAwB;IAC5B,GAAG,EAAE,MAAM,CAAC;gBAEA,WAAW,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM;CAQhF"}
+12
View File
@@ -0,0 +1,12 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchAsync(url: string): Promise<{
body: string;
status: number;
headers: Headers;
}>;
//# sourceMappingURL=fetchAsync.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fetchAsync.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchAsync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAa7D"}
@@ -0,0 +1,13 @@
/**
* Copyright (c) 650 Industries.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchAsync(url: string): Promise<{
body: string;
status: number;
headers: Record<string, string>;
}>;
//# sourceMappingURL=fetchAsync.native.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fetchAsync.native.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchAsync.native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAgF5E"}
@@ -0,0 +1,2 @@
export { fetchThenEvalAsync } from './fetchThenEvalJs';
//# sourceMappingURL=fetchThenEval.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEval.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,12 @@
/**
* Copyright © 2022 650 Industries.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export declare function fetchThenEvalAsync(url: string, { scriptType, nonce, crossOrigin, }?: {
scriptType?: string;
nonce?: string;
crossOrigin?: string;
}): Promise<void>;
//# sourceMappingURL=fetchThenEval.web.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEval.web.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEval.web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,EACE,UAAU,EACV,KAAK,EACL,WAAW,GACZ,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAO,GACpE,OAAO,CAAC,IAAI,CAAC,CA+Df"}
@@ -0,0 +1,7 @@
/**
* Load a bundle for a URL using fetch + eval on native and script tag injection on web.
*
* @param url Given a statement like `import('./Bacon')` `bundlePath` would be `Bacon`.
*/
export declare function fetchThenEvalAsync(url: string): Promise<void>;
//# sourceMappingURL=fetchThenEvalJs.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fetchThenEvalJs.d.ts","sourceRoot":"","sources":["../../src/async-require/fetchThenEvalJs.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6B7D"}
@@ -0,0 +1,8 @@
declare const getDevServer: () => {
bundleLoadedFromServer: boolean;
/** URL but ensures that platform query param is added. */
readonly fullBundleUrl: string;
url: string;
};
export default getDevServer;
//# sourceMappingURL=getDevServer.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"getDevServer.d.ts","sourceRoot":"","sources":["../../src/async-require/getDevServer.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;;IAcd,0DAA0D;;;CAc7D,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
import getDevServer from 'react-native/Libraries/Core/Devtools/getDevServer';
export default getDevServer;
//# sourceMappingURL=getDevServer.native.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"getDevServer.native.d.ts","sourceRoot":"","sources":["../../src/async-require/getDevServer.native.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAE7E,eAAe,YAAY,CAAC"}
+17
View File
@@ -0,0 +1,17 @@
type LogLevel = 'trace' | 'info' | 'warn' | 'error' | 'log' | 'group' | 'groupCollapsed' | 'groupEnd' | 'debug';
export type HMRClientNativeInterface = {
enable(): void;
disable(): void;
registerBundle(requestUrl: string): void;
log(level: LogLevel, data: any[]): void;
setup(props: {
isEnabled: boolean;
}): void;
};
/**
* HMR Client that receives from the server HMR updates and propagates them
* runtime to reflects those changes.
*/
declare const HMRClient: HMRClientNativeInterface;
export default HMRClient;
//# sourceMappingURL=hmr.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/async-require/hmr.ts"],"names":[],"mappings":"AA4CA,KAAK,QAAQ,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,gBAAgB,GAChB,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,IAAI,IAAI,CAAC;IACf,OAAO,IAAI,IAAI,CAAC;IAChB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACxC,KAAK,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CAC5C,CAAC;AAMF;;;GAGG;AACH,QAAA,MAAM,SAAS,EAAE,wBAiMhB,CAAC;AA4EF,eAAe,SAAS,CAAC"}
+3
View File
@@ -0,0 +1,3 @@
declare const HMRClient: any;
export default HMRClient;
//# sourceMappingURL=hmr.native.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"hmr.native.d.ts","sourceRoot":"","sources":["../../src/async-require/hmr.native.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,KAAgE,CAAC;AAEhF,eAAe,SAAS,CAAC"}
+2
View File
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/async-require/index.ts"],"names":[],"mappings":""}
+7
View File
@@ -0,0 +1,7 @@
/**
* Load a bundle for a URL using fetch + eval on native and script tag injection on web.
*
* @param bundlePath Given a statement like `import('./Bacon')` `bundlePath` would be `Bacon.bundle?params=from-metro`.
*/
export declare function loadBundleAsync(bundlePath: string): Promise<void>;
//# sourceMappingURL=loadBundle.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"loadBundle.d.ts","sourceRoot":"","sources":["../../src/async-require/loadBundle.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAWvE"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=messageSocket.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"messageSocket.d.ts","sourceRoot":"","sources":["../../src/async-require/messageSocket.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=messageSocket.native.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"messageSocket.native.d.ts","sourceRoot":"","sources":["../../src/async-require/messageSocket.native.ts"],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setup.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/async-require/setup.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setupFastRefresh.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"setupFastRefresh.d.ts","sourceRoot":"","sources":["../../src/async-require/setupFastRefresh.ts"],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=setupHMR.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"setupHMR.d.ts","sourceRoot":"","sources":["../../src/async-require/setupHMR.ts"],"names":[],"mappings":""}