Slackbot
03/29/2023, 3:46 PMNuh Koca
03/29/2023, 3:53 PMdebugImplementation("com.example:library-debug:1.0.0")
releaseImplementation("com.example:library-release:1.0.0")
should workYitz Lefkowitz
03/29/2023, 3:53 PMephemient
03/29/2023, 5:04 PMephemient
03/29/2023, 5:07 PM-debug
and -release
can't be used at the same timeephemient
03/29/2023, 5:10 PMYitz Lefkowitz
03/29/2023, 5:12 PMYitz Lefkowitz
03/30/2023, 8:28 AMallprojects {
configurations.all {
resolutionStrategy.dependencySubstitution {
val substitutions = this
substitutions.all {
val dependency = this
(dependency.requested as? ModuleComponentSelector)?.let {
if (it.group == "com.example") {
val buildType = attributes.getAttribute(BuildTypeAttr.ATTRIBUTE).toString()
val newModule = "${it.module}-$buildType"
dependency.useTarget(module("${it.group}:$newModule:${it.version}"))
}
}
}
}
}
}