Ensure API modules will not use setupDependencyInjection().
This commit is contained in:
parent
7b7c42915a
commit
8cad6fba9f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue