Update build dependency with the latest Variant API supported
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 is there anything else we need to do here?
Can you check if we still have usages of the Variant API?
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
fixed in https://github.com/gradle/android-cache-fix-gradle-plugin/commit/67e5ad689e594f9ff4d8962d6492a2093d183f3f