From 173b27aed8aac00be299e8faf537aca1a7100ebd Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 27 Sep 2022 11:07:01 -0700 Subject: [PATCH 1/2] Test web-sync static-server port --- .../components/web-app-account-sync/WebAppAccountSync.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx b/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx index 463859049c..fe90122c60 100644 --- a/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx +++ b/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx @@ -10,7 +10,7 @@ import { useAsync } from 'react-use' import { ENTROPY_KEY } from 'app/store/account/sagas' -const OLD_WEB_APP_STATIC_SERVER_PORT = Config.OLD_WEB_APP_STATIC_SERVER_PORT +// const OLD_WEB_APP_STATIC_SERVER_PORT = Config.OLD_WEB_APP_STATIC_SERVER_PORT const injected = ` (function() { @@ -35,7 +35,8 @@ export const WebAppAccountSync = (props: WebAppAccountSyncProps) => { const { setIsReadyToSetupBackend } = props const { value: uri, error } = useAsync(async () => { - const server = new StaticServer(OLD_WEB_APP_STATIC_SERVER_PORT, { + // Hardcoding port here to test bonce app loading issue + const server = new StaticServer(3101, { localOnly: true, keepAlive: true }) From 388d3c0bddb477da495c2f0ec4c9a3617c461e2a Mon Sep 17 00:00:00 2001 From: Dylan Jeffers Date: Tue, 27 Sep 2022 11:43:15 -0700 Subject: [PATCH 2/2] Remove things --- .../src/components/web-app-account-sync/WebAppAccountSync.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx b/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx index fe90122c60..aea3d41b3b 100644 --- a/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx +++ b/packages/mobile/src/components/web-app-account-sync/WebAppAccountSync.tsx @@ -2,7 +2,6 @@ import { getErrorMessage } from '@audius/common' import AsyncStorage from '@react-native-async-storage/async-storage' import type { NativeSyntheticEvent } from 'react-native' import { View } from 'react-native' -import Config from 'react-native-config' import StaticServer from 'react-native-static-server' import { WebView } from 'react-native-webview' import type { WebViewMessage } from 'react-native-webview/lib/WebViewTypes' @@ -10,8 +9,6 @@ import { useAsync } from 'react-use' import { ENTROPY_KEY } from 'app/store/account/sagas' -// const OLD_WEB_APP_STATIC_SERVER_PORT = Config.OLD_WEB_APP_STATIC_SERVER_PORT - const injected = ` (function() { const entropy = window.localStorage.getItem('${ENTROPY_KEY}')