Skip to content

Commit

Permalink
Remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
bndkt committed Dec 15, 2023
1 parent 325db3b commit dfdb169
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 36 deletions.
27 changes: 0 additions & 27 deletions apps/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ const scheme =
process.env.EXPO_PUBLIC_APP_VARIANT === "production"
? "sharemystack"
: "sharemystack-dev";
const sentryProject =
process.env.EXPO_PUBLIC_APP_VARIANT === "production"
? "sharemystack"
: "sharemystack-dev";

const config: ExpoConfig = {
name,
Expand Down Expand Up @@ -89,24 +85,13 @@ const config: ExpoConfig = {
},
},
plugins: [
"sentry-expo",
[
"expo-router",
{
origin: "https://sharemystack.com",
// asyncRoutes: "development",
},
],
"expo-apple-authentication",
/* [
"onesignal-expo-plugin",
{
mode:
process.env.EXPO_PUBLIC_APP_VARIANT === "production"
? "production"
: "development",
},
], */
[
"expo-build-properties",
{
Expand All @@ -130,18 +115,6 @@ const config: ExpoConfig = {
},
],
],
hooks: {
postPublish: [
/* {
file: "sentry-expo/upload-sourcemaps",
config: {
organization: "feldapp",
project: sentryProject,
setCommits: true,
},
}, */
],
},
runtimeVersion: {
policy: "sdkVersion",
},
Expand Down
2 changes: 0 additions & 2 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@nozbe/watermelondb": "0.27.1",
"@react-navigation/material-top-tabs": "6.6.5",
"@sanity/client": "6.10.0",
"@sentry/react-native": "5.5.0",
"@shopify/flash-list": "1.6.3",
"@supabase/supabase-js": "2.39.0",
"@tamagui/animations-react-native": "1.79.12",
Expand Down Expand Up @@ -67,7 +66,6 @@
"react-native-url-polyfill": "2.0.0",
"react-native-view-shot": "3.8.0",
"react-native-web": "0.19.9",
"sentry-expo": "~7.0.0",
"tamagui": "1.79.12",
"vexo-analytics": "1.3.12"
},
Expand Down
2 changes: 0 additions & 2 deletions apps/app/src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import { AppState, useColorScheme } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";

import "@/lib/sentry";
import "@/lib/vexo";
// import "@/lib/onesignal";
import { config } from "@/lib/config";
import { database } from "@/lib/watermelon";
import { AuthProvider } from "@/providers/AuthProvider";
Expand Down
6 changes: 3 additions & 3 deletions apps/app/src/hooks/useAnalytics.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { usePostHog } from "posthog-react-native";
// import { OneSignal } from "react-native-onesignal";
import * as Sentry from "sentry-expo";
// import * as Sentry from "sentry-expo";
import { identifyDevice } from "vexo-analytics";

export function useAnalytics() {
Expand All @@ -11,12 +11,12 @@ export function useAnalytics() {
// email && OneSignal.User.addEmail(email);
id && identifyDevice(id);
id && postHog?.identify(id, { email });
Sentry.Native.setUser({ id, email });
// Sentry.Native.setUser({ id, email });
}

function logout() {
// OneSignal.logout();
Sentry.Native.setUser(null);
// Sentry.Native.setUser(null);
}

function capture(event: string, properties?: Record<string, any>) {
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export const config = {
domain: "https://sharemystack.com",
feedbackLink: "https://sharemystack.canny.io/",
postHogApiKey: process.env.EXPO_PUBLIC_POSTHOG_API_KEY,
oneSignalAppId: process.env.EXPO_PUBLIC_ONESIGNAL_APP_ID as string,
sentryDsn: process.env.EXPO_PUBLIC_SENTRY_DSN as string,
// oneSignalAppId: process.env.EXPO_PUBLIC_ONESIGNAL_APP_ID as string,
// sentryDsn: process.env.EXPO_PUBLIC_SENTRY_DSN as string,
vexoApiKey: process.env.EXPO_PUBLIC_VEXO_API_KEY as string,
supabaseUrl: process.env.EXPO_PUBLIC_SUPABASE_URL as string,
supabaseAnonKey: process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY as string,
Expand Down

0 comments on commit dfdb169

Please sign in to comment.