forked from modo-studio/SugarRecord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SugarRecord.podspec
38 lines (32 loc) · 1.21 KB
/
SugarRecord.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
Pod::Spec.new do |s|
s.name = "SugarRecord"
s.version = "4.0.0"
s.summary = "CoreData wrapper written on Swift"
s.homepage = "https://github.com/carambalabs/SugarRecord"
s.license = 'MIT'
s.author = { "Pedro" => "pepibumur@gmail.com" }
s.source = { :git => "https://github.com/carambalabs/SugarRecord.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/carambalabs'
s.requires_arc = true
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.10"
coredata_dependencies = lambda do |spec|
spec.frameworks = ['CoreData']
end
foundation_dependencies = lambda do |spec|
spec.dependency "Result", "~> 5.0"
end
all_platforms = lambda do |spec|
spec.ios.deployment_target = "8.0"
spec.osx.deployment_target = "10.10"
spec.watchos.deployment_target = "2.0"
spec.tvos.deployment_target = '9.0'
end
s.subspec "CoreData" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}']
spec.source_files = source_files
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
all_platforms.call(spec)
end
end