com.android.multidex
Class ClassReferenceListBuilder
java.lang.Object
com.android.multidex.ClassReferenceListBuilder
public class ClassReferenceListBuilder
- extends Object
This is a command line tool used by mainDexClasses script to find direct class references to
other classes. First argument of the command line is an archive, each class file contained in
this archive is used to identify a class whose references are to be searched, those class files
are not opened by this tool only their names matter. Other arguments must be zip files or
directories, they constitute in a classpath in with the classes named by the first argument
will be searched. Each searched class must be found. On each of this classes are searched for
their dependencies to other classes. Finally the tools prints on standard output a list of class
files names suitable as content of the file argument --main-dex-list of dx.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassReferenceListBuilder
public ClassReferenceListBuilder(String inputPath)
throws IOException
- Parameters:
inputPath - list of path to input jars or folders. Path elements must be separated by
the system path separator: ':' on Unix, ';' on Windows.
- Throws:
IOException
main
public static void main(String[] args)
addRoots
public void addRoots(ZipFile jarOfRoots)
throws IOException
- Parameters:
jarOfRoots - Archive containing the class files resulting of the tracing, typically
this is the result of running ProGuard.
- Throws:
IOException
getMainDexList
public Set<String> getMainDexList()
- Returns a list of classes to keep. This can be passed to dx as a file with --main-dex-list.
Copyright © 2015. All rights reserved.