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

Address task dependency warning when using APK splits #407

Closed fractalwrench closed 3 years ago

fractalwrench commented 3 years ago

Goal

Addresses a warning about implicit task dependencies that is displayed when using Gradle 7 with APK splits. This is caused by the outputs of tasks that generate mapping files being the same directory for several tasks - the fix has been to alter this so the directory is based on the variant output's name.

This will also need porting to the v5 branch once it has been reviewed.

Testing

Verified the message shows in an example app using AGP 7 with splits, then tested with the local changes and confirmed that the error message is no longer displayed. Otherwise relied on existing test coverage.