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

Allow the `bugsnagInstallJniLibsTask` to be suppressed #520

Closed lemnik closed 1 year ago

lemnik commented 1 year ago

Goal

Allow the bugsnagInstallJniLibsTask to be suppressed completely for projects that don't need it, and therefore reduce the build overhead and also suppress the "Configuration resolved during configuration time" warnings in Gradle 8.

Design

Unfortunately we cannot currently fix this warning completely, as moving the resolution into the task will break configuration caching. Including this option allows the task to be suppressed completely for projects that include NDK components (and therefore externalNativeBuildProviders) but do not link with the BugSnag NDK headers or .so files.

Testing

Manually tested