Hello, gradlers!
I have an issue with build types in AGP 8.4.0, and while digging into it, I wanted to ensure I understand the documentation correctly.
Let's pretend I have added a custom build type in a multi-module project, and this is one of my submodule's build.gradle.kts files, for instance, "network":
buildTypes {
if (findByName("stage") == null) {
create("stage") {
initWith(getByName("debug"))
matchingFallbacks += listOf("debug")
signingConfig = signingConfigs.getByName("debug")
buildConfigField("String", "BASE_URL", "some url")
}
}
}
I want the stage build variant to rely on the
debugImplementation dependency resolution configuration. Am I correct in understanding that
matchingFallbacks
should achieve this?
Thank you!