expo 44.0.5 → 45.0.0-beta.2
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/CHANGELOG.md +25 -0
- package/android/build.gradle +73 -34
- package/android/proguard-rules.pro +4 -1
- package/android/src/legacyReactNativeHostWrapper/expo/modules/ReactNativeHostWrapper.kt +9 -0
- package/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt +65 -19
- package/android/src/main/java/expo/modules/{ReactNativeHostWrapper.kt → ReactNativeHostWrapperBase.kt} +10 -6
- package/android/src/reactNativeHostWrapper/expo/modules/ReactNativeHostWrapper.kt +32 -0
- package/android/src/test/AndroidManifest.xml +18 -0
- package/bin/cli.js +12 -6
- package/build/Expo.d.ts +1 -0
- package/build/Expo.d.ts.map +1 -0
- package/build/Expo.fx.d.ts +1 -0
- package/build/Expo.fx.d.ts.map +1 -0
- package/build/Expo.fx.web.d.ts +1 -0
- package/build/Expo.fx.web.d.ts.map +1 -0
- package/build/environment/DevAppContainer.d.ts +1 -0
- package/build/environment/DevAppContainer.d.ts.map +1 -0
- package/build/environment/DevLoadingView.d.ts +1 -0
- package/build/environment/DevLoadingView.d.ts.map +1 -0
- package/build/environment/DevLoadingView.js +8 -10
- package/build/environment/DevLoadingView.js.map +1 -1
- package/build/environment/getInstallationIdAsync.android.d.ts +1 -0
- package/build/environment/getInstallationIdAsync.android.d.ts.map +1 -0
- package/build/environment/getInstallationIdAsync.d.ts +1 -0
- package/build/environment/getInstallationIdAsync.d.ts.map +1 -0
- package/build/environment/getInstallationIdAsync.web.d.ts +1 -0
- package/build/environment/getInstallationIdAsync.web.d.ts.map +1 -0
- package/build/environment/getInstallationIdAsync.web.js +1 -1
- package/build/environment/getInstallationIdAsync.web.js.map +1 -1
- package/build/environment/logging.fx.d.ts +1 -0
- package/build/environment/logging.fx.d.ts.map +1 -0
- package/build/environment/logging.fx.js +6 -13
- package/build/environment/logging.fx.js.map +1 -1
- package/build/environment/react-native-logs.fx.d.ts +1 -0
- package/build/environment/react-native-logs.fx.d.ts.map +1 -0
- package/build/environment/react-native-logs.fx.js +1 -1
- package/build/environment/react-native-logs.fx.js.map +1 -1
- package/build/environment/validate.fx.d.ts +1 -0
- package/build/environment/validate.fx.d.ts.map +1 -0
- package/build/environment/validate.fx.js +3 -3
- package/build/environment/validate.fx.js.map +1 -1
- package/build/environment/validatorState.d.ts +1 -0
- package/build/environment/validatorState.d.ts.map +1 -0
- package/build/launch/RecoveryProps.d.ts +1 -0
- package/build/launch/RecoveryProps.d.ts.map +1 -0
- package/build/launch/registerRootComponent.d.ts +1 -0
- package/build/launch/registerRootComponent.d.ts.map +1 -0
- package/build/launch/withExpoRoot.d.ts +1 -0
- package/build/launch/withExpoRoot.d.ts.map +1 -0
- package/build/launch/withExpoRoot.types.d.ts +1 -0
- package/build/launch/withExpoRoot.types.d.ts.map +1 -0
- package/build/launch/withExpoRoot.web.d.ts +1 -0
- package/build/launch/withExpoRoot.web.d.ts.map +1 -0
- package/build/logs/LogSerialization.d.ts +1 -0
- package/build/logs/LogSerialization.d.ts.map +1 -0
- package/build/logs/LogSerialization.js +1 -1
- package/build/logs/LogSerialization.js.map +1 -1
- package/build/logs/Logs.d.ts +1 -0
- package/build/logs/Logs.d.ts.map +1 -0
- package/build/logs/Logs.web.d.ts +1 -0
- package/build/logs/Logs.web.d.ts.map +1 -0
- package/build/logs/RemoteConsole.d.ts +1 -0
- package/build/logs/RemoteConsole.d.ts.map +1 -0
- package/build/logs/RemoteLogging.d.ts +1 -0
- package/build/logs/RemoteLogging.d.ts.map +1 -0
- package/build/logs/format/ReactNodeFormatter.d.ts +1 -0
- package/build/logs/format/ReactNodeFormatter.d.ts.map +1 -0
- package/build/timer/polyfillNextTick.d.ts +1 -0
- package/build/timer/polyfillNextTick.d.ts.map +1 -0
- package/bundledNativeModules.json +96 -94
- package/ios/EXAppDefinesLoader.m +6 -0
- package/package.json +22 -22
- package/requiresExtraSetup.json +2 -2
- package/scripts/resolveAppEntry.js +38 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInstallationIdAsync.web.js","sourceRoot":"","sources":["../../src/environment/getInstallationIdAsync.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,IAAI,cAAc,GAAkB,IAAI,CAAC;AAEzC,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB;IAClD,uBAAuB;IACvB,IAAI,cAAc,EAAE;QAClB,OAAO,cAAc,CAAC;KACvB;IAED,IAAI;QACF,gDAAgD;QAChD,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC3D,IAAI,cAAc,EAAE;YAClB,OAAO,cAAc,CAAC;SACvB;KACF;IAAC,
|
|
1
|
+
{"version":3,"file":"getInstallationIdAsync.web.js","sourceRoot":"","sources":["../../src/environment/getInstallationIdAsync.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,IAAI,cAAc,GAAkB,IAAI,CAAC;AAEzC,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB;IAClD,uBAAuB;IACvB,IAAI,cAAc,EAAE;QAClB,OAAO,cAAc,CAAC;KACvB;IAED,IAAI;QACF,gDAAgD;QAChD,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC3D,IAAI,cAAc,EAAE;YAClB,OAAO,cAAc,CAAC;SACvB;KACF;IAAC,MAAM;QACN,wDAAwD;QACxD,0BAA0B;KAC3B;IAED,8CAA8C;IAC9C,cAAc,GAAG,MAAM,EAAE,CAAC;IAC1B,+CAA+C;IAC/C,IAAI;QACF,YAAY,CAAC,OAAO,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;KAC3D;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,yEAAyE,EAAE,KAAK,CAAC,CAAC;KACjG;IAED,OAAO,cAAc,CAAC;AACxB,CAAC","sourcesContent":["import { v4 as uuidv4 } from 'uuid';\n\nconst INSTALLATION_ID_KEY = 'installationId';\n\nlet installationId: string | null = null;\n\nexport default async function getInstallationIdAsync() {\n // Already cached value\n if (installationId) {\n return installationId;\n }\n\n try {\n // No cached value, fetch from persisted storage\n installationId = localStorage.getItem(INSTALLATION_ID_KEY);\n if (installationId) {\n return installationId;\n }\n } catch {\n // If we weren't able to fetch one (for whatever reason)\n // let's create a new one.\n }\n\n // No persisted value, set the cached value...\n installationId = uuidv4();\n // ...and try to persist it. Ignore the errors.\n try {\n localStorage.setItem(INSTALLATION_ID_KEY, installationId);\n } catch (error) {\n console.debug('Could not save installation ID in persisted storage, it will get reset.', error);\n }\n\n return installationId;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logging.fx.d.ts","sourceRoot":"","sources":["../../src/environment/logging.fx.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Constants from 'expo-constants';
|
|
2
|
+
import { Platform } from 'expo-modules-core';
|
|
2
3
|
import getDevServer from 'react-native/Libraries/Core/Devtools/getDevServer';
|
|
3
4
|
// Metro and terser don't seem to be capable of shaking the imports unless they're wrapped in __DEV__.
|
|
4
5
|
if (__DEV__) {
|
|
@@ -47,24 +48,16 @@ if (__DEV__) {
|
|
|
47
48
|
Constants.__unsafeNoWarnManifest2?.extra?.expoGo?.logUrl) {
|
|
48
49
|
// Enable logging to the Expo dev tools only if this JS is not running in a web browser (ex: the
|
|
49
50
|
// remote debugger). In Expo Web we don't show console logs in the CLI, so there's no special case needed.
|
|
50
|
-
if (
|
|
51
|
-
const Logs = require('../logs/Logs');
|
|
52
|
-
Logs.enableExpoCliLogging();
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
51
|
+
if (Platform.isAsyncDebugging) {
|
|
55
52
|
const RemoteLogging = require('../logs/RemoteLogging').default;
|
|
56
53
|
RemoteLogging.enqueueRemoteLogAsync('info', {}, [
|
|
57
54
|
'You are now debugging remotely; check your browser console for your application logs.',
|
|
58
55
|
]);
|
|
59
56
|
}
|
|
57
|
+
else {
|
|
58
|
+
const Logs = require('../logs/Logs');
|
|
59
|
+
Logs.enableExpoCliLogging();
|
|
60
|
+
}
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
/**
|
|
63
|
-
* In all web browsers navigator.product is "Gecko" for compatibility reasons.
|
|
64
|
-
* See https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID/product
|
|
65
|
-
* and the discussion at https://github.com/expo/expo/pull/8807#discussion_r441391148.
|
|
66
|
-
*/
|
|
67
|
-
function isRunningInWebBrowser() {
|
|
68
|
-
return navigator?.product === 'Gecko';
|
|
69
|
-
}
|
|
70
63
|
//# sourceMappingURL=logging.fx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.fx.js","sourceRoot":"","sources":["../../src/environment/logging.fx.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAE7E,sGAAsG;AACtG,IAAI,OAAO,EAAE;IACX,kFAAkF;IAClF,qFAAqF;IACrF;IACE,yGAAyG;IACzG,SAAS,CAAC,sBAAsB;QAChC,2FAA2F;QAC3F,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,EACxC;QACA,MAAM,aAAa,GAAG,YAAY,EAAE,CAAC;QACrC,wDAAwD;QACxD,IAAI,aAAa,CAAC,sBAAsB,EAAE;YACxC,gCAAgC;YAChC,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,GAAG,GAAG,CAA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GAAG,aAAa,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC;YAC3F,wHAAwH;YAExH,MAAM,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;YAC5B,IAAI,SAAS,CAAC,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE;gBACnD,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;aAChE;YACD,IAAI,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;gBACtC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;aAClD;SACF;KACF;IACD,6DAA6D;IAE7D,IACE,SAAS,CAAC,sBAAsB,EAAE,MAAM;QACxC,SAAS,CAAC,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EACxD;QACA,gGAAgG;QAChG,0GAA0G;QAC1G,IAAI,QAAQ,CAAC,gBAAgB,EAAE;YAC7B,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;YAC/D,aAAa,CAAC,qBAAqB,CAAC,MAAM,EAAE,EAAE,EAAE;gBAC9C,uFAAuF;aACxF,CAAC,CAAC;SACJ;aAAM;YACL,MAAM,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;YACrC,IAAI,CAAC,oBAAoB,EAAE,CAAC;SAC7B;KACF;CACF","sourcesContent":["import Constants from 'expo-constants';\nimport { Platform } from 'expo-modules-core';\nimport getDevServer from 'react-native/Libraries/Core/Devtools/getDevServer';\n\n// Metro and terser don't seem to be capable of shaking the imports unless they're wrapped in __DEV__.\nif (__DEV__) {\n // If the app is being run outside of the Expo Go app and not using expo-dev-menu,\n // then we can attempt to polyfill the `logUrl` to enable console logging in the CLI.\n if (\n // If this is defined then we can be define Constants.manifest.logUrl without worrying about the warning.\n Constants.__unsafeNoWarnManifest &&\n // Only attempt to set the URL if `Constants.__unsafeNoWarnManifest.logUrl` is not defined.\n !Constants.__unsafeNoWarnManifest.logUrl\n ) {\n const devServerInfo = getDevServer();\n // Ensure the URL is remote and not local. i.e `file://`\n if (devServerInfo.bundleLoadedFromServer) {\n // url: `http://localhost:8081/`\n const url = !devServerInfo.url.endsWith('/') ? `${devServerInfo.url}/` : devServerInfo.url;\n // The standard Expo logUrl is `http://localhost:19000/logs`, this code assumes that the `logs` endpoint doesn't change.\n\n const logUrl = url + 'logs';\n Constants.__unsafeNoWarnManifest.logUrl = logUrl;\n if (Constants.manifest) {\n Constants.manifest.logUrl = logUrl;\n }\n }\n } else if (\n // If this is defined then we can be define Constants.manifest2.extra.expoGo.logUrl without worrying about the warning.\n Constants.__unsafeNoWarnManifest2 &&\n // Only attempt to set the URL if `Constants.__unsafeNoWarnManifest2.logUrl` is not defined.\n !Constants.__unsafeNoWarnManifest2.extra?.expoGo?.logUrl\n ) {\n const devServerInfo = getDevServer();\n // Ensure the URL is remote and not local. i.e `file://`\n if (devServerInfo.bundleLoadedFromServer) {\n // url: `http://localhost:8081/`\n const url = !devServerInfo.url.endsWith('/') ? `${devServerInfo.url}/` : devServerInfo.url;\n // The standard Expo logUrl is `http://localhost:19000/logs`, this code assumes that the `logs` endpoint doesn't change.\n\n const logUrl = url + 'logs';\n if (Constants.__unsafeNoWarnManifest2.extra?.expoGo) {\n Constants.__unsafeNoWarnManifest2.extra.expoGo.logUrl = logUrl;\n }\n if (Constants.manifest2?.extra?.expoGo) {\n Constants.manifest2.extra.expoGo.logUrl = logUrl;\n }\n }\n }\n // TODO: Maybe warn that console logging will not be enabled.\n\n if (\n Constants.__unsafeNoWarnManifest?.logUrl ||\n Constants.__unsafeNoWarnManifest2?.extra?.expoGo?.logUrl\n ) {\n // Enable logging to the Expo dev tools only if this JS is not running in a web browser (ex: the\n // remote debugger). In Expo Web we don't show console logs in the CLI, so there's no special case needed.\n if (Platform.isAsyncDebugging) {\n const RemoteLogging = require('../logs/RemoteLogging').default;\n RemoteLogging.enqueueRemoteLogAsync('info', {}, [\n 'You are now debugging remotely; check your browser console for your application logs.',\n ]);\n } else {\n const Logs = require('../logs/Logs');\n Logs.enableExpoCliLogging();\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-native-logs.fx.d.ts","sourceRoot":"","sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// AppRegistry transitively installs YellowBox as a side effect, which overrides various console
|
|
2
2
|
// methods that we need to set up before we override them
|
|
3
3
|
import { AppRegistry } from 'react-native';
|
|
4
|
-
AppRegistry; // eslint-disable-line
|
|
4
|
+
AppRegistry; // eslint-disable-line no-unused-expressions
|
|
5
5
|
// NOTE(2018-10-29): temporarily filter out cyclic dependency warnings here since they are noisy and
|
|
6
6
|
// each warning symbolicates a stack trace, which is slow when there are many warnings
|
|
7
7
|
// NOTE(2019-05-27): temporarily filter out LottieAnimationView warnings triggered by
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native-logs.fx.js","sourceRoot":"","sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,yDAAyD;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,WAAW,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"react-native-logs.fx.js","sourceRoot":"","sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,yDAAyD;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,WAAW,CAAC,CAAC,4CAA4C;AAEzD,oGAAoG;AACpG,sFAAsF;AACtF,qFAAqF;AACrF,oDAAoD;AACpD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,SAAS,IAAI,CAAC,GAAG,IAAI;IAClC,IACE,IAAI,CAAC,MAAM,GAAG,CAAC;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,CAAC,gCAAgC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC7C,wEAAwE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACtF,+DAA+D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAChF;QACA,OAAO;KACR;IACD,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC;AACpC,OAAO,CAAC,KAAK,GAAG,SAAS,KAAK,CAAC,GAAG,IAAI;IACpC,IACE,IAAI,CAAC,MAAM,GAAG,CAAC;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAC/C;QACA,OAAO;KACR;IACD,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC","sourcesContent":["// AppRegistry transitively installs YellowBox as a side effect, which overrides various console\n// methods that we need to set up before we override them\nimport { AppRegistry } from 'react-native';\n\nAppRegistry; // eslint-disable-line no-unused-expressions\n\n// NOTE(2018-10-29): temporarily filter out cyclic dependency warnings here since they are noisy and\n// each warning symbolicates a stack trace, which is slow when there are many warnings\n// NOTE(2019-05-27): temporarily filter out LottieAnimationView warnings triggered by\n// unmaintained react-native-safe-module dependency.\nconst originalWarn = console.warn;\nconsole.warn = function warn(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n (/^Require cycle: .*node_modules/.test(args[0]) ||\n /Use UIManager\\.getViewManagerConfig\\('LottieAnimationView'\\) instead\\./.test(args[0]) ||\n /ReactNative\\.NativeModules\\.LottieAnimationView\\.getConstants/.test(args[0]))\n ) {\n return;\n }\n originalWarn.apply(console, args);\n};\n\nconst originalError = console.error;\nconsole.error = function error(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n /^Warning: .* has been extracted/.test(args[0])\n ) {\n return;\n }\n originalError.apply(console, args);\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.fx.d.ts","sourceRoot":"","sources":["../../src/environment/validate.fx.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import Constants, { ExecutionEnvironment } from 'expo-constants'; // eslint-disable-line
|
|
1
|
+
import Constants, { ExecutionEnvironment } from 'expo-constants'; // eslint-disable-line no-unused-expressions
|
|
2
2
|
import {
|
|
3
3
|
// React Native's internal InitializeCore module sets up `window` but runs only when its React
|
|
4
4
|
// renderer is loaded. We can cause this by loading one of its dependents.
|
|
5
5
|
findNodeHandle, } from 'react-native';
|
|
6
6
|
import { shouldThrowAnErrorOutsideOfExpo } from './validatorState';
|
|
7
|
-
findNodeHandle; // eslint-disable-line
|
|
7
|
+
findNodeHandle; // eslint-disable-line no-unused-expressions
|
|
8
8
|
if (shouldThrowAnErrorOutsideOfExpo() &&
|
|
9
9
|
!Constants?.expoVersion &&
|
|
10
10
|
Constants?.executionEnvironment !== ExecutionEnvironment.Bare) {
|
|
11
|
-
throw new Error(`Expo native runtime is not available: something went wrong and we aren't sure what it was. Please post more information and get support at https://forums.expo.
|
|
11
|
+
throw new Error(`Expo native runtime is not available: something went wrong and we aren't sure what it was. Please post more information and get support at https://forums.expo.dev.`);
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=validate.fx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.fx.js","sourceRoot":"","sources":["../../src/environment/validate.fx.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"validate.fx.js","sourceRoot":"","sources":["../../src/environment/validate.fx.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC,CAAC,4CAA4C;AAC9G,OAAO;AACL,8FAA8F;AAC9F,0EAA0E;AAC1E,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAEnE,cAAc,CAAC,CAAC,4CAA4C;AAE5D,IACE,+BAA+B,EAAE;IACjC,CAAC,SAAS,EAAE,WAAW;IACvB,SAAS,EAAE,oBAAoB,KAAK,oBAAoB,CAAC,IAAI,EAC7D;IACA,MAAM,IAAI,KAAK,CACb,qKAAqK,CACtK,CAAC;CACH","sourcesContent":["import Constants, { ExecutionEnvironment } from 'expo-constants'; // eslint-disable-line no-unused-expressions\nimport {\n // React Native's internal InitializeCore module sets up `window` but runs only when its React\n // renderer is loaded. We can cause this by loading one of its dependents.\n findNodeHandle,\n} from 'react-native';\n\nimport { shouldThrowAnErrorOutsideOfExpo } from './validatorState';\n\nfindNodeHandle; // eslint-disable-line no-unused-expressions\n\nif (\n shouldThrowAnErrorOutsideOfExpo() &&\n !Constants?.expoVersion &&\n Constants?.executionEnvironment !== ExecutionEnvironment.Bare\n) {\n throw new Error(\n `Expo native runtime is not available: something went wrong and we aren't sure what it was. Please post more information and get support at https://forums.expo.dev.`\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validatorState.d.ts","sourceRoot":"","sources":["../../src/environment/validatorState.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,KAAA,QAExD;AAED;;GAEG;AACH,wBAAgB,+BAA+B,YAE9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecoveryProps.d.ts","sourceRoot":"","sources":["../../src/launch/RecoveryProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,yCAWhC,CAAC"}
|
|
@@ -2,3 +2,4 @@ import 'expo/build/Expo.fx';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { InitialProps } from './withExpoRoot.types';
|
|
4
4
|
export default function registerRootComponent<P extends InitialProps>(component: React.ComponentType<P>): void;
|
|
5
|
+
//# sourceMappingURL=registerRootComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerRootComponent.d.ts","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAClE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,IAAI,CAMN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withExpoRoot.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAcpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,YAAY,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAOxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withExpoRoot.types.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,GAAG,EAAE;QACH,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,aAAa,CAAC,EAAE,GAAG,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withExpoRoot.web.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,YAAY,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAOzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogSerialization.d.ts","sourceRoot":"","sources":["../../src/logs/LogSerialization.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGpD,aAAK,cAAc,GAAG;IACpB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qBAAqB,CAAC;AAE3D,iBAAe,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CAqD9F;;;;AAwID,wBAEE"}
|
|
@@ -94,7 +94,7 @@ async function _symbolicateErrorAsync(error) {
|
|
|
94
94
|
// than the one in DefinitelyTyped.
|
|
95
95
|
symbolicatedStack = (await symbolicateStackTrace(parsedStack))?.stack ?? null;
|
|
96
96
|
}
|
|
97
|
-
catch
|
|
97
|
+
catch {
|
|
98
98
|
return parsedStack;
|
|
99
99
|
}
|
|
100
100
|
// In this context an unsymbolicated stack is better than no stack
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogSerialization.js","sourceRoot":"","sources":["../../src/logs/LogSerialization.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,eAA+B,MAAM,sDAAsD,CAAC;AACnG,OAAO,qBAAqB,MAAM,4DAA4D,CAAC;AAG/F,OAAO,kBAAkB,MAAM,6BAA6B,CAAC;AAO7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAE3D,KAAK,UAAU,qBAAqB,CAAC,IAAe,EAAE,KAAe;IACnE,IAAI,gBAAoC,CAAC;IACzC,IAAI,aAAa,GAAG,KAAK,CAAC;IAE1B,IAAI,wBAAwB,EAAE,EAAE;QAC9B,IAAI,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;YAC7C,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAW,CAAC;YACnC,MAAM,cAAc,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;YAC3C,MAAM,KAAK,GAAG,MAAM,sBAAsB,CAAC,cAAuB,CAAC,CAAC;YAEpE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACjB,gBAAgB,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;aAC5C;iBAAM;gBACL,yDAAyD;gBACzD,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7C,gBAAgB,GAAG;oBACjB;wBACE,OAAO,EAAE,iCAAiC,YAAY,GAAG;wBACzD,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC;qBAC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SAAS,wBAAwB;IAC/B,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,4BAA4B,CAAC,IAAe,EAAE,KAAe;IACpE,OAAO,CACL,KAAK,KAAK,MAAM;QAChB,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,uCAAuC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAW,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB;IAChC,IAAI;QACF,MAAM,IAAI,KAAK,EAAE,CAAC;KACnB;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CACxD,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CACzC,CAAC;QACF,IAAI,kBAAkB,KAAK,CAAC,CAAC,EAAE;YAC7B,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC;YACtD,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,CACL,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW;QAC1C,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW;QAC1D,IAAI,CACL,CAAC;AACJ,CAAC;AAED,eAAe;IACb,qBAAqB;CACtB,CAAC","sourcesContent":["import Constants from 'expo-constants';\nimport prettyFormat from 'pretty-format';\nimport parseErrorStack, { StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack';\nimport symbolicateStackTrace from 'react-native/Libraries/Core/Devtools/symbolicateStackTrace';\n\nimport { LogData, LogLevel } from './RemoteLogging';\nimport ReactNodeFormatter from './format/ReactNodeFormatter';\n\ntype SerializedData = {\n body: LogData[];\n includesStack: boolean;\n};\n\nexport const EXPO_CONSOLE_METHOD_NAME = '__expoConsoleLog';\n\nasync function serializeLogDataAsync(data: unknown[], level: LogLevel): Promise<SerializedData> {\n let serializedValues: readonly LogData[];\n let includesStack = false;\n\n if (_stackTraceLogsSupported()) {\n if (_isUnhandledPromiseRejection(data, level)) {\n const rawStack = data[0] as string;\n const syntheticError = { stack: rawStack };\n const stack = await _symbolicateErrorAsync(syntheticError as Error);\n\n if (!stack.length) {\n serializedValues = _stringifyLogData(data);\n } else {\n // NOTE: This doesn't handle error messages with newlines\n const errorMessage = rawStack.split('\\n')[1];\n serializedValues = [\n {\n message: `[Unhandled promise rejection: ${errorMessage}]`,\n stack: _formatStack(stack),\n },\n ];\n includesStack = true;\n }\n } else if (data.length === 1 && data[0] instanceof Error) {\n // When there's only one argument to the log function and that argument is an error, we\n // include the error's stack. If there's more than one argument then we don't include the\n // stack because it's not easy to display nicely in our current UI.\n\n const serializedError = await _serializeErrorAsync(data[0] as Error);\n serializedValues = [serializedError];\n includesStack = serializedError.hasOwnProperty('stack');\n } else if (level === 'warn' || level === 'error') {\n // For console.warn and console.error it is usually useful to know the stack that leads to the\n // warning or error, so we provide this information to help out with debugging\n\n const error = _captureConsoleStackTrace();\n // [\"hello\", \"world\"] becomes \"hello, world\"\n const errorMessage = _stringifyLogData(data).join(', ');\n\n const serializedError = await _serializeErrorAsync(error, errorMessage);\n serializedValues = [serializedError];\n includesStack = serializedError.hasOwnProperty('stack');\n } else {\n serializedValues = _stringifyLogData(data);\n }\n } else {\n serializedValues = _stringifyLogData(data);\n }\n\n return {\n body: [...serializedValues],\n includesStack,\n };\n}\n\nfunction _stringifyLogData(data: unknown[]): string[] {\n return data.map((item) => {\n // define the max length for log msg to be first 10000 characters\n const LOG_MESSAGE_MAX_LENGTH = 10000;\n const result =\n typeof item === 'string' ? item : prettyFormat(item, { plugins: [ReactNodeFormatter] });\n // check the size of string returned\n if (result.length > LOG_MESSAGE_MAX_LENGTH) {\n let truncatedResult = result.substring(0, LOG_MESSAGE_MAX_LENGTH);\n // truncate the result string to the max length\n truncatedResult += `...(truncated to the first ${LOG_MESSAGE_MAX_LENGTH} characters)`;\n return truncatedResult;\n } else {\n return result;\n }\n });\n}\n\nasync function _serializeErrorAsync(error: Error, message?: string): Promise<LogData> {\n if (message == null) {\n message = error.message;\n }\n\n if (!error.stack || !error.stack.length) {\n return prettyFormat(error);\n }\n\n const stack = await _symbolicateErrorAsync(error);\n const formattedStack = _formatStack(stack);\n\n return { message, stack: formattedStack };\n}\n\nasync function _symbolicateErrorAsync(error: Error): Promise<StackFrame[]> {\n // @ts-ignore: parseErrorStack accepts nullable string after RN 0.64 but @types/react-native does not updated yet.\n const parsedStack = parseErrorStack(error?.stack);\n let symbolicatedStack: StackFrame[] | null;\n try {\n // @ts-ignore: symbolicateStackTrace has different real/Flow declaration\n // than the one in DefinitelyTyped.\n symbolicatedStack = (await symbolicateStackTrace(parsedStack))?.stack ?? null;\n } catch (error) {\n return parsedStack;\n }\n\n // In this context an unsymbolicated stack is better than no stack\n if (!symbolicatedStack) {\n return parsedStack;\n }\n\n // Clean the stack trace\n return symbolicatedStack.map(_removeProjectRoot);\n}\n\nfunction _formatStack(stack: StackFrame[]): string {\n return stack\n .map((frame) => {\n let line = `${frame.file}:${frame.lineNumber}`;\n if (frame.column != null) {\n line += `:${frame.column}`;\n }\n line += ` in ${frame.methodName}`;\n return line;\n })\n .join('\\n');\n}\n\nfunction _removeProjectRoot(frame: StackFrame): StackFrame {\n let filename = frame.file;\n if (filename == null) {\n return frame;\n }\n\n const projectRoot = _getProjectRoot();\n if (projectRoot == null) {\n return frame;\n }\n\n if (filename.startsWith(projectRoot)) {\n filename = filename.substring(projectRoot.length);\n if (filename[0] === '/' || filename[0] === '\\\\') {\n filename = filename.substring(1);\n }\n frame.file = filename;\n }\n\n return frame;\n}\n\n/**\n * Returns whether the development server that served this project supports logs with a stack trace.\n * Specifically, the version of Expo CLI that includes `projectRoot` in the manifest also accepts\n * payloads of the form:\n *\n * {\n * includesStack: boolean, body: [{ message: string, stack: string }],\n * }\n */\nfunction _stackTraceLogsSupported(): boolean {\n return !!(__DEV__ && _getProjectRoot());\n}\n\nfunction _isUnhandledPromiseRejection(data: unknown[], level: LogLevel): boolean {\n return (\n level === 'warn' &&\n typeof data[0] === 'string' &&\n /^Possible Unhandled Promise Rejection/.test(data[0] as string)\n );\n}\n\nfunction _captureConsoleStackTrace(): Error {\n try {\n throw new Error();\n } catch (error) {\n let stackLines = error.stack.split('\\n');\n const consoleMethodIndex = stackLines.findIndex((frame) =>\n frame.includes(EXPO_CONSOLE_METHOD_NAME)\n );\n if (consoleMethodIndex !== -1) {\n stackLines = stackLines.slice(consoleMethodIndex + 1);\n error.stack = stackLines.join('\\n');\n }\n return error;\n }\n}\n\nfunction _getProjectRoot(): string | null {\n return (\n Constants.manifest?.developer?.projectRoot ??\n Constants.manifest2?.extra?.expoGo?.developer?.projectRoot ??\n null\n );\n}\n\nexport default {\n serializeLogDataAsync,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"LogSerialization.js","sourceRoot":"","sources":["../../src/logs/LogSerialization.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,eAA+B,MAAM,sDAAsD,CAAC;AACnG,OAAO,qBAAqB,MAAM,4DAA4D,CAAC;AAG/F,OAAO,kBAAkB,MAAM,6BAA6B,CAAC;AAO7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAE3D,KAAK,UAAU,qBAAqB,CAAC,IAAe,EAAE,KAAe;IACnE,IAAI,gBAAoC,CAAC;IACzC,IAAI,aAAa,GAAG,KAAK,CAAC;IAE1B,IAAI,wBAAwB,EAAE,EAAE;QAC9B,IAAI,4BAA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AAK,CAAC,kBAAkB,GAAG,CAAC,CAAC,CAAC;YACtD,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrC;QACD,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,CACL,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW;QAC1C,SAAS,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW;QAC1D,IAAI,CACL,CAAC;AACJ,CAAC;AAED,eAAe;IACb,qBAAqB;CACtB,CAAC","sourcesContent":["import Constants from 'expo-constants';\nimport prettyFormat from 'pretty-format';\nimport parseErrorStack, { StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack';\nimport symbolicateStackTrace from 'react-native/Libraries/Core/Devtools/symbolicateStackTrace';\n\nimport { LogData, LogLevel } from './RemoteLogging';\nimport ReactNodeFormatter from './format/ReactNodeFormatter';\n\ntype SerializedData = {\n body: LogData[];\n includesStack: boolean;\n};\n\nexport const EXPO_CONSOLE_METHOD_NAME = '__expoConsoleLog';\n\nasync function serializeLogDataAsync(data: unknown[], level: LogLevel): Promise<SerializedData> {\n let serializedValues: readonly LogData[];\n let includesStack = false;\n\n if (_stackTraceLogsSupported()) {\n if (_isUnhandledPromiseRejection(data, level)) {\n const rawStack = data[0] as string;\n const syntheticError = { stack: rawStack };\n const stack = await _symbolicateErrorAsync(syntheticError as Error);\n\n if (!stack.length) {\n serializedValues = _stringifyLogData(data);\n } else {\n // NOTE: This doesn't handle error messages with newlines\n const errorMessage = rawStack.split('\\n')[1];\n serializedValues = [\n {\n message: `[Unhandled promise rejection: ${errorMessage}]`,\n stack: _formatStack(stack),\n },\n ];\n includesStack = true;\n }\n } else if (data.length === 1 && data[0] instanceof Error) {\n // When there's only one argument to the log function and that argument is an error, we\n // include the error's stack. If there's more than one argument then we don't include the\n // stack because it's not easy to display nicely in our current UI.\n\n const serializedError = await _serializeErrorAsync(data[0] as Error);\n serializedValues = [serializedError];\n includesStack = serializedError.hasOwnProperty('stack');\n } else if (level === 'warn' || level === 'error') {\n // For console.warn and console.error it is usually useful to know the stack that leads to the\n // warning or error, so we provide this information to help out with debugging\n\n const error = _captureConsoleStackTrace();\n // [\"hello\", \"world\"] becomes \"hello, world\"\n const errorMessage = _stringifyLogData(data).join(', ');\n\n const serializedError = await _serializeErrorAsync(error, errorMessage);\n serializedValues = [serializedError];\n includesStack = serializedError.hasOwnProperty('stack');\n } else {\n serializedValues = _stringifyLogData(data);\n }\n } else {\n serializedValues = _stringifyLogData(data);\n }\n\n return {\n body: [...serializedValues],\n includesStack,\n };\n}\n\nfunction _stringifyLogData(data: unknown[]): string[] {\n return data.map((item) => {\n // define the max length for log msg to be first 10000 characters\n const LOG_MESSAGE_MAX_LENGTH = 10000;\n const result =\n typeof item === 'string' ? item : prettyFormat(item, { plugins: [ReactNodeFormatter] });\n // check the size of string returned\n if (result.length > LOG_MESSAGE_MAX_LENGTH) {\n let truncatedResult = result.substring(0, LOG_MESSAGE_MAX_LENGTH);\n // truncate the result string to the max length\n truncatedResult += `...(truncated to the first ${LOG_MESSAGE_MAX_LENGTH} characters)`;\n return truncatedResult;\n } else {\n return result;\n }\n });\n}\n\nasync function _serializeErrorAsync(error: Error, message?: string): Promise<LogData> {\n if (message == null) {\n message = error.message;\n }\n\n if (!error.stack || !error.stack.length) {\n return prettyFormat(error);\n }\n\n const stack = await _symbolicateErrorAsync(error);\n const formattedStack = _formatStack(stack);\n\n return { message, stack: formattedStack };\n}\n\nasync function _symbolicateErrorAsync(error: Error): Promise<StackFrame[]> {\n // @ts-ignore: parseErrorStack accepts nullable string after RN 0.64 but @types/react-native does not updated yet.\n const parsedStack = parseErrorStack(error?.stack);\n let symbolicatedStack: StackFrame[] | null;\n try {\n // @ts-ignore: symbolicateStackTrace has different real/Flow declaration\n // than the one in DefinitelyTyped.\n symbolicatedStack = (await symbolicateStackTrace(parsedStack))?.stack ?? null;\n } catch {\n return parsedStack;\n }\n\n // In this context an unsymbolicated stack is better than no stack\n if (!symbolicatedStack) {\n return parsedStack;\n }\n\n // Clean the stack trace\n return symbolicatedStack.map(_removeProjectRoot);\n}\n\nfunction _formatStack(stack: StackFrame[]): string {\n return stack\n .map((frame) => {\n let line = `${frame.file}:${frame.lineNumber}`;\n if (frame.column != null) {\n line += `:${frame.column}`;\n }\n line += ` in ${frame.methodName}`;\n return line;\n })\n .join('\\n');\n}\n\nfunction _removeProjectRoot(frame: StackFrame): StackFrame {\n let filename = frame.file;\n if (filename == null) {\n return frame;\n }\n\n const projectRoot = _getProjectRoot();\n if (projectRoot == null) {\n return frame;\n }\n\n if (filename.startsWith(projectRoot)) {\n filename = filename.substring(projectRoot.length);\n if (filename[0] === '/' || filename[0] === '\\\\') {\n filename = filename.substring(1);\n }\n frame.file = filename;\n }\n\n return frame;\n}\n\n/**\n * Returns whether the development server that served this project supports logs with a stack trace.\n * Specifically, the version of Expo CLI that includes `projectRoot` in the manifest also accepts\n * payloads of the form:\n *\n * {\n * includesStack: boolean, body: [{ message: string, stack: string }],\n * }\n */\nfunction _stackTraceLogsSupported(): boolean {\n return !!(__DEV__ && _getProjectRoot());\n}\n\nfunction _isUnhandledPromiseRejection(data: unknown[], level: LogLevel): boolean {\n return (\n level === 'warn' &&\n typeof data[0] === 'string' &&\n /^Possible Unhandled Promise Rejection/.test(data[0] as string)\n );\n}\n\nfunction _captureConsoleStackTrace(): Error {\n try {\n throw new Error();\n } catch (error) {\n let stackLines = error.stack.split('\\n');\n const consoleMethodIndex = stackLines.findIndex((frame) =>\n frame.includes(EXPO_CONSOLE_METHOD_NAME)\n );\n if (consoleMethodIndex !== -1) {\n stackLines = stackLines.slice(consoleMethodIndex + 1);\n error.stack = stackLines.join('\\n');\n }\n return error;\n }\n}\n\nfunction _getProjectRoot(): string | null {\n return (\n Constants.manifest?.developer?.projectRoot ??\n Constants.manifest2?.extra?.expoGo?.developer?.projectRoot ??\n null\n );\n}\n\nexport default {\n serializeLogDataAsync,\n};\n"]}
|
package/build/logs/Logs.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logs.d.ts","sourceRoot":"","sources":["../../src/logs/Logs.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAS5C"}
|
package/build/logs/Logs.web.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Logs.web.d.ts","sourceRoot":"","sources":["../../src/logs/Logs.web.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AACD,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteConsole.d.ts","sourceRoot":"","sources":["../../src/logs/RemoteConsole.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,OAAO,GAAG,OAAO,CAuHrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteLogging.d.ts","sourceRoot":"","sources":["../../src/logs/RemoteLogging.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAO5D,oBAAY,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAU3D,oBAAY,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,oBAAY,OAAO,GAAG,MAAM,GAAG,YAAY,CAAC;AAC5C,oBAAY,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9D,aAAK,sBAAsB,GAAG,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,KAAK,IAAI,CAAC;AAWrF,iBAAe,qBAAqB,CAClC,KAAK,EAAE,QAAQ,EACf,gBAAgB,EAAE,cAAc,EAChC,IAAI,EAAE,OAAO,EAAE,GACd,OAAO,CAAC,IAAI,CAAC,CAgCf;AAiED,iBAAS,yBAAyB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,iBAAiB,CAEtF;;;;;AAQD,wBAGE;AAEF;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAqB3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactNodeFormatter.d.ts","sourceRoot":"","sources":["../../../src/logs/format/ReactNodeFormatter.ts"],"names":[],"mappings":";gBAKc,GAAG,GAAG,OAAO;8FAUmC,MAAM;;AAfpE;;;GAGG;AACH,wBAsBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfillNextTick.d.ts","sourceRoot":"","sources":["../../src/timer/polyfillNextTick.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,112 +1,114 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@expo/vector-icons": "^12.0.0",
|
|
3
3
|
"@react-native-async-storage/async-storage": "~1.15.0",
|
|
4
|
-
"@react-native-community/datetimepicker": "
|
|
4
|
+
"@react-native-community/datetimepicker": "6.1.2",
|
|
5
5
|
"@react-native-masked-view/masked-view": "0.2.6",
|
|
6
|
-
"@react-native-community/netinfo": "
|
|
7
|
-
"@react-native-community/slider": "4.1
|
|
6
|
+
"@react-native-community/netinfo": "8.2.0",
|
|
7
|
+
"@react-native-community/slider": "4.2.1",
|
|
8
8
|
"@react-native-community/viewpager": "5.0.11",
|
|
9
|
-
"@react-native-picker/picker": "2.
|
|
9
|
+
"@react-native-picker/picker": "2.4.0",
|
|
10
10
|
"@react-native-segmented-control/segmented-control": "2.4.0",
|
|
11
|
-
"@stripe/stripe-react-native": "0.
|
|
11
|
+
"@stripe/stripe-react-native": "0.6.0",
|
|
12
12
|
"@unimodules/core": "~7.2.0",
|
|
13
13
|
"@unimodules/react-native-adapter": "~6.5.0",
|
|
14
|
-
"expo-ads-admob": "~
|
|
15
|
-
"expo-ads-facebook": "~11.
|
|
16
|
-
"expo-analytics-amplitude": "~11.
|
|
17
|
-
"expo-analytics-segment": "~11.
|
|
14
|
+
"expo-ads-admob": "~13.0.0",
|
|
15
|
+
"expo-ads-facebook": "~11.2.0",
|
|
16
|
+
"expo-analytics-amplitude": "~11.2.0",
|
|
17
|
+
"expo-analytics-segment": "~11.2.0",
|
|
18
18
|
"expo-app-auth": "~11.1.0",
|
|
19
19
|
"expo-app-loader-provider": "~8.0.0",
|
|
20
|
-
"expo-app-loading": "~
|
|
21
|
-
"expo-apple-authentication": "~4.
|
|
22
|
-
"expo-application": "~4.0
|
|
23
|
-
"expo-asset": "~8.
|
|
24
|
-
"expo-auth-session": "~3.
|
|
25
|
-
"expo-av": "~
|
|
26
|
-
"expo-background-fetch": "~10.
|
|
27
|
-
"expo-barcode-scanner": "~11.
|
|
28
|
-
"expo-battery": "~6.
|
|
29
|
-
"expo-blur": "~11.
|
|
30
|
-
"expo-branch": "~5.
|
|
31
|
-
"expo-brightness": "~10.
|
|
32
|
-
"expo-calendar": "~10.
|
|
33
|
-
"expo-camera": "~12.
|
|
34
|
-
"expo-cellular": "~4.
|
|
35
|
-
"expo-checkbox": "~2.
|
|
36
|
-
"expo-clipboard": "~
|
|
37
|
-
"expo-constants": "~13.
|
|
38
|
-
"expo-contacts": "~10.
|
|
39
|
-
"expo-crypto": "~10.
|
|
40
|
-
"expo-dev-client": "~0.
|
|
41
|
-
"expo-device": "~4.
|
|
42
|
-
"expo-document-picker": "~10.
|
|
43
|
-
"expo-error-recovery": "~3.0
|
|
44
|
-
"expo-face-detector": "~11.
|
|
45
|
-
"expo-facebook": "~12.
|
|
46
|
-
"expo-file-system": "~
|
|
47
|
-
"expo-firebase-analytics": "~
|
|
48
|
-
"expo-firebase-core": "~
|
|
49
|
-
"expo-firebase-recaptcha": "~2.
|
|
50
|
-
"expo-font": "~10.0
|
|
51
|
-
"expo-gl": "~11.
|
|
52
|
-
"expo-gl-cpp": "~11.1
|
|
20
|
+
"expo-app-loading": "~2.0.0",
|
|
21
|
+
"expo-apple-authentication": "~4.2.0",
|
|
22
|
+
"expo-application": "~4.1.0",
|
|
23
|
+
"expo-asset": "~8.5.0",
|
|
24
|
+
"expo-auth-session": "~3.6.0",
|
|
25
|
+
"expo-av": "~11.2.1",
|
|
26
|
+
"expo-background-fetch": "~10.2.0",
|
|
27
|
+
"expo-barcode-scanner": "~11.3.0",
|
|
28
|
+
"expo-battery": "~6.2.0",
|
|
29
|
+
"expo-blur": "~11.1.0",
|
|
30
|
+
"expo-branch": "~5.2.0",
|
|
31
|
+
"expo-brightness": "~10.2.0",
|
|
32
|
+
"expo-calendar": "~10.2.0",
|
|
33
|
+
"expo-camera": "~12.2.0",
|
|
34
|
+
"expo-cellular": "~4.2.0",
|
|
35
|
+
"expo-checkbox": "~2.1.0",
|
|
36
|
+
"expo-clipboard": "~3.0.1",
|
|
37
|
+
"expo-constants": "~13.1.0",
|
|
38
|
+
"expo-contacts": "~10.2.0",
|
|
39
|
+
"expo-crypto": "~10.2.0",
|
|
40
|
+
"expo-dev-client": "~0.9.0",
|
|
41
|
+
"expo-device": "~4.2.0",
|
|
42
|
+
"expo-document-picker": "~10.2.0",
|
|
43
|
+
"expo-error-recovery": "~3.1.0",
|
|
44
|
+
"expo-face-detector": "~11.2.0",
|
|
45
|
+
"expo-facebook": "~12.2.0",
|
|
46
|
+
"expo-file-system": "~14.0.0",
|
|
47
|
+
"expo-firebase-analytics": "~7.0.0",
|
|
48
|
+
"expo-firebase-core": "~5.0.0",
|
|
49
|
+
"expo-firebase-recaptcha": "~2.2.0",
|
|
50
|
+
"expo-font": "~10.1.0",
|
|
51
|
+
"expo-gl": "~11.2.1",
|
|
52
|
+
"expo-gl-cpp": "~11.2.1",
|
|
53
53
|
"expo-google-app-auth": "~8.3.0",
|
|
54
|
-
"expo-google-sign-in": "~10.
|
|
55
|
-
"expo-haptics": "~11.
|
|
56
|
-
"expo-image-loader": "~3.
|
|
57
|
-
"expo-image-manipulator": "~10.
|
|
58
|
-
"expo-image-picker": "~
|
|
59
|
-
"expo-in-app-purchases": "~
|
|
60
|
-
"expo-intent-launcher": "~10.
|
|
61
|
-
"expo-keep-awake": "~10.0
|
|
62
|
-
"expo-linear-gradient": "~11.
|
|
63
|
-
"expo-linking": "~3.
|
|
64
|
-
"expo-local-authentication": "~12.
|
|
65
|
-
"expo-localization": "~
|
|
66
|
-
"expo-location": "~14.
|
|
67
|
-
"expo-mail-composer": "~11.
|
|
68
|
-
"expo-media-library": "~14.
|
|
69
|
-
"expo-module-template": "~10.
|
|
70
|
-
"expo-modules-core": "~0.
|
|
71
|
-
"expo-navigation-bar": "~1.
|
|
72
|
-
"expo-network": "~4.
|
|
73
|
-
"expo-notifications": "~0.
|
|
74
|
-
"expo-permissions": "~13.
|
|
75
|
-
"expo-print": "~11.
|
|
76
|
-
"expo-random": "~12.
|
|
77
|
-
"expo-screen-orientation": "~4.
|
|
78
|
-
"expo-secure-store": "~11.
|
|
79
|
-
"expo-sensors": "~11.
|
|
80
|
-
"expo-sharing": "~10.
|
|
81
|
-
"expo-sms": "~10.
|
|
82
|
-
"expo-speech": "~10.
|
|
83
|
-
"expo-splash-screen": "~0.
|
|
84
|
-
"expo-sqlite": "~10.
|
|
85
|
-
"expo-status-bar": "~1.
|
|
86
|
-
"expo-store-review": "~5.
|
|
87
|
-
"expo-system-ui": "~1.
|
|
88
|
-
"expo-task-manager": "~10.
|
|
89
|
-
"expo-tracking-transparency": "~2.
|
|
90
|
-
"expo-updates": "~0.
|
|
91
|
-
"expo-video-thumbnails": "~6.
|
|
92
|
-
"expo-web-browser": "~10.
|
|
54
|
+
"expo-google-sign-in": "~10.2.0",
|
|
55
|
+
"expo-haptics": "~11.2.0",
|
|
56
|
+
"expo-image-loader": "~3.2.0",
|
|
57
|
+
"expo-image-manipulator": "~10.3.1",
|
|
58
|
+
"expo-image-picker": "~13.0.1",
|
|
59
|
+
"expo-in-app-purchases": "~13.0.0",
|
|
60
|
+
"expo-intent-launcher": "~10.2.0",
|
|
61
|
+
"expo-keep-awake": "~10.1.0",
|
|
62
|
+
"expo-linear-gradient": "~11.3.0",
|
|
63
|
+
"expo-linking": "~3.1.0",
|
|
64
|
+
"expo-local-authentication": "~12.2.0",
|
|
65
|
+
"expo-localization": "~13.0.0",
|
|
66
|
+
"expo-location": "~14.2.1",
|
|
67
|
+
"expo-mail-composer": "~11.2.0",
|
|
68
|
+
"expo-media-library": "~14.1.0",
|
|
69
|
+
"expo-module-template": "~10.4.0",
|
|
70
|
+
"expo-modules-core": "~0.8.0",
|
|
71
|
+
"expo-navigation-bar": "~1.2.0",
|
|
72
|
+
"expo-network": "~4.2.0",
|
|
73
|
+
"expo-notifications": "~0.15.0",
|
|
74
|
+
"expo-permissions": "~13.2.0",
|
|
75
|
+
"expo-print": "~11.2.0",
|
|
76
|
+
"expo-random": "~12.2.0",
|
|
77
|
+
"expo-screen-orientation": "~4.2.0",
|
|
78
|
+
"expo-secure-store": "~11.2.0",
|
|
79
|
+
"expo-sensors": "~11.2.0",
|
|
80
|
+
"expo-sharing": "~10.2.0",
|
|
81
|
+
"expo-sms": "~10.2.0",
|
|
82
|
+
"expo-speech": "~10.2.0",
|
|
83
|
+
"expo-splash-screen": "~0.15.0",
|
|
84
|
+
"expo-sqlite": "~10.2.0",
|
|
85
|
+
"expo-status-bar": "~1.3.0",
|
|
86
|
+
"expo-store-review": "~5.2.0",
|
|
87
|
+
"expo-system-ui": "~1.2.0",
|
|
88
|
+
"expo-task-manager": "~10.2.0",
|
|
89
|
+
"expo-tracking-transparency": "~2.2.0",
|
|
90
|
+
"expo-updates": "~0.12.0",
|
|
91
|
+
"expo-video-thumbnails": "~6.3.0",
|
|
92
|
+
"expo-web-browser": "~10.2.0",
|
|
93
93
|
"lottie-react-native": "5.0.1",
|
|
94
|
-
"react
|
|
94
|
+
"react": "17.0.2",
|
|
95
|
+
"react-dom": "17.0.2",
|
|
96
|
+
"react-native": "0.68.0",
|
|
97
|
+
"react-native-web": "0.17.1",
|
|
95
98
|
"react-native-branch": "5.0.0",
|
|
96
|
-
"react-native-gesture-handler": "~2.
|
|
99
|
+
"react-native-gesture-handler": "~2.2.0",
|
|
97
100
|
"react-native-get-random-values": "~1.7.0",
|
|
98
|
-
"react-native-maps": "0.
|
|
99
|
-
"react-native-pager-view": "5.4.
|
|
100
|
-
"react-native-reanimated": "~2.
|
|
101
|
-
"react-native-safe-area-context": "
|
|
102
|
-
"react-native-screens": "~3.
|
|
103
|
-
"react-native-shared-element": "0.8.
|
|
104
|
-
"react-native-svg": "12.
|
|
101
|
+
"react-native-maps": "0.30.1",
|
|
102
|
+
"react-native-pager-view": "5.4.15",
|
|
103
|
+
"react-native-reanimated": "~2.7.0",
|
|
104
|
+
"react-native-safe-area-context": "4.2.4",
|
|
105
|
+
"react-native-screens": "~3.11.1",
|
|
106
|
+
"react-native-shared-element": "0.8.4",
|
|
107
|
+
"react-native-svg": "12.3.0",
|
|
105
108
|
"react-native-unimodules": "~0.15.0",
|
|
106
109
|
"react-native-view-shot": "3.1.2",
|
|
107
|
-
"react-native-webview": "11.
|
|
110
|
+
"react-native-webview": "11.18.1",
|
|
108
111
|
"sentry-expo": "^4.0.0",
|
|
109
|
-
"unimodules-app-loader": "~3.
|
|
110
|
-
"unimodules-image-loader-interface": "~6.1.0"
|
|
111
|
-
"unimodules-task-manager-interface": "~7.1.0"
|
|
112
|
+
"unimodules-app-loader": "~3.1.0",
|
|
113
|
+
"unimodules-image-loader-interface": "~6.1.0"
|
|
112
114
|
}
|
package/ios/EXAppDefinesLoader.m
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#import <Expo/EXAppDefinesLoader.h>
|
|
4
4
|
|
|
5
5
|
#import <ExpoModulesCore/ExpoModulesCore.h>
|
|
6
|
+
#import <ExpoModulesCore/EXAppDefines.h>
|
|
6
7
|
#import <React/RCTDefines.h>
|
|
7
8
|
|
|
8
9
|
@implementation EXAppDefinesLoader
|
|
@@ -18,6 +19,11 @@
|
|
|
18
19
|
#endif
|
|
19
20
|
@"APP_RCT_DEBUG": @(RCT_DEBUG),
|
|
20
21
|
@"APP_RCT_DEV": @(RCT_DEV),
|
|
22
|
+
#if RCT_NEW_ARCH_ENABLED
|
|
23
|
+
@"APP_NEW_ARCH_ENABLED": @(YES),
|
|
24
|
+
#else
|
|
25
|
+
@"APP_NEW_ARCH_ENABLED": @(NO),
|
|
26
|
+
#endif
|
|
21
27
|
}];
|
|
22
28
|
}
|
|
23
29
|
|