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

Support AGP 4.2 #350

Closed fractalwrench closed 3 years ago

fractalwrench commented 3 years ago

Goal

Adds support for 4.2 of the Android Gradle Plugin. This changeset alters the plugin to use a new API for manipulating the manifest when the AGP version is high enough. This is necessary as the previous API added in 4.1 was removed entirely. Further details of the API change can be found here

Changeset

Testing

Ran E2E tests on AGP 4.2 on Travis CI.

Altered the PluginExtension unit test to use a mocked version of AGP. This is necessary as AGP 4.2 has started using shared build services which are difficult to setup in a test target.