practical cocoapods

Post on 07-May-2015

446 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Practical CocoaPods, from Renaissance.io 2014.

TRANSCRIPT

Practical Cocoapods@MicheleTitolo

Objective-C Library Dependency Manager

Specify Dependencies

Specify Versions

Dependency Resolution

Private Pods

Yes, this is a thing

Theory

You can add a .podspecto anything

Any remote can be a pod

2 options

Your own Spec repo

└── [SPEC_NAME] └── [VERSION] └── [SPEC_NAME].podspec

$ pod repo add NAME SOURCE_URL$ cd ~/.cocoapods/NAME$ pod repo lint .

Don’t need a private fork of CocoaPods/Specs

Any code, anywhere

Specify any remotethat has a .podspec

pod ‘BananaLib’, :git=>git@github.com/…

Podspecs should be in the root folder of the repository

Specify a .podspec

pod ‘BananaLib’, :podspec => ‘https://…’

Specify a path

pod ‘BananaLib’, :path => ‘~/Projects/…’

Modular Code

Smaller dependencies

Independent pieces

Decouple

More dependencies

“Dependencies are bad!”

Choosing dependencies

Commits

Stars, Watchers, and Forks

Open : Closed Issues

Pull Requests

Look at the code

In Summary

Thank You@MicheleTitolo

top related