Skip to content

Commit 24f3f78

Browse files
RyanCommitsantonis
andauthored
Add warn if releaseVariants is not populated
Co-authored-by: Antonis Lilis <antonis.lilis@gmail.com>
1 parent 4272792 commit 24f3f78

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/core/sentry.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ plugins.withId('com.android.application') {
9292
// By the time afterEvaluate runs, all plugins have registered their onVariants
9393
// callbacks and the AGP Artifacts API transform chain is fully established.
9494
project.afterEvaluate {
95+
if (releaseVariants.isEmpty()) {
96+
project.logger.warn("[sentry] No release variants collected, onVariants may have run after afterEvaluate. Sourcemap upload tasks will not be registered.")
97+
}
9598
releaseVariants.each { variantData ->
9699
// separately we then hook into the bundle task of react native to inject
97100
// sourcemap generation parameters. In case for whatever reason no release

0 commit comments

Comments
 (0)