public class ClassNameFilter extends Object
We use this to determine if a class must be placed in our primary dex. It supports prefix, suffix, substring, and exact matches.
Modifier and Type | Method and Description |
---|---|
static ClassNameFilter |
fromConfiguration(Iterable<String> patterns)
Convenience factory to produce a filter from a very simple pattern language.
|
boolean |
matches(String internalClassName) |
public static ClassNameFilter fromConfiguration(Iterable<String> patterns)
patterns are substrings by default, but ^
at the start or end of a pattern anchors
it to the start or end of the class name.
patterns
- Patterns to include in the filter.public boolean matches(String internalClassName)