A
A
Antonnab2014-12-20 08:11:49
git
Antonnab, 2014-12-20 08:11:49

How to organize the modular structure of an ios application?

Good afternoon, colleagues!
Somehow I got a task to organize a modular application for a project. The goal is this:
There are modules (news, catalog, etc.) with their own screens (one or more). Each module is a separate repository in GIT. Let's say a new project is being created, and I would like to launch these modules into it. And for customization, for example, create another module of the application instance. So the real question is, how to organize it all correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
An, 2014-12-21
@Antonnab

Well, look, I see these options:
1) Framework, kit. It is done by analogy with UIKit , which you constantly use in your projects for iOS. If you are making a project for iOS 8, then everything is damn simple and done right out of the box (see creating a Framework target). If we are talking about supporting older versions, then everything is more complicated here, since you will need to create a static library . Oh yes, frameworks will be static when it comes to iOS. Of the advantages of this approach is uniformity and organicity with the ecosystem that apple is pushing
2) Cocoa pod's. unfortunately I don't know if pods allow you to do this privately without sharing the code for others (probably not...), but with pods it's really simple - you just need to add a line to the file in the project that will use the "library"
3) git submodule as above suggested 183614956

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question