diff --git a/android/app/build.gradle b/android/app/build.gradle index d0bfc47..f3c2080 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -83,7 +83,9 @@ project.ext.react = [ ] apply from: "../../node_modules/react-native/react.gradle" -apply from: "../../node_modules/@sentry/react-native/sentry.gradle" +if (System.getenv("DISABLE_SENTRY_SOURCEMAP_UPLOAD") != "true") { + apply from: "../../node_modules/@sentry/react-native/sentry.gradle" +} /** * Set this to true to create two separate APKs instead of one: