-
Notifications
You must be signed in to change notification settings - Fork 496
/
ReactiveObjC.podspec
73 lines (56 loc) · 3.4 KB
/
ReactiveObjC.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Pod::Spec.new do |s|
s.name = "ReactiveObjC"
s.version = "3.1.1"
s.summary = "The 2.x ReactiveCocoa Objective-C API: Streams of values over time"
s.description = <<-DESC.strip_heredoc
ReactiveObjC (formally ReactiveCocoa or RAC) is an Objective-C
framework inspired by [Functional Reactive Programming](
http://en.wikipedia.org/wiki/Functional_reactive_programming).
It provides APIs for composing and **transforming streams of values**.
DESC
s.homepage = "https://reactivecocoa.io"
s.screenshots = "https://reactivecocoa.io/img/logo.png"
s.license = { type: "MIT", file: "LICENSE.md" }
s.documentation_url = "https://github.com/ReactiveCocoa/ReactiveObjC/"\
"tree/master/Documentation#readme"
s.author = "ReactiveCocoa"
s.social_media_url = "https://twitter.com/ReactiveCocoa"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
s.source = { git: "https://github.com/ReactiveCocoa/ReactiveObjC.git",
tag: s.version }
s.source_files = "ReactiveObjC/*.{h,m,d}",
"ReactiveObjC/extobjc/*.{h,m}"
s.private_header_files = "**/*Private.h",
"**/*EXTRuntimeExtensions.h",
"**/RACEmpty*.h"
s.ios.exclude_files = "ReactiveObjC/**/*{AppKit,NSControl,NSText,NSTable}*"
s.osx.exclude_files = "ReactiveObjC/**/*{UIActionSheet,UIAlertView,UIBarButtonItem,"\
"UIButton,UICollectionReusableView,UIControl,UIDatePicker,"\
"UIGestureRecognizer,UIImagePicker,UIRefreshControl,"\
"UISegmentedControl,UISlider,UIStepper,UISwitch,UITableViewCell,"\
"UITableViewHeaderFooterView,UIText,MK}*"
s.tvos.exclude_files = "ReactiveObjC/**/*{AppKit,NSControl,NSText,NSTable,UIActionSheet,"\
"UIAlertView,UIDatePicker,UIImagePicker,UIRefreshControl,UISlider,"\
"UIStepper,UISwitch,MK}*"
s.watchos.exclude_files = "ReactiveObjC/**/*{UIActionSheet,UIAlertView,UIBarButtonItem,"\
"UIButton,UICollectionReusableView,UIControl,UIDatePicker,"\
"UIGestureRecognizer,UIImagePicker,UIRefreshControl,"\
"UISegmentedControl,UISlider,UIStepper,UISwitch,UITableViewCell,"\
"UITableViewHeaderFooterView,UIText,MK,AppKit,NSControl,NSText,"\
"NSTable,NSURLConnection}*"
s.requires_arc = true
s.frameworks = "Foundation"
s.prepare_command = <<-'CMD'.strip_heredoc
find -E . -type f -not -name 'RAC*' -regex '.*(EXT.*|metamacros)\.[hm]$' \
-execdir mv '{}' RAC'{}' \;
find . -regex '.*\.[hm]' \
-exec perl -pi \
-e 's@"(?:(?!RAC)(EXT.*|metamacros))\.h"@"RAC\1.h"@' '{}' \;
find . -regex '.*\.[hm]' \
-exec perl -pi \
-e 's@<ReactiveObjC/(?:(?!RAC)(EXT.*))\.h>@<ReactiveObjC/RAC\1.h>@' '{}' \;
CMD
end