public class DexFileProvider
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DexFileProvider.DexContainer |
Constructor and Description |
---|
DexFileProvider(Singletons.Global g) |
Modifier and Type | Method and Description |
---|---|
java.util.List<DexFileProvider.DexContainer> |
getDexFromSource(java.io.File dexSource)
Returns all dex files found in dex source sorted by the default dex prioritizer
|
java.util.List<DexFileProvider.DexContainer> |
getDexFromSource(java.io.File dexSource,
java.util.Comparator<DexFileProvider.DexContainer> prioritizer)
Returns all dex files found in dex source sorted by the default dex prioritizer
|
DexFileProvider.DexContainer |
getDexFromSource(java.io.File dexSource,
java.lang.String dexName)
Returns the first dex file with the given name found in the given dex source
|
static DexFileProvider |
v() |
public static DexFileProvider v()
public java.util.List<DexFileProvider.DexContainer> getDexFromSource(java.io.File dexSource) throws java.io.IOException
dexSource
- Path to a jar, apk, dex, odex or a directory containing multiple dex filesjava.io.IOException
public java.util.List<DexFileProvider.DexContainer> getDexFromSource(java.io.File dexSource, java.util.Comparator<DexFileProvider.DexContainer> prioritizer) throws java.io.IOException
dexSource
- Path to a jar, apk, dex, odex or a directory containing multiple dex filesprioritizer
- A comparator that defines the ordering of dex files in the result listjava.io.IOException
public DexFileProvider.DexContainer getDexFromSource(java.io.File dexSource, java.lang.String dexName) throws java.io.IOException
dexSource
- Path to a jar, apk, dex, odex or a directory containing multiple dex filesCompilationDeathException
- If no dex file with the given name existsjava.io.IOException