# BuiltArtifact

# BuiltArtifact

<br />

```
interface BuiltArtifact : VariantOutputConfiguration
```

<br />

*** ** * ** ***

Represents a built artifact that is present in the file system.

## Summary

|                                                                                                                    ### Public properties                                                                                                                     ||
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)    | [outputFile](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BuiltArtifact#outputFile()) Absolute path to the built file     |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [versionCode](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BuiltArtifact#versionCode()) Returns a read-only version code. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [versionName](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BuiltArtifact#versionName()) Returns a read-only version name. |

## Public properties

### outputFile

```
val outputFile: String
```

Absolute path to the built file  

|                                                 Returns                                                 ||
|----------------------------------------------------------------------------------|-----------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | the output file path. |

### versionCode

```
val versionCode: Int?
```

Returns a read-only version code.  

|                                                                             Returns                                                                              ||
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?` | version code or null if the version code is unknown (not set in manifest nor DSL) |

### versionName

```
val versionName: String?
```

Returns a read-only version name.  

|                                                                                Returns                                                                                 ||
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | version name or null if the version name is unknown (not set in manifest nor DSL) |