Skip to content

Use new Variant API for generated instrumentation filter file#336

Merged
mannodermaus merged 4 commits into
mainfrom
feature/new-instrumentation-test-variant-api
May 22, 2024
Merged

Use new Variant API for generated instrumentation filter file#336
mannodermaus merged 4 commits into
mainfrom
feature/new-instrumentation-test-variant-api

Conversation

@mannodermaus

Copy link
Copy Markdown
Owner

We have been relying on the older Variant API for many years because of the minimum AGP requirement that didn't allow all versions to use the new Variant API. This has always been an okay compromise, but it seems like the latest versions of AGP and Gradle are more strict about implicit task dependencies and raise a fuss about it (see #334).

Since the upcoming version of the plugin raises the minimum AGP version to 8.0 anyway, we are finally free to make use of androidComponents.onVariants for the instrumentation filters file.

@mannodermaus mannodermaus self-assigned this May 22, 2024
Base automatically changed from experiment/improve-test-discovery to main May 22, 2024 14:17
…ew Variant API

Since the minimum AGP version bump, we can finally safely access the
source directories across all supported versions
@mannodermaus mannodermaus force-pushed the feature/new-instrumentation-test-variant-api branch from 7524f11 to 6dec09e Compare May 22, 2024 14:18
@mannodermaus mannodermaus merged commit 81280fd into main May 22, 2024
@mannodermaus mannodermaus deleted the feature/new-instrumentation-test-variant-api branch May 22, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant