Giter VIP home page Giter VIP logo

ctmediator's Introduction

CTMediator

objective-c:

pod "CTMediator"

swift:

use_frameworks!
pod "CTMediator"

CTMediator helps you to divide your project into multi-project, and use Target-Action pattern to let subprojects to communicate with each other. with no regist process!

you can check demo for more details:

Origin project

Modulized Main Project with CTMediator

Demos

Swift Demo

add private repo before you run demos:

pod repo add PrivatePods https://github.com/ModulizationDemo/PrivatePods.git

remember to run pod install before you run the demo!


Origin project

Modulized Main Project with CTMediator

Demos

Swift Demo

跑demo时先添加私有库:

pod repo add PrivatePods https://github.com/ModulizationDemo/PrivatePods.git

然后就可以pod install


iOS应用架构谈 组件化方案

在现有工程中实施基于CTMediator的组件化方案

CTMediator的Swift应用


本工程其实也是个Demo

Category目录在实际工程中是单独的一个repo,调用者通过依赖category这个repo来完成功能调度。一般来说是每一个业务对应一个category的repo。因此调用者需要调度哪个业务,就依赖哪个业务的category。category这个repo由对应提供服务的业务来维护。

CTMediator目录在实际工程中也是一个单独的repo,仅用于存放中间件。被每一个业务线各自维护的category repo所依赖。

DemoModule目录是实际提供服务的业务,这个在实际工程中也是一个单独的repo。这个repo不被任何人所依赖,这个repo通过target-action来提供被调度的功能,然后由category repo通过runtime调度。


CTMediator helps you to devide your project into multi-project, and use Target-Action pattern to let subprojects to communicate with each other.

you can check demo for more details:

Demo

Swift Demo

ctmediator's People

Contributors

casatwy avatar woonoah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.