Ensure API modules will not use setupDependencyInjection().

This commit is contained in:
Benoit Marty 2025-11-12 16:43:07 +01:00 committed by Benoit Marty
parent 7b7c42915a
commit 8cad6fba9f

View file

@ -22,6 +22,10 @@ import org.gradle.plugin.use.PluginDependency
fun Project.setupDependencyInjection(
generateNodeFactories: Boolean = shouldApplyAppyxCodegen(),
) {
if (project.path.endsWith(":api")) {
error("api module should not use setupDependencyInjection(). Move the implementation to `:impl` module")
}
val libs = the<LibrariesForLibs>()
// Apply Metro plugin and configure it