Add examples on how to install a library from a spec repo, upstream repo, :podspec, and inline spec.

This commit is contained in:
Eloy Duran
2011-11-09 23:46:23 +01:00
parent aef7ea0ffe
commit 3c03a9d15d
3 changed files with 43 additions and 6 deletions

View File

@@ -1,4 +1,34 @@
platform :ios
dependency 'SSToolkit'
dependency 'AFNetworking'
# From a spec repo
#dependency 'SSToolkit'
# Directly from the Pods repo
#dependency 'SSToolkit', :git => 'https://github.com/samsoffes/sstoolkit.git'
# Directly from the Pods repo with a specific commit (or tag)
#dependency 'SSToolkit', :git => 'https://github.com/samsoffes/sstoolkit.git',
# :commit => '2adcd0f81740d6b0cd4589af98790eee3bd1ae7b'
# From a podspec that's outside a spec repo and the librarys repo
#dependency 'SSToolkit', :podspec => 'https://raw.github.com/gist/1353347/ef1800da9c5f5d267a642b8d3950b41174f2a6d7/SSToolkit-0.1.1.podspec'
# If no podspec is available anywhere, you can define one right in your Podfile
dependency do |s|
s.name = 'SSToolkit'
s.version = '0.1.3'
s.platform = :ios
s.source = { :git => 'https://github.com/samsoffes/sstoolkit.git', :commit => '2adcd0f81740d6b0cd4589af98790eee3bd1ae7b' }
s.resources = 'Resources'
s.source_files = 'SSToolkit/**/*.{h,m}'
s.frameworks = 'QuartzCore', 'CoreGraphics'
def s.post_install(target)
prefix_header = config.project_pods_root + target.prefix_header_filename
prefix_header.open('a') do |file|
file.puts(%{#ifdef __OBJC__\n#import "SSToolkitDefines.h"\n#endif})
end
end
end