Use new AGP variants API
ZacSweers opened this issue · comments
Zac Sweers commented
Currently we use the now-legacy variants access APIs and these will be removed in AGP 8.0
Zac Sweers commented
Some limitations currently, filed issues. Some are possibly resolved with AGP 7.1, others TBD
- Expose
javaCompileProvider
- https://issuetracker.google.com/issues/199411019- Possibly resolved by using
ALL_CLASSES_DIRS
orALL_CLASSES_JARS
, needs testing
- Possibly resolved by using
- Expose
runtimeConfiguration
- https://issuetracker.google.com/issues/199436586- Possible resolvable by just interpolating the known name from the variant name, which is something like
<variant name>AndroidTestRuntimeClasspath
and<variant name>RuntimeClasspath
- Possible resolvable by just interpolating the known name from the variant name, which is something like
- Expose
isMinifyEnabled
- https://issuetracker.google.com/issues/199411018 - Expose
isCodeLibraryDesugaringEnabled
- https://issuetracker.google.com/issues/199411020- Impossible to read from
AppExtension
and use the new APIs as the former requires waiting for anafterEvaluate
block and that's too late to use the new variant APIs
- Impossible to read from