8000 Migrate to using AGP's new variant API in the 'variant' package. by copybara-service[bot] · Pull Request #2719 · google/dagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Migrate to using AGP's new variant API in the 'variant' package. #2719

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

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

copybara-service[bot]
Copy link
@copybara-service copybara-service bot commented Jun 23, 2021

Migrate to using AGP's new variant API in the 'variant' package.

This change adds compatibility classes to support registering an ASM transform in AGP 4.2, 7.0 and 7.1. For 4.2 reflection has to be used for all invocations of the newer variant API since their package in 4.2 is different and its not possible to reference the classes when compiling against a newer version. For 7.0 an onwards, the API are stable and can be referenced directly.

Fixes #2700

RELNOTES=Fix an incompatibility in the Hilt Gradle Plugin with AGP 7.0-beta04 and 7.1-alpha03, be aware that with this fix the HiltGradlePlugin will not work with other older alpha/beta versions of AGP 7.0 and 7.1 other than the ones mentioned in these notes.

@google-cla google-cla bot added the cla: yes label Jun 23, 2021
8000
@copybara-service copybara-service bot force-pushed the test_380743576 branch 2 times, most recently from 8318a5a to 4fe62ba Compare July 9, 2021 18:14
This change adds compatibility classes to support registering an ASM transform in AGP 4.2, 7.0 and 7.1. For 4.2 reflection has to be used for all invocations of the newer variant API since their package in 4.2 is different and its not possible to reference the classes when compiling against a newer version. For 7.0 an onwards, the API are stable and can be referenced directly.

Fixes #2700

RELNOTES=Fix an incompatibility in the Hilt Gradle Plugin with AGP 7.0-beta04 and 7.1-alpha03, be aware that with this fix the HiltGradlePlugin will not work with other older alpha/beta versions of AGP 7.0 and 7.1 other than the ones mentioned in these notes.
PiperOrigin-RevId: 383895392
@copybara-service copybara-service bot merged commit be2f89a into master Jul 9, 2021
@copybara-service copybara-service bot deleted the test_380743576 branch July 9, 2021 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hilt plugin crash with android gradle plugin 7 beta04
1 participant
0