Package com.uber.okbuck.extension
Class JetifierExtension
- java.lang.Object
-
- com.uber.okbuck.extension.JetifierExtension
-
public class JetifierExtension extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanaarOnlyEnable jetifier to act on aars onlyjava.lang.StringcustomConfigFilePath to file containing the custom mapping file to be used on jetifierstatic java.lang.StringDEFAULT_JETIFIER_VERSIONbooleanenabledWhether to enable jetified supportjava.util.List<java.lang.String>excludeStores the user defined dependencies which are excluded from being jetified.java.lang.StringversionJetifier jar version
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldJetify(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.
-
-
-
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 groupname- - Dependency namepackaging- - Packaging type (aar\jar)- Returns:
- true if shouldJetify, false otherwise
-
-