From 75ee959ad458425546cd59ff1281bb30d1941a70 Mon Sep 17 00:00:00 2001 From: Caio Rodrigues Date: Tue, 27 Aug 2019 01:02:58 -0300 Subject: [PATCH] Cleaning up source map after upload (#642) * Fixed source map file not being deleted * Deleting source map source from react native default dir --- sentry.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sentry.gradle b/sentry.gradle index 3a742ce78f..4c505f98c9 100644 --- a/sentry.gradle +++ b/sentry.gradle @@ -118,6 +118,7 @@ gradle.projectsEvaluated { group = 'sentry.io' delete sourcemapOutput + delete "$buildDir/intermediates/assets/release/index.android.bundle.map" // react native default bundle dir } // dependsOn, mustRunAfter, shouldRunAfter, doFirst, doLast, finalizedBy @@ -126,7 +127,7 @@ gradle.projectsEvaluated { // register clean task extension cliCleanUpTask.onlyIf { shouldCleanUp } - project.tasks.clean.dependsOn cliCleanUpTask + cliTask.finalizedBy cliCleanUpTask } }