Class ClassNameFilter


  • public class ClassNameFilter
    extends Object
    Filter for internal class names.

    We use this to determine if a class must be placed in our primary dex. It supports prefix, suffix, substring, and exact matches.

    • Method Detail

      • fromConfiguration

        public static ClassNameFilter fromConfiguration​(Iterable<String> patterns)
        Convenience factory to produce a filter from a very simple pattern language.

        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.

        Parameters:
        patterns - Patterns to include in the filter.
        Returns:
        A new filter.
      • matches

        public boolean matches​(String internalClassName)