Fixed
Status Update
Comments
ch...@google.com <ch...@google.com>
je...@google.com <je...@google.com>
am...@google.com <am...@google.com> #2
Okay. I tried a bunch of agp+android studio versions
The last working version was classpath("com.android.tools.build:gradle:7.4.0-alpha06")
once I moved to
classpath("com.android.tools.build:gradle:7.4.0-alpha07")
then things start breaking on firebase app dist.
Description
DESCRIBE THE ISSUE IN DETAIL:
Im using a custom AsmClassVisitorFactory in order to transform local class files and dependencies. However it does not invoke a transformation on self-resolving dependencies such as JARs and AAR files that I add to the build like:
Please take a look at the attached project where I have added a JAR and an AAR file to the build. In the buildSrc you will find an ExamplePlugin that uses the Instrumentation API and just prints the name of each class that is about to be transformed.
I also print inputs and outputs of each task. You will notice that the transformation is applied to project classes, dependencies but not the included JAR and AAR file.
STEPS TO REPRODUCE:
Also attached is the Gradle log
If that's intended behavior, we would like to understand why these artifacts are excluded.
Studio Build: 2021.3.1 Patch 1 Version of Gradle Plugin: 7.3.1 Version of Gradle: 7.4 Version of Java: 11 OS: Windows 11