Skip to content

Instantly share code, notes, and snippets.

@happyrobots
Last active December 22, 2015 21:39
Show Gist options
  • Save happyrobots/6534684 to your computer and use it in GitHub Desktop.
Save happyrobots/6534684 to your computer and use it in GitHub Desktop.
Pod::Spec.new do |s|
s.name = "ReactiveCocoa"
s.version = "2.0.0"
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'
# Rewrite references to libextobjc to use the pod's files.
s.prepare_command = <<-'END'
find . \( -name '*.h' -o -name '*.m' \) \
-exec sed -i '' -E 's@<ReactiveCocoa/(EXTKeyPathCoding|EXTScope|metamacros)\.h>@<\1.h>@' {} +
END
s.subspec 'Core' do |sp|
s.source_files = 'ReactiveCocoaFramework/ReactiveCocoa/*.{h,m}'
s.ios.exclude_files = '**/*{NSButton,AppKit,NSText,NSControl}*'
s.osx.exclude_files = '**/*{UIBarButtonItem,UIControl,UIGestureRecognizer,UIText,RACEventTrampoline,RACDelegateProxy}*'
sp.header_dir = 'ReactiveCocoa'
sp.dependency 'JRSwizzle', '~> 1.0'
sp.dependency 'libextobjc/EXTKeyPathCoding', '~> 0.3.0'
sp.dependency 'libextobjc/EXTConcreteProtocol', '~> 0.3.0'
sp.dependency 'libextobjc/EXTScope', '~> 0.3.0'
end
s.subspec 'RACExtensions' do |sp|
sp.source_files = 'RACExtensions/*.{h,m}'
sp.ios.exclude_files = '**/*{NSTask}*'
sp.dependency 'ReactiveCocoa/Core'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment