feat: add Sentry error tracking and Expo Updates

This commit is contained in:
2026-08-08 15:10:12 +02:00
parent 0aa61ab7e8
commit 7ae2711e4b
14 changed files with 898 additions and 7 deletions
+10 -1
View File
@@ -7,6 +7,13 @@ import { DatabaseProvider } from "./src/providers/DatabaseProvider";
import { SettingsProvider } from "./src/providers/WatchProvider";
import { useWatchWorkoutSync } from "./src/features/watch-connectivity/hooks/useWatchWorkoutSync";
import { useSystemLanguageListener } from "./src/i18n";
import * as Sentry from "@sentry/react-native";
Sentry.init({
dsn: "https://6197bcf085d63727d829aa89ede8e973@o4507430203293696.ingest.de.sentry.io/4511875297706064",
tracesSampleRate: 1.0,
environment: __DEV__ ? "development" : "production",
});
function WatchSync() {
useWatchWorkoutSync();
@@ -18,7 +25,7 @@ function SystemLanguageListener() {
return null;
}
export default function App() {
function App() {
return (
<DatabaseProvider>
<SettingsProvider>
@@ -32,3 +39,5 @@ export default function App() {
</DatabaseProvider>
);
}
export default Sentry.wrap(App);