# ConfigurableFiles

# ConfigurableFiles

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/ConfigurableFiles.kt+class:com.android.build.api.dsl.ConfigurableFiles)  
Added in 8.2.0  

<br />

```
@Incubating
interface ConfigurableFiles
```

<br />

Known direct subclasses  
[ConsumerKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/ConsumerKeepRules),[LibraryKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/LibraryKeepRules),[PrivacySandboxKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/PrivacySandboxKeepRules)  

|--------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ConsumerKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/ConsumerKeepRules)             |   |
| [LibraryKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/LibraryKeepRules)               |   |
| [PrivacySandboxKeepRules](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/PrivacySandboxKeepRules) |   |

*** ** * ** ***

A container for a collection of files that has the capability to add a single existing file or a group of existing files to the collection

## Summary

|                             ### Public functions                             |
|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [file](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/ConfigurableFiles#file(kotlin.Any))`(file: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)`             |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [files](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/ConfigurableFiles#files(kotlin.Array))`(vararg files: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)` |

|                                                                                        ### Public properties                                                                                        |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`<`[File](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html)`>` | [files](https://developer.android.com/reference/tools/gradle-api/8.12/com/android/build/api/dsl/ConfigurableFiles#files()) |

## Public functions

### file

Added in 8.2.0  

```
@Incubating
fun file(file: Any): Unit
```  

### files

Added in 8.2.0  

```
@Incubating
fun files(vararg files: Any): Unit
```  

## Public properties

### files

Added in 8.2.0  

```
val files: MutableList<File>
```