Skip to content

Commit

Permalink
Merge pull request #1279 from ephemeraHQ/ar/merge-feature-v3-split
Browse files Browse the repository at this point in the history
feat: Merge V3 Branch to Release 3.0.0
  • Loading branch information
alexrisch authored Dec 2, 2024
2 parents d65799d + 546a439 commit 1bb2e86
Show file tree
Hide file tree
Showing 391 changed files with 15,786 additions and 17,002 deletions.
24 changes: 1 addition & 23 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "expo-dev-client";
import "reflect-metadata";
import "./polyfills";

import { configure as configureCoinbase } from "@coinbase/wallet-mobile-sdk";
Expand Down Expand Up @@ -30,19 +29,13 @@ import { Provider as PaperProvider } from "react-native-paper";
import { ThirdwebProvider } from "thirdweb/react";

import { Snackbars } from "@components/Snackbar/Snackbars";
import { xmtpCron, xmtpEngine } from "./components/XmtpEngine";
import { xmtpEngine } from "./components/XmtpEngine";
import config from "./config";
import {
TEMPORARY_ACCOUNT_NAME,
useAccountsStore,
} from "./data/store/accountsStore";
import { useAppStore } from "./data/store/appStore";
import { setAuthStatus } from "./data/store/authStore";
import { useSelect } from "./data/store/storeHelpers";
import {
runAsyncUpdates,
updateLastVersionOpen,
} from "./data/updates/asyncUpdates";
import Main from "./screens/Main";
import { registerBackgroundFetchTask } from "./utils/background";
import { privySecureStorage } from "./utils/keychain/helpers";
Expand All @@ -67,7 +60,6 @@ initSentry();
const coinbaseUrl = new URL(`https://${config.websiteDomain}/coinbase`);

xmtpEngine.start();
xmtpCron.start();

const App = () => {
const styles = useStyles();
Expand All @@ -93,20 +85,6 @@ const App = () => {
};
}, [showDebugMenu]);

const { isInternetReachable, hydrationDone } = useAppStore(
useSelect(["isInternetReachable", "hydrationDone"])
);

useEffect(updateLastVersionOpen, []);

useEffect(() => {
if (isInternetReachable && hydrationDone) {
runAsyncUpdates().catch((e) => {
logger.error(e);
});
}
}, [isInternetReachable, hydrationDone]);

// For now we use persit with zustand to get the accounts when the app launch so here is okay to see if we're logged in or not
useEffect(() => {
const currentAccount = useAccountsStore.getState().currentAccount;
Expand Down
17 changes: 17 additions & 0 deletions __mocks__/@sentry/react-native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const init = jest.fn();
const captureException = jest.fn();
const captureMessage = jest.fn();
const addBreadcrumb = jest.fn();
const withScope = jest.fn();

const MockedSentry = {
init,
captureException,
captureMessage,
addBreadcrumb,
withScope,
};

export { init, captureException, captureMessage, addBreadcrumb, withScope };

export default MockedSentry;
3 changes: 1 addition & 2 deletions components/AccountSettingsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
useColorScheme,
} from "react-native";

import { refreshProfileForAddress } from "../data/helpers/profiles/profilesUpdate";
import {
useAccountsStore,
useErroredAccountsMap,
Expand Down Expand Up @@ -64,7 +63,7 @@ export default function AccountSettingsButton({ account }: Props) {
const methods = {
[translate("your_profile_page")]: async () => {
if (account) {
refreshProfileForAddress(account, account);
// refreshProfileForAddress(account, account);
setCurrentAccount(account, false);
router.navigate("Chats");
navigate("Profile", {
Expand Down
Loading

0 comments on commit 1bb2e86

Please sign in to comment.