Basic Configuration

Here is an introduction to the configuration methods of project features that may be used by BetterAndroid.

View Binding

If you reference ui-component or ui-extension related functions, you need to enable viewBinding in buildFeatures.

android {
    buildFeatures {
        viewBinding = true
    }
}

Jetpack Compose

If you reference compose-extension or compose-multiplatform related functions, you need to enable compose in buildFeatures.

Please refer hereopen in new window to set the correct kotlinCompilerExtensionVersion.

android {
    composeOptions {
        kotlinCompilerExtensionVersion = "/** Compose Compiler Version */"
    }
    buildFeatures {
        compose = true
    }
}