You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(android): move bundle task lookup to afterEvaluate, restore warning
Follow the SAGP pattern (sentry-android-gradle-plugin/util/tasks.kt):
register project.afterEvaluate{} inside onVariants{} so that task lookup
is deferred until after all plugins have registered their tasks.
onVariants fires during project evaluation — before the task container is
complete — so tasks.configureEach registered there could miss late-registered
bundle tasks. afterEvaluate runs after all onVariants callbacks (including the
React Native plugin's) have completed, making tasks.names reliable.
Replaces tasks.configureEach + gradle.taskGraph.whenReady with:
- project.afterEvaluate for timing
- tasks.names.contains() guard with inline warn() for missing tasks
- tasks.named() for a targeted lazy reference (no container iteration)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments