Files
solelog/.yarn/patches/react-native-purchases-ui+9.6.1.patch
Bas van Rossem d94d0b188b Initial commit: code as received (Create/Anything export)
Insole-production time tracker exported from the Create/Anything AI
platform. Baseline snapshot before any reverse-engineering or cleanup.

- apps/mobile: Expo Router app (iOS/Android/web), the only workspace
- publisher/: standalone OpenNext/AWS deploy tooling for the web side
- Backend (/api/tasks, /api/logs + DB) lives remotely, not in this repo
2026-06-17 10:19:33 +02:00

60 lines
1.8 KiB
Diff

diff --git a/lib/commonjs/utils/environment.js b/lib/commonjs/utils/environment.js
index 43e5e6a..b67d36a 100644
--- a/lib/commonjs/utils/environment.js
+++ b/lib/commonjs/utils/environment.js
@@ -31,6 +31,12 @@ function shouldUsePreviewAPIMode() {
*/
function isExpoGo() {
var _globalThis$expo;
+ if (!__DEV__) {
+ return false;
+ }
+ if (globalThis.expo && globalThis.expo.modules && globalThis.expo.modules.AnythingLauncherModule) {
+ return true;
+ }
if (!!_reactNative.NativeModules.RNPaywalls && !!_reactNative.NativeModules.RNCustomerCenter) {
return false;
}
diff --git a/lib/module/utils/environment.js b/lib/module/utils/environment.js
index 435d456..4002fe2 100644
--- a/lib/module/utils/environment.js
+++ b/lib/module/utils/environment.js
@@ -26,6 +26,12 @@ export function shouldUsePreviewAPIMode() {
*/
function isExpoGo() {
var _globalThis$expo;
+ if (!__DEV__) {
+ return false;
+ }
+ if (globalThis.expo && globalThis.expo.modules && globalThis.expo.modules.AnythingLauncherModule) {
+ return true;
+ }
if (!!NativeModules.RNPaywalls && !!NativeModules.RNCustomerCenter) {
return false;
}
diff --git a/src/utils/environment.ts b/src/utils/environment.ts
index 5605bf2..ed86595 100644
--- a/src/utils/environment.ts
+++ b/src/utils/environment.ts
@@ -26,6 +26,7 @@ declare global {
var expo: {
modules?: {
ExpoGo?: boolean;
+ AnythingLauncherModule?: boolean;
};
};
}
@@ -34,6 +35,12 @@ declare global {
* Detects if the app is running in Expo Go
*/
function isExpoGo(): boolean {
+ if (!__DEV__) {
+ return false;
+ }
+ if (globalThis.expo && globalThis.expo.modules && globalThis.expo.modules.AnythingLauncherModule) {
+ return true;
+ }
if (!!NativeModules.RNPaywalls && !!NativeModules.RNCustomerCenter) {
return false;
}