modularization folders architecture #110
-
tank you for your awesome work i have a question about architecture all the folders and sub-folders, in modularization project. what is the differences between this two approaches ? first approach we put each modules in separated module like bellow
we put each modules in one Root module like bellow
Whats is Pro and Cons between this two approaches Xcode issue ? when importing the modules ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @amine2233, we think that maintaining a single package with multiple targets (the second) is much easier to maintain than multiple packages with single targets (the first). We're not sure there's any benefit, in fact, to splitting a package out into several unless you want to ship the libraries of that package as a standalone repo, for example if you maintain an open source library. When it comes to modularizing an app's code base, we think a single package is fine, and a lot less work 😄 |
Beta Was this translation helpful? Give feedback.
Hi @amine2233, we think that maintaining a single package with multiple targets (the second) is much easier to maintain than multiple packages with single targets (the first). We're not sure there's any benefit, in fact, to splitting a package out into several unless you want to ship the libraries of that package as a standalone repo, for example if you maintain an open source library. When it comes to modularizing an app's code base, we think a single package is fine, and a lot less work 😄