public class RGeneration
extends java.lang.Object
R.java files.| Modifier and Type | Method and Description |
|---|---|
static java.util.List<com.android.ide.common.symbols.SymbolTable> |
generateAllSymbolTablesToWrite(com.android.ide.common.symbols.SymbolTable main,
java.util.Collection<com.android.ide.common.symbols.SymbolTable> dependencies)
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. |
static void |
generateRForLibraries(com.android.ide.common.symbols.SymbolTable main,
java.util.Collection<com.android.ide.common.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.ide.common.symbols.SymbolTable main,
@NonNull
java.util.Collection<com.android.ide.common.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 apkpublic static java.util.List<com.android.ide.common.symbols.SymbolTable> generateAllSymbolTablesToWrite(@NonNull
com.android.ide.common.symbols.SymbolTable main,
@NonNull
java.util.Collection<com.android.ide.common.symbols.SymbolTable> dependencies)
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 filedependencies - the symbol tables from the dependencies