Daily iOS
Build and distribution

Tuist module dependencies

In a hotel booking app's multi-module Tuist project, the Feature modules import each other's implementation modules directly, so changing one rebuilds everything. How would you change the dependency structure?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Split each Feature into an Interface module holding only protocols and models and an implementation module, have Features depend on each other's Interface only, and assemble and inject the implementations in the App target.

Share a question