Skip to content

Commit

Permalink
Cleaning up source map after upload (#642)
Browse files Browse the repository at this point in the history
* Fixed source map file not being deleted

* Deleting source map source from react native default dir
  • Loading branch information
ckrodrigues authored and HazAT committed Aug 27, 2019
1 parent cc98798 commit 75ee959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sentry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -126,7 +127,7 @@ gradle.projectsEvaluated {

// register clean task extension
cliCleanUpTask.onlyIf { shouldCleanUp }
project.tasks.clean.dependsOn cliCleanUpTask
cliTask.finalizedBy cliCleanUpTask
}
}

Expand Down

0 comments on commit 75ee959

Please sign in to comment.