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 9da8c689ea
commit 9eb66afd87

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