public class BuildHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANDROID_MANIFEST_FILE_NAME
The name for the AndroidManifest.xml files.
|
static java.lang.String |
PROGUARD_RULES_FILE_NAME
The name for the proguard-rules.pro files.
|
| Constructor and Description |
|---|
BuildHelper(org.gradle.api.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.io.File> |
collectFilesRecursively(java.util.Set<java.io.File> fileSet)
Collects files recursively from a given set of File input.
|
static com.android.builder.model.ClassField |
createBuildConfigStringClassField(java.lang.String key,
java.lang.String value)
Deprecated.
as of version 0.0.5, as com.android.tools:gradle have issues with adding
programmatically buildconfig values, please use
createResValueStringClassField(String, String). |
static com.android.builder.model.ClassField |
createResValueStringClassField(java.lang.String key,
java.lang.String value)
Creates a
ClassField with String type that could be inserted into the resource
values. |
java.util.List<java.io.File> |
getManifestPaths(com.android.build.gradle.api.BaseVariantOutput output)
Gets the path for the compiled AndroidManifest.xml files.
|
java.io.File |
getMappingFiletPath(com.android.build.gradle.api.BaseVariant variant)
Gets the path for the mapping file of the given variant.
|
public static final java.lang.String ANDROID_MANIFEST_FILE_NAME
public static final java.lang.String PROGUARD_RULES_FILE_NAME
@NonNull
@Deprecated
public static com.android.builder.model.ClassField createBuildConfigStringClassField(@NonNull
java.lang.String key,
@NonNull
java.lang.String value)
createResValueStringClassField(String, String).ClassField with String type that could be inserted into a BuildConfig.key - the key of the String.value - the value of the String.@NonNull
public static com.android.builder.model.ClassField createResValueStringClassField(@NonNull
java.lang.String key,
@NonNull
java.lang.String value)
ClassField with String type that could be inserted into the resource
values.key - the key of the String.value - the value of the String.@NonNull
public java.util.List<java.io.File> getManifestPaths(@NonNull
com.android.build.gradle.api.BaseVariantOutput output)
output - the build variant output.@Nullable
public java.io.File getMappingFiletPath(@NonNull
com.android.build.gradle.api.BaseVariant variant)
variant - the build variant.@NonNull
public java.util.List<java.io.File> collectFilesRecursively(@NonNull
java.util.Set<java.io.File> fileSet)
fileSet - the given Set of Files.