Build

Custom Kotlin

Override anything Apirex generates with your own code — and keep your edits across regenerations.

Apirex generates idiomatic Kotlin you can read, edit, and own. The output is a standard Gradle project that builds without Apirex installed.

The overrides folder

Anything you put in app/src/main/java/overrides/ is preserved across regenerations. Apirex's generator will never overwrite a file in that folder.

kotlin
// app/src/main/java/overrides/CustomCart.kt
@Composable
fun CustomCart(state: CartState, onCheckout: () -> Unit) {
    // your code wins
}

Linking your override

In the dashboard, mark the screen as 'Use override'. The generator will swap your Composable in at the navigation graph level.