程序包 proguard.io.util

类 ClassPathUtil


  • public final class ClassPathUtil
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static StringMatcher determineCompressionMethod​(ClassPath classPath)
      Loop through all the input zip entries in ClassPath to determine the compression methods.
      static boolean hasAabInput​(ClassPath classPath)
      Returns whether the class path contains any input app bundles.
      static boolean isAndroid​(ClassPath classPath)
      Returns whether the class path contains android target formats.
      static boolean isDalvik​(ClassPath classPath)
      Returns whether the class path contains dalvik target formats.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • hasAabInput

        public static boolean hasAabInput​(ClassPath classPath)
        Returns whether the class path contains any input app bundles.
      • isAndroid

        public static boolean isAndroid​(ClassPath classPath)
        Returns whether the class path contains android target formats.
      • isDalvik

        public static boolean isDalvik​(ClassPath classPath)
        Returns whether the class path contains dalvik target formats.
      • determineCompressionMethod

        public static StringMatcher determineCompressionMethod​(ClassPath classPath)
        Loop through all the input zip entries in ClassPath to determine the compression methods. For dex files, if one entry is uncompressed, a regex is added to match all dex files. That allows to keep a consistent compression method regardless of the number of dex files after processing (edge case if we add classes and a new dex file is needed).
        参数:
        classPath - the entry to scan.