getAndroidExtension().getDefaultConfig().getVectorDrawables().getUseSupportLibrary();
public void _initWith(CoreExternalNativeCmakeOptions that) { setArguments(that.getArguments()); setcFlags(that.getcFlags()); setCppFlags(that.getCppFlags()); setAbiFilters(that.getAbiFilters()); setTargets(that.getTargets()); } }
public void _initWith(CoreExternalNativeNdkBuildOptions that) { setArguments(that.getArguments()); setcFlags(that.getcFlags()); setCppFlags(that.getCppFlags()); setAbiFilters(that.getAbiFilters()); setTargets(that.getTargets()); } }
@Override protected void _initWith(@NonNull BaseConfig that) { super._initWith(that); BuildType thatBuildType = (BuildType) that; ndkConfig._initWith(thatBuildType.getNdkConfig()); jackOptions._initWith(thatBuildType.getJackOptions()); javaCompileOptions.getAnnotationProcessorOptions()._initWith( thatBuildType.getJavaCompileOptions().getAnnotationProcessorOptions()); shrinkResources = thatBuildType.isShrinkResources(); shaderOptions._initWith(thatBuildType.getShaders()); externalNativeBuildOptions._initWith(thatBuildType.getExternalNativeBuildOptions()); useProguard = thatBuildType.isUseProguard(); }
public void append(@NonNull CoreJavaCompileOptions javaCompileOptions) { annotationProcessorOptions.classNames( javaCompileOptions.getAnnotationProcessorOptions().getClassNames()); annotationProcessorOptions.arguments( javaCompileOptions.getAnnotationProcessorOptions().getArguments()); if (javaCompileOptions.getAnnotationProcessorOptions().getIncludeCompileClasspath() != null) { annotationProcessorOptions.setIncludeCompileClasspath( javaCompileOptions.getAnnotationProcessorOptions().getIncludeCompileClasspath()); } } }
public void _initWith(CoreAnnotationProcessorOptions aptOptions) { setClassNames(aptOptions.getClassNames()); setArguments(aptOptions.getArguments()); setIncludeCompileClasspath(aptOptions.getIncludeCompileClasspath()); }
@VisibleForTesting BuildType(@NonNull String name, @NonNull Project project, @NonNull Logger logger) { super(name); this.project = project; this.logger = logger; jackOptions = new JackOptions(); javaCompileOptions = new JavaCompileOptions(); shaderOptions = new ShaderOptions(); ndkConfig = new NdkOptions(); externalNativeBuildOptions = new ExternalNativeBuildOptions(); }
public void _initWith(ExternalNativeBuildOptions that) { ndkBuildOptions._initWith(that.getExternalNativeNdkBuildOptions()); cmakeOptions._initWith(that.getExternalNativeCmakeOptions()); }
@Override @SuppressWarnings("RedundantIfStatement") public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof BuildType)) return false; if (!super.equals(o)) return false; BuildType other = (BuildType) o; if (!ndkConfig.equals(other.ndkConfig)) return false; if (!jackOptions.equals(other.jackOptions)) return false; if (!javaCompileOptions.equals(other.javaCompileOptions)) return false; if (shrinkResources != other.isShrinkResources()) return false; return true; }
public int hashCode() { int result = super.hashCode(); result = 31 * result + getJackOptions().hashCode(); result = 31 * result + javaCompileOptions.hashCode(); result = 31 * result + (shrinkResources ? 1 : 0); return result; }
/** * Adds the ids to the set of issues to enable. */ public void enable(String... ids) { for (String id : ids) { enable(id); } }
/** * Adds the ids to the set of issues to enable. */ public void disable(String... ids) { for (String id : ids) { disable(id); } }
/** * Adds a severity override for the given issues. */ public void warning(String... ids) { for (String id : ids) { warning(id); } }
/** * Sets minimum SDK version. * * <p>See <a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html"> * uses-sdk element documentation</a>. */ public void minSdkVersion(int minSdkVersion) { setMinSdkVersion(minSdkVersion); }
/** * Adds the ids to the set of issues to check. */ public void check(String... ids) { for (String id : ids) { check(id); } }
/** * Adds a severity override for the given issues. */ public void fatal(String... ids) { for (String id : ids) { fatal(id); } }
/** * Adds a severity override for the given issues. */ public void ignore(String... ids) { for (String id : ids) { ignore(id); } }
/** * Adds a severity override for the given issues. */ public void informational(String... ids) { for (String id : ids) { informational(id); } }
/** * Adds the ids to the set of issues to enable. */ public void enable(String... ids) { for (String id : ids) { enable(id); } }
/** * Adds the ids to the set of issues to enable. */ public void disable(String... ids) { for (String id : ids) { disable(id); } }