public class ProguardFiles
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProguardFiles.ProguardFile |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.String> |
KNOWN_FILE_NAMES |
static java.lang.String |
UNKNOWN_FILENAME_MESSAGE |
| Constructor and Description |
|---|
ProguardFiles() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createProguardFile(java.lang.String name,
java.io.File destination) |
static java.io.File |
getDefaultProguardFile(java.lang.String name,
org.gradle.api.Project project)
Creates and returns a new
File with the requested default ProGuard file contents. |
public static final java.util.Set<java.lang.String> KNOWN_FILE_NAMES
public static final java.lang.String UNKNOWN_FILENAME_MESSAGE
public static java.io.File getDefaultProguardFile(@NonNull
java.lang.String name,
@NonNull
org.gradle.api.Project project)
File with the requested default ProGuard file contents.
Note: If the file is already there it just returns it.
There are 2 default rules files
name - the name of the default ProGuard file.project - used to determine the output location.public static void createProguardFile(@NonNull
java.lang.String name,
@NonNull
java.io.File destination)
throws java.io.IOException
java.io.IOException