Skip to content

Commit

Permalink
sentry ⚡ (llm): bump sentry sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasWerey committed Jan 16, 2025
1 parent a15ee92 commit 69713cb
Show file tree
Hide file tree
Showing 15 changed files with 300 additions and 285 deletions.
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.android.nightly
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
APP_NAME="LL [STAGING]"
ANALYTICS_TOKEN=Yc026bN2XbyBhTCPDFY0VibJugAKnjmh
SENTRY_DSN=https://[email protected]/6549924
SENTRY_DISABLE_AUTO_UPLOAD=true
BRAZE_ANDROID_API_KEY="4ef07be0-a4ea-4f73-81a9-760e473959f3"
BRAZE_IOS_API_KEY="4d6c9f5b-823e-4ea0-8158-5359bdf89618"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.android.prerelease
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://[email protected]/6723478
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
BRAZE_ANDROID_API_KEY="b34d1245-04d6-4209-9580-eed4ec82cf17"
BRAZE_IOS_API_KEY="93d6248d-f2e9-4255-84bc-6b551b7afcd2"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.android.release
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://[email protected]/6505213
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
BRAZE_ANDROID_API_KEY="b34d1245-04d6-4209-9580-eed4ec82cf17"
BRAZE_IOS_API_KEY="93d6248d-f2e9-4255-84bc-6b551b7afcd2"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.android.staging
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
APP_NAME="LL [STAGING]"
SENTRY_DSN=https://[email protected]/6619343
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=Yc026bN2XbyBhTCPDFY0VibJugAKnjmh
BRAZE_ANDROID_API_KEY="4ef07be0-a4ea-4f73-81a9-760e473959f3"
BRAZE_IOS_API_KEY="4d6c9f5b-823e-4ea0-8158-5359bdf89618"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.ios.nightly
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
APP_NAME="LL [STAGING]"
ANALYTICS_TOKEN=Yc026bN2XbyBhTCPDFY0VibJugAKnjmh
SENTRY_DISABLE_AUTO_UPLOAD=true
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
SENTRY_DSN=https://[email protected]/6549925
BRAZE_ANDROID_API_KEY="4ef07be0-a4ea-4f73-81a9-760e473959f3"
BRAZE_IOS_API_KEY="4d6c9f5b-823e-4ea0-8158-5359bdf89618"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.ios.prerelease
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://[email protected]/6723477
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
BRAZE_ANDROID_API_KEY="b34d1245-04d6-4209-9580-eed4ec82cf17"
BRAZE_IOS_API_KEY="93d6248d-f2e9-4255-84bc-6b551b7afcd2"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.ios.release
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://[email protected]/6505205
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
BRAZE_ANDROID_API_KEY="b34d1245-04d6-4209-9580-eed4ec82cf17"
BRAZE_IOS_API_KEY="93d6248d-f2e9-4255-84bc-6b551b7afcd2"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.ios.staging
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
APP_NAME="LL [STAGING]"
SENTRY_DSN=https://[email protected]/6619346
SENTRY_DISABLE_AUTO_UPLOAD=true
ANALYTICS_TOKEN=Yc026bN2XbyBhTCPDFY0VibJugAKnjmh
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Staging"
BRAZE_ANDROID_API_KEY="4ef07be0-a4ea-4f73-81a9-760e473959f3"
BRAZE_IOS_API_KEY="4d6c9f5b-823e-4ea0-8158-5359bdf89618"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("io.sentry:sentry-android-gradle-plugin:4.14.1")
classpath("com.android.tools.build:gradle:7.4.1")
classpath("com.facebook.react:react-native-gradle-plugin")
// NOTE: Do not place your application dependencies here; they belong
Expand Down Expand Up @@ -70,4 +71,4 @@ allprojects {
force "androidx.core:core-ktx:$rootProject.ext.androidXCore"
}
}
}
}
28 changes: 23 additions & 5 deletions apps/ledger-live-mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1983,11 +1983,29 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- RNSentry (5.24.3):
- RNSentry (6.5.0):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-hermes
- Sentry/HybridSDK (= 8.36.0)
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-rendererdebug
- React-utils
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Sentry/HybridSDK (= 8.43.0)
- Yoga
- RNShare (10.1.0):
- React-Core
- RNSVG (13.14.0):
Expand Down Expand Up @@ -2022,7 +2040,7 @@ PODS:
- segment-analytics-react-native (2.19.1):
- React-Core
- sovran-react-native
- Sentry/HybridSDK (8.36.0)
- Sentry/HybridSDK (8.43.0)
- SocketRocket (0.7.0)
- sovran-react-native (0.4.5):
- React-Core
Expand Down Expand Up @@ -2576,14 +2594,14 @@ SPEC CHECKSUMS:
RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
RNReanimated: 82b558efb00a30a3b8ea1a3ca8975125e9400313
RNScreens: 63500b789c1b5286972a55d4a7d73fc1123f51e4
RNSentry: e7e5d059d62d6c447d83e14800edc1812a594a5d
RNSentry: e1a16a23ada7d12686dff2f1eeaf55a08738585c
RNShare: b674d9f1cb0dc11116983bebd8712908a226a3ee
RNSVG: d00c8f91c3cbf6d476451313a18f04d220d4f396
RNVectorIcons: 6382277afab3c54658e9d555ee0faa7a37827136
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
segment-analytics-react-native: 1c36d83c0a735795e304178241331e7701dc5d2a
Sentry: f8374b5415bc38dfb5645941b3ae31230fbeae57
Sentry: 532b281a53b1b45a523fd592f608956fb36e577c
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
sovran-react-native: fd3dc8f1a4b14acdc4ad25fc6b4ac4f52a2a2a15
Storyly: 310297bcf4493d3d5b41e71834fba49502c8067a
Expand Down
4 changes: 2 additions & 2 deletions apps/ledger-live-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"@reduxjs/toolkit": "2.0.1",
"@segment/analytics-react-native": "2.19.1",
"@segment/sovran-react-native": "0.4.5",
"@sentry/react-native": "5.24.3",
"@sentry/react-native": "6.5.0",
"@shopify/flash-list": "1.6.4",
"@shopify/react-native-performance": "4.1.2",
"@shopify/react-native-performance-navigation": "3.0.0",
Expand Down Expand Up @@ -245,7 +245,7 @@
"@react-native-community/cli-platform-ios": "14.1.0",
"@react-native/babel-preset": "0.75.4",
"@react-native/dev-middleware": "0.75.4",
"@sentry/cli": "2.34.1",
"@sentry/cli": "2.40.0",
"@swc/core": "1.4.11",
"@swc/jest": "0.2.36",
"@testing-library/jest-native": "5.4.3",
Expand Down
5 changes: 2 additions & 3 deletions apps/ledger-live-mobile/src/navigation/DeeplinksProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { useFeature } from "@ledgerhq/live-common/featureFlags/index";
import { BUY_SELL_UI_APP_ID } from "@ledgerhq/live-common/wallet-api/constants";
import Braze from "@braze/react-native-sdk";
import { LiveAppManifest } from "@ledgerhq/live-common/platform/types";
import * as Sentry from "@sentry/react-native";
import { hasCompletedOnboardingSelector } from "~/reducers/settings";
import { navigationRef, isReadyRef } from "../rootnavigation";
import { ScreenName, NavigatorName } from "~/const";
Expand All @@ -27,7 +26,7 @@ import { track } from "~/analytics";
import { setEarnInfoModal } from "~/actions/earn";
import { blockPasswordLock } from "../actions/appstate";
import { useStorylyContext } from "~/components/StorylyStories/StorylyProvider";
const routingInstrumentation = new Sentry.ReactNavigationInstrumentation();
import { navigationIntegration } from "../sentry";
const TRACKING_EVENT = "deeplink_clicked";

const themes: {
Expand Down Expand Up @@ -674,7 +673,7 @@ export const DeeplinksProvider = ({
onReady={() => {
(isReadyRef as Writeable<typeof isReadyRef>).current = true;
setTimeout(() => SplashScreen.hide(), 300);
routingInstrumentation.registerNavigationContainer(navigationRef);
navigationIntegration.registerNavigationContainer(navigationRef);
}}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ const Crashes = (_: Props) => {
containerStyle={styles.buttonStyle}
/>

<Button
event="DebugSentryTest"
type="primary"
title="Send Sentry Fatal Error"
onPress={() => Sentry.captureMessage("Debug Fatal error", { level: "fatal" })}
containerStyle={styles.buttonStyle}
/>

{renderCrash && <CrashingComponent />}
{renderErrorModal && <CrashingComponent handled />}
</View>
Expand Down
Loading

0 comments on commit 69713cb

Please sign in to comment.