android-cache-fix-gradle-plugin icon indicating copy to clipboard operation
android-cache-fix-gradle-plugin copied to clipboard

Update build dependency with the latest Variant API supported

Open cdsap opened this issue 2 years ago • 3 comments

Once we updated the AGP version in the classpath to 7.3.1, we still need to point to the latest stable version of the AGP. https://github.com/gradle/android-cache-fix-gradle-plugin/blob/main/build.gradle#L26

The new variant API is available in recent versions and it's a pre-requisite to start reworking the workaround variant logic with types provided in the new API. The old variant is going to be removed in AGP 9.

cdsap avatar Feb 18 '23 01:02 cdsap

@cdsap is there anything else we need to do here?

runningcode avatar Nov 02 '23 09:11 runningcode

Can you check if we still have usages of the Variant API?

runningcode avatar Nov 21 '23 16:11 runningcode

Hi, we have still the JdkImageWorkaround with references like:

            android.unitTestVariants.all(configureVariant)
            android.applicationVariants.all(configureVariant)

https://github.com/gradle/android-cache-fix-gradle-plugin/blob/main/src/main/groovy/org/gradle/android/workarounds/JdkImageWorkaround.groovy#L66

cdsap avatar Dec 21 '23 01:12 cdsap

fixed in https://github.com/gradle/android-cache-fix-gradle-plugin/commit/67e5ad689e594f9ff4d8962d6492a2093d183f3f

cdsap avatar Oct 01 '25 21:10 cdsap