From 24b25d9f4f3801575ce0633470a8cb07621146a8 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Thu, 27 Apr 2023 15:31:18 +0200 Subject: [PATCH] chore: conditionally disable sentry on GitHub actions --- android/app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: