Class JetifierExtension


  • public class JetifierExtension
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean aarOnly
      Enable jetifier to act on aars only
      java.lang.String customConfigFile
      Path to file containing the custom mapping file to be used on jetifier
      static java.lang.String DEFAULT_JETIFIER_VERSION  
      boolean enabled
      Whether to enable jetified support
      java.util.List<java.lang.String> exclude
      Stores the user defined dependencies which are excluded from being jetified.
      java.lang.String version
      Jetifier jar version
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldJetify​(java.lang.String group, java.lang.String name, java.lang.String packaging)
      Check if this dependency, described by the params, should be jetified, that is, run jetifier on it before pre-building it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_JETIFIER_VERSION

        public static final java.lang.String DEFAULT_JETIFIER_VERSION
        See Also:
        Constant Field Values
      • version

        public java.lang.String version
        Jetifier jar version
      • aarOnly

        public boolean aarOnly
        Enable jetifier to act on aars only
      • exclude

        public java.util.List<java.lang.String> exclude
        Stores the user defined dependencies which are excluded from being jetified.
      • customConfigFile

        @Nullable
        public java.lang.String customConfigFile
        Path to file containing the custom mapping file to be used on jetifier
      • enabled

        public boolean enabled
        Whether to enable jetified support
    • Method Detail

      • shouldJetify

        public boolean shouldJetify​(java.lang.String group,
                                    java.lang.String name,
                                    java.lang.String packaging)
        Check if this dependency, described by the params, should be jetified, that is, run jetifier on it before pre-building it.
        Parameters:
        group - - Dependency group
        name - - Dependency name
        packaging - - Packaging type (aar\jar)
        Returns:
        true if shouldJetify, false otherwise