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
Extracted logic for registering manifest manipulation task into ManifestUuidTaskV2Compat
Setup the plugin to compile groovy before kotlin, so that the plugin can call into Groovy compatibility shims whenever AGP breaks its API
Updated BAGP to compile against AGP 4.2, and used the new androidComponents.onVariants API when it is available
Projects using AGP 4.1 now call into the Groovy compatibility shim which can access the obsolete API
Cherry picked a commit that temporarily disables failing NDK E2E tests due to a Travis CI environment change
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.
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
ManifestUuidTaskV2Compat
androidComponents.onVariants
API when it is availableTesting
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.