SugarRecord/SugarRecord.podspec
Pedro Piñera Buendía 901b4dc7f5 Bump version to 2.2.8
2016-05-16 16:31:40 +02:00

128 lines
4.9 KiB
Ruby

Pod::Spec.new do |s|
s.name = "SugarRecord"
s.version = "2.2.8"
s.summary = "CoreData wrapper written on Swift"
s.homepage = "https://github.com/pepibumur/SugarRecord"
s.license = 'MIT'
s.author = { "Pedro" => "pedro@gitdo.io" }
s.source = { :git => "https://github.com/pepibumur/SugarRecord.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/pepibumur'
s.requires_arc = true
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
rx_dependencies = lambda do |spec|
spec.dependency 'RxSwift', '~> 2.5.0'
spec.dependency 'RxCocoa', '~> 2.5.0'
spec.dependency 'RxBlocking', '~> 2.5.0'
end
rac_dependencies = lambda do |spec|
spec.dependency "ReactiveCocoa", "4.1.0"
end
realm_dependencies = lambda do |spec|
spec.dependency "RealmSwift", "~> 0.102.1"
end
coredata_dependencies = lambda do |spec|
spec.frameworks = ['CoreData']
end
foundation_dependencies = lambda do |spec|
spec.dependency "Result", "~> 2.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
excluded_icloud_files = ['SugarRecord/Source/CoreData/Entities/iCloudConfig.swift', 'SugarRecord/Source/CoreData/Storages/CoreDataiCloudStorage.swift']
s.subspec "CoreData" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}']
spec.source_files = source_files
spec.exclude_files = excluded_icloud_files
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
all_platforms.call(spec)
end
s.subspec "CoreData+iCloud" 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)
end
s.subspec "CoreData+RX" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
excluded_files = ['SugarRecord/Source/Reactive/ReactiveCocoa/**/*.{swift}']
spec.source_files = source_files
spec.exclude_files = excluded_files + excluded_icloud_files
rx_dependencies.call(spec)
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
all_platforms.call(spec)
end
s.subspec "CoreData+RX+iCloud" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
excluded_files = ['SugarRecord/Source/Reactive/ReactiveCocoa/**/*.{swift}']
spec.source_files = source_files
spec.exclude_files = excluded_files
rx_dependencies.call(spec)
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
end
s.subspec "CoreData+RAC" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
excluded_files = ['SugarRecord/Source/Reactive/Rx/**/*.{swift}']
spec.source_files = source_files
spec.exclude_files = excluded_files + excluded_icloud_files
rac_dependencies.call(spec)
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
all_platforms.call(spec)
end
s.subspec "CoreData+RAC+iCloud" do |spec|
source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/CoreData/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
excluded_files = ['SugarRecord/Source/Reactive/Rx/**/*.{swift}']
spec.source_files = source_files
spec.exclude_files = excluded_files
rac_dependencies.call(spec)
coredata_dependencies.call(spec)
foundation_dependencies.call(spec)
end
s.subspec "Realm" do |spec|
spec.source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/Realm/**/*.{swift}']
realm_dependencies.call(spec)
foundation_dependencies.call(spec)
end
s.subspec "Realm+RX" do |spec|
spec.source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/Realm/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
spec.exclude_files = ['SugarRecord/Source/Reactive/ReactiveCocoa/**/*.{swift}']
rx_dependencies.call(spec)
realm_dependencies.call(spec)
foundation_dependencies.call(spec)
end
s.subspec "Realm+RAC" do |spec|
spec.source_files = ['SugarRecord/Source/Foundation/**/*.{swift}', 'SugarRecord/Source/Realm/**/*.{swift}', 'SugarRecord/Source/Reactive/**/*.{swift}']
spec.exclude_files = ['SugarRecord/Source/Reactive/Rx/**/*.{swift}']
rac_dependencies.call(spec)
realm_dependencies.call(spec)
foundation_dependencies.call(spec)
end
end