Use new JVM Resource compiler
Supported in AGP 4.2, compiles raw XML resources to intermediate flat files.
https://developer.android.com/studio/preview/features/#resource-compiler
"""potentially improving build performance, especially on Windows machines."""
Source code (entry point) is here: https://android.googlesource.com/platform/tools/base/+/studio-master-dev/build-system/aaptcompiler/src/main/java/com/android/aaptcompiler/ResourceCompiler.kt#61
Latest maven artifact: com.android.tools.build:aaptcompiler:4.2.0-alpha07
The API takes a File object. Interesting to see if it could be adapted to read resources also directly from zip files (ZipEntry) avoiding need to explode aar files for resource compilation.
How to disble Android JVM resource compiler?
How to disble Android JVM resource compiler?
+1, anyone has any ideas? @LouisMari1991 ?