Ensure API modules will not use setupDependencyInjection().
This commit is contained in:
parent
9da8c689ea
commit
9eb66afd87
1 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ import org.gradle.plugin.use.PluginDependency
|
||||||
fun Project.setupDependencyInjection(
|
fun Project.setupDependencyInjection(
|
||||||
generateNodeFactories: Boolean = shouldApplyAppyxCodegen(),
|
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>()
|
val libs = the<LibrariesForLibs>()
|
||||||
|
|
||||||
// Apply Metro plugin and configure it
|
// Apply Metro plugin and configure it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue