rules_android icon indicating copy to clipboard operation
rules_android copied to clipboard

Use new JVM Resource compiler

Open jongerrish opened this issue 5 years ago • 2 comments

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.

jongerrish avatar Aug 14 '20 14:08 jongerrish

How to disble Android JVM resource compiler?

LouisMari1991 avatar May 27 '21 08:05 LouisMari1991

How to disble Android JVM resource compiler?

+1, anyone has any ideas? @LouisMari1991 ?

omkar-tenkale avatar Sep 01 '24 09:09 omkar-tenkale