From cd5eadd0a97626ccd71ff726fbfdb18cd60408a9 Mon Sep 17 00:00:00 2001 From: Pyry Jahkola Date: Mon, 31 Dec 2012 16:19:17 +0200 Subject: [PATCH] Update for ReactiveCocoa 0.13.1 with iOS 6 support ReactiveCocoa currently still targets iOS 5, which means the ARC support for GCD objects needs to be turned off when targeting iOS 6. Hence, #defining OS_OBJECT_USE_OBJC as 0. This fix shouldn't affect any other project files using either GCD or ARC in any way. For more info, see: https://github.com/github/ReactiveCocoa/issues/204 --- ReactiveCocoa/0.13.1/ReactiveCocoa.podspec | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ReactiveCocoa/0.13.1/ReactiveCocoa.podspec diff --git a/ReactiveCocoa/0.13.1/ReactiveCocoa.podspec b/ReactiveCocoa/0.13.1/ReactiveCocoa.podspec new file mode 100644 index 00000000..ca7250b9 --- /dev/null +++ b/ReactiveCocoa/0.13.1/ReactiveCocoa.podspec @@ -0,0 +1,46 @@ +Pod::Spec.new do |s| + s.name = "ReactiveCocoa" + s.version = "0.13.1" + 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" => "josh@github.com" } + s.source = { :git => "https://github.com/github/ReactiveCocoa.git", :tag => "v#{s.version}" } + 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.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/) + sp.osx.source_files = files.dup.exclude(/UIControl/, /UIText/, /Event/, /DelegateProxy/) + sp.header_dir = 'ReactiveCocoa' + + sp.dependency 'JRSwizzle', '~> 1.0' + sp.dependency 'libextobjc/EXTKeyPathCoding', '~> 0.2.3' + sp.dependency 'libextobjc/EXTConcreteProtocol', '~> 0.2.3' + sp.dependency 'libextobjc/EXTScope', '~> 0.2.3' + 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 + + def s.pre_install (pod, _) + header = pod.root + 'ReactiveCocoaFramework/ReactiveCocoa/ReactiveCocoa.h' + contents = header.read + contents = contents.gsub('ReactiveCocoa/libextobjc/extobjc/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h') + contents = contents.gsub('ReactiveCocoa/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h') + File.open(header, 'w') { |file| file.puts(contents) } + end +end \ No newline at end of file