public class RGeneration
extends java.lang.Object
R.java
files.Modifier and Type | Method and Description |
---|---|
static void |
generateRForLibraries(com.android.builder.symbols.SymbolTable main,
java.util.Collection<com.android.builder.symbols.SymbolTable> libraries,
java.io.File out,
boolean finalIds)
Given a symbol table for the main program (that could be an application, a library or
anything that actually generates symbols), and given the symbol tables for all libraries it
depends on, generates the
R.java files for each individual library. |
public static void generateRForLibraries(@NonNull com.android.builder.symbols.SymbolTable main, @NonNull java.util.Collection<com.android.builder.symbols.SymbolTable> libraries, @NonNull java.io.File out, boolean finalIds)
R.java
files for each individual library.
The R.java
file for the main symbol table is assumed to be generated already.
main
- the main symbol filelibraries
- the libraries to generate symbols toout
- the output directory where files are generated, must exist and be a directoryfinalIds
- should final IDs be generated? This should be false
if and only if
the artifact being generated is a library or other reusable module and not a final apk