Skip to content
This repository
Browse code

Merge pull request #954 from pyrtsa/master

Update for ReactiveCocoa 0.13.1 with iOS 6 support
  • Loading branch information...
commit 5c89a7dd6a850b6b46d752320b2650a0a88e8652 2 parents 10c1b18 + cd5eadd
Orta authored December 31, 2012
46  ReactiveCocoa/0.13.1/ReactiveCocoa.podspec
... ...
@@ -0,0 +1,46 @@
  1
+Pod::Spec.new do |s|
  2
+  s.name         = "ReactiveCocoa"
  3
+  s.version      = "0.13.1"
  4
+  s.summary      = "A framework for composing and transforming sequences of values."
  5
+  s.homepage     = "https://github.com/blog/1107-reactivecocoa-is-now-open-source"
  6
+  s.author       = { "Josh Abernathy" => "josh@github.com" }
  7
+  s.source       = { :git => "https://github.com/github/ReactiveCocoa.git", :tag => "v#{s.version}" }
  8
+  s.license      = 'Simplified BSD License'
  9
+  s.description  = "ReactiveCocoa offers:\n"                                                               \
  10
+                   "1. The ability to compose operations on future data.\n"                                \
  11
+                   "2. An approach to minimizing state and mutability.\n"                                  \
  12
+                   "3. A declarative way to define behaviors and the relationships between properties.\n"  \
  13
+                   "4. A unified, high-level interface for asynchronous operations.\n"                     \
  14
+                   "5. A lovely API on top of KVO."
  15
+
  16
+  s.requires_arc = true
  17
+  s.ios.deployment_target = '5.0'
  18
+  s.compiler_flags = '-DOS_OBJECT_USE_OBJC=0'
  19
+
  20
+  s.subspec 'Core' do |sp|
  21
+    files = FileList['ReactiveCocoaFramework/ReactiveCocoa/*.{h,m}']
  22
+    sp.ios.source_files = files.dup.exclude(/NSButton/, /AppKit/)
  23
+    sp.osx.source_files = files.dup.exclude(/UIControl/, /UIText/, /Event/, /DelegateProxy/)
  24
+    sp.header_dir = 'ReactiveCocoa'
  25
+
  26
+    sp.dependency 'JRSwizzle', '~> 1.0'
  27
+    sp.dependency 'libextobjc/EXTKeyPathCoding', '~> 0.2.3'
  28
+    sp.dependency 'libextobjc/EXTConcreteProtocol', '~> 0.2.3'
  29
+    sp.dependency 'libextobjc/EXTScope', '~> 0.2.3'
  30
+  end
  31
+
  32
+  s.subspec 'RACExtensions' do |sp|
  33
+    files = FileList['RACExtensions/*.{h,m}']
  34
+    sp.ios.source_files = files.dup.exclude(/NSTask/)
  35
+    sp.osx.source_files = files
  36
+    sp.dependency 'ReactiveCocoa/Core'
  37
+  end
  38
+
  39
+  def s.pre_install (pod, _)
  40
+    header = pod.root + 'ReactiveCocoaFramework/ReactiveCocoa/ReactiveCocoa.h'
  41
+    contents = header.read
  42
+    contents = contents.gsub('ReactiveCocoa/libextobjc/extobjc/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h')
  43
+    contents = contents.gsub('ReactiveCocoa/EXTKeyPathCoding.h', 'EXTKeyPathCoding.h')
  44
+    File.open(header, 'w') { |file| file.puts(contents) }
  45
+  end
  46
+end

0 notes on commit 5c89a7d

Please sign in to comment.
Something went wrong with that request. Please try again.