bugsnag / bugsnag-android-gradle-plugin

Gradle plugin for BugSnag which uploads ProGuard, DexGuard and NDK mapping files, and sends build notifications
https://docs.bugsnag.com/build-integrations/gradle/
MIT License
70 stars 38 forks source link

Fix "Task not found" failures when using DexGuard #452

Closed lemnik closed 2 years ago

lemnik commented 2 years ago

Goal

Fix #444 where builds with custom variants and DexGuard could fail with a "Task not found" error where limited build flavours where configured for DexGuard.

Design

Check for variant level DexGuard configurations and if they exist: check each variant is configured in DexGuard before attempting to create an upload task for that variant.

Testing

Manually tested with a known failing project.