-
Notifications
You must be signed in to change notification settings - Fork 0
/
BGLibrary.podspec
96 lines (80 loc) · 2.8 KB
/
BGLibrary.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Pod::Spec.new do |s|
s.name = 'BGLibrary'
s.version = '0.0.1'
s.summary = 'A Bell George intenal library with helper methods.'
s.homepage = 'https://github.com/BellGeorge/BGLibrary'
s.license = {
:type => 'MIT',
:file => 'LICENSE.md'
}
s.author = {'Lawrence Lomax' => '[email protected]'}
s.source = {
:git => '[email protected]:BellGeorge/BGLibrary.git',
:commit => 'HEAD'
}
s.platform = :ios, '5.0'
s.framework = 'Foundation', 'UIKit', 'AVFoundation'
s.preferred_dependency = 'Core'
# Linker flags
s.requires_arc = true
#External Dependency is used for external libraries
s.subspec 'External' do |ss|
ss.source_files = 'External/**/*{h,m}'
end
#Core dependency means that others don't depend on it
s.subspec 'Core' do |ss|
ss.source_files = 'Classes/Core/**/*.{h,m}', 'Headers/*.h'
#Common dependencies
ss.dependency 'BGLibrary/External'
ss.dependency 'BlocksKit'
ss.dependency 'SSToolkit'
ss.dependency 'ReactiveCocoa'
end
#Subspec for the Api Subspec
s.subspec 'Api' do |ss|
ss.source_files = 'Classes/Api/**/*.{h,m}'
# Dependencies
ss.dependency 'BGLibrary/Core'
ss.dependency 'AFNetworking'
end
#Subspec for the ImageLoading using a File Database
s.subspec 'ImageLoading' do |ss|
ss.source_files = 'Classes/ImageLoading/**/*.{h,m}'
# Dependencies
ss.dependency 'BGLibrary/Core'
ss.dependency 'OGImage', :podspec => 'https://raw.github.com/lawrencelomax/Specs/master/OGImage/0.0.1/OGImage.podspec'
end
#Subspec for the BGDataStore using a File Database
s.subspec 'FileStore' do |ss|
ss.source_files = 'Classes/FileStore/**/*.{h,m}'
# Dependencies
ss.dependency 'BGLibrary/Api'
end
# Nanostore has a subspec for the BGDataStore
s.subspec 'NanoStore' do |ss|
ss.source_files = 'Classes/NanoStore/**/*.{h,m}'
# Dependencies
ss.dependency 'BGLibrary/Core'
ss.dependency 'BGLibrary/Api'
ss.dependency 'NanoStore'
ss.dependency 'SSZipArchive'
end
#Subspec for the BGDataStore using TouchDB
s.subspec 'TouchDB' do |ss|
# Dependencies
ss.dependency 'BGLibrary/Core'
ss.dependency 'BGLibrary/Api'
ss.dependency 'TouchDB'
ss.dependency 'SSZipArchive'
ss.dependency 'CouchCocoa'
end
# Facebook wrapper
s.subspec 'Facebook' do |ss|
ss.source_files = 'Classes/Facebook/**/*.{h,m}'
# Dependencies
ss.dependency 'BGLibrary/Core'
ss.dependency 'BGLibrary/Api'
ss.dependency 'Facebook-iOS-SDK', '3.1.1'
ss.dependency 'SSKeychain'
end
end