Skip to content

Instantly share code, notes, and snippets.

@olegam
Last active December 16, 2015 10:19
Show Gist options
  • Save olegam/5419001 to your computer and use it in GitHub Desktop.
Save olegam/5419001 to your computer and use it in GitHub Desktop.
This is a podspec pointing to the HEAD of ReactiveCocoa. To use it add the following line to your Podfile: pod 'ReactiveCocoa', :podspec => 'https://gist.github.com/olegam/5419001/raw/93e2e2e7c3c35fc10e6ca660bfd18309b666af36/gistfile1.rb'
Pod::Spec.new do |s|
s.name = "ReactiveCocoa"
s.version = "1.x-head"
s.summary = "A framework for composing and transforming sequences of values."
s.homepage = "https://github.com/blog/1107-reactivecocoa-is-now-open-source"
s.author = { "Josh Abernathy" => "[email protected]" }
s.source = { :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git" }
s.license = 'Simplified BSD License'
s.description = "ReactiveCocoa offers:\n" \
"1. The ability to compose operations on future data.\n" \
"2. An approach to minimizing state and mutability.\n" \
"3. A declarative way to define behaviors and the relationships between properties.\n" \
"4. A unified, high-level interface for asynchronous operations.\n" \
"5. A lovely API on top of KVO."
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.compiler_flags = '-DOS_OBJECT_USE_OBJC=0'
s.subspec 'Core' do |sp|
files = FileList['ReactiveCocoaFramework/ReactiveCocoa/*.{h,m}']
sp.ios.source_files = files.dup.exclude(/NSButton/, /AppKit/, /NSText/, /NSControl/)
sp.osx.source_files = files.dup.exclude(/UIControl/, /UIText/, /RACEventTrampoline/, /RACDelegateProxy/)
sp.header_dir = 'ReactiveCocoa'
sp.dependency 'JRSwizzle', '~> 1.0'
sp.dependency 'libextobjc/EXTKeyPathCoding', '~> 0.2.5'
sp.dependency 'libextobjc/EXTConcreteProtocol', '~> 0.2.5'
sp.dependency 'libextobjc/EXTScope', '~> 0.2.5'
sp.pre_install do |pod, _|
pod.source_files.each { |source|
contents = source.read
if contents.gsub!(%r{\bReactiveCocoa/(?:\w+/)*(EXT\w+|metamacros)\.h\b}, '\1.h')
File.open(source, 'w') { |file| file.puts(contents) }
end
}
end
end
s.subspec 'RACExtensions' do |sp|
files = FileList['RACExtensions/*.{h,m}']
sp.ios.source_files = files.dup.exclude(/NSTask/)
sp.osx.source_files = files
sp.dependency 'ReactiveCocoa/Core'
end
end
@ikesyo
Copy link

ikesyo commented Apr 22, 2013

How about the style below? :

# Podfile
pod 'ReactiveCocoa', :head

and

$ pod update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment