A tool for organizing code in monorepo
way.
cocoapods-monorepo
allowed you to specify a directory, so we can extend CocoaPods to support monorepo
feature. Thanks to this plugin we can turn all the pods that under a specified directory into Development Pods
. You will no longer need to specify all local paths in the Podfile
, eg:
pod 'ModuleA', :path => 'path/to/ModuleA'
pod 'ModuleB', :path => 'path/to/ModuleB'
pod 'ModuleC', :path => 'path/to/ModuleC'
Besides, you can also specify a local dependency in podsepc
, that's say you need to declare a dependency of ModuleB
in ModuleA.podspec
:
s.dependency 'ModuleB' # inside ModuleA.podspec
$ gem install cocoapods-monorepo
Add a reference to it in your Podfile
, and specified the necessary option :path
:
plugin 'cocoapods-monorepo', :path => 'path/to/repos-directory'
You should orgnize all these local modules under the same directory with :path
option.
.
├── ModuleA
│ ├── ModuleA.podspec
│ └── README.md
├── ModuleB
│ ├── ModuleB.podspec
│ ├── README.md
├── ModuleC
│ ├── ModuleC.podspec
│ ├── README.md
Enjoy it!