Package com.android.builder.multidex
Class D8MainDexList
java.lang.Object
com.android.builder.multidex.D8MainDexList
This is a utility class that is using D8 to get the main dex list.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongenerate(List<String> mainDexRules, List<Path> mainDexRulesFiles, Collection<Path> programFiles, Collection<Path> libraryFiles, com.android.ide.common.blame.MessageReceiver messageReceiver) Returns the list of classes that should be kept in the main dex file for legacy multidex.
-
Method Details
-
generate
@NonNull public static List<String> generate(@NonNull List<String> mainDexRules, @NonNull List<Path> mainDexRulesFiles, @NonNull Collection<Path> programFiles, @NonNull Collection<Path> libraryFiles, @NonNull com.android.ide.common.blame.MessageReceiver messageReceiver) throws D8MainDexList.MainDexListException Returns the list of classes that should be kept in the main dex file for legacy multidex.- Parameters:
mainDexRules- Proguard rules written as stringsmainDexRulesFiles- files containing the Proguard rulesprogramFiles- dex files that will end up in the final binarylibraryFiles- classes that are used only to resolve types in the program classes, but are not packaged in the final binary e.g. android.jar, provided classes etc.- Returns:
- a list of classes to be kept in the main dex file
- Throws:
D8MainDexList.MainDexListException
-