Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new Variant API for generated instrumentation filter file #336

Merged
merged 4 commits into from
May 22, 2024

Conversation

mannodermaus
Copy link
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
2 of 3 checks passed
@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