From 51630318690c089472361bc1bb5a7be786d692ca Mon Sep 17 00:00:00 2001 From: tapframe Date: Sun, 16 Nov 2025 19:42:27 +0530 Subject: [PATCH] changes --- .gitignore | 6 ++++++ android/app/build.gradle | 27 ++++++++++++++++++++++++++- android/build.gradle | 1 + android/sentry.properties | 2 +- ios/sentry.properties | 2 +- 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b6b7ec166..f857a6916 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,10 @@ yarn-error.* .env .env*.local +# Sentry +ios/sentry.properties +android/sentry.properties + # typescript *.tsbuildinfo plan.md @@ -79,3 +83,5 @@ server/cache-server carousal.md node_modules expofs.md +ios/sentry.properties +android/sentry.properties diff --git a/android/app/build.gradle b/android/app/build.gradle index 9f1ce04de..0b2e89aad 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: "com.android.application" apply plugin: "org.jetbrains.kotlin.android" apply plugin: "com.facebook.react" +apply plugin: "io.sentry.android.gradle" def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath() @@ -81,7 +82,7 @@ def enableMinifyInReleaseBuilds = (findProperty('android.enableMinifyInReleaseBu */ def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+' -// apply from: new File(["node", "--print", "require('path').dirname(require.resolve('@sentry/react-native/package.json'))"].execute().text.trim(), "sentry.gradle") +apply from: new File(["node", "--print", "require('path').dirname(require.resolve('@sentry/react-native/package.json'))"].execute().text.trim(), "sentry.gradle") android { ndkVersion rootProject.ext.ndkVersion @@ -184,6 +185,30 @@ android { } } +sentry { + // Enables or disables the automatic configuration of Native Symbols + // for Sentry. This executes sentry-cli automatically so + // you don't need to do it manually. + // Default is disabled. + uploadNativeSymbols = true + + // Enables or disables the automatic upload of the app's native source code to Sentry. + // This executes sentry-cli with the --include-sources param automatically so + // you don't need to do it manually. + // This option has an effect only when [uploadNativeSymbols] is enabled. + // Default is disabled. + includeNativeSources = true + + // `@sentry/react-native` ships with compatible `sentry-android` + // This option would install the latest version that ships with the SDK or SAGP (Sentry Android Gradle Plugin) + // which might be incompatible with the React Native SDK + // Enable auto-installation of Sentry components (sentry-android SDK and okhttp, timber and fragment integrations). + // Default is enabled. + autoInstallation { + enabled = false + } +} + dependencies { // @generated begin react-native-google-cast-dependencies - expo prebuild (DO NOT MODIFY) sync-3822a3c86222e7aca74039b551612aab7e75365d implementation "com.google.android.gms:play-services-cast-framework:${safeExtGet('castFrameworkVersion', '+')}" diff --git a/android/build.gradle b/android/build.gradle index b300e4d26..bdec99db0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -16,6 +16,7 @@ buildscript { classpath('com.android.tools.build:gradle') classpath('com.facebook.react:react-native-gradle-plugin') classpath('org.jetbrains.kotlin:kotlin-gradle-plugin') + classpath("io.sentry:sentry-android-gradle-plugin:5.12.2") } } diff --git a/android/sentry.properties b/android/sentry.properties index 5581e03d1..8e2724847 100644 --- a/android/sentry.properties +++ b/android/sentry.properties @@ -1,4 +1,4 @@ defaults.url=https://sentry.io/ defaults.org=tapframe defaults.project=react-native -# Using SENTRY_AUTH_TOKEN environment variable \ No newline at end of file +auth.token=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 \ No newline at end of file diff --git a/ios/sentry.properties b/ios/sentry.properties index 5581e03d1..8e2724847 100644 --- a/ios/sentry.properties +++ b/ios/sentry.properties @@ -1,4 +1,4 @@ defaults.url=https://sentry.io/ defaults.org=tapframe defaults.project=react-native -# Using SENTRY_AUTH_TOKEN environment variable \ No newline at end of file +auth.token=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 \ No newline at end of file