forked from realm/realm-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RealmSwift.podspec
33 lines (28 loc) · 1.79 KB
/
RealmSwift.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
Pod::Spec.new do |s|
s.name = 'RealmSwift'
version = `sh build.sh get-version`
s.version = version
s.summary = 'Realm is a modern data framework & database for iOS, macOS, tvOS & watchOS.'
s.description = <<-DESC
The Realm Mobile Database, for Swift. (If you want to use Realm from Objective-C, see the “Realm” pod.)
The Realm Mobile Database is a fast, easy-to-use replacement for Core Data & SQLite. Use it with the Realm Mobile Platform for realtime, automatic data sync. Works on iOS, macOS, tvOS & watchOS. Learn more and get help at https://realm.io.
DESC
s.homepage = "https://realm.io"
s.source = { :git => 'https://github.com/realm/realm-cocoa.git', :tag => "v#{s.version}", :submodules => true }
s.author = { 'Realm' => 'help@realm.io' }
s.requires_arc = true
s.social_media_url = 'https://twitter.com/realm'
has_versioned_docs = !(version =~ /alpha|beta|rc/)
s.documentation_url = "https://realm.io/docs/swift/#{has_versioned_docs ? s.version : 'latest'}"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.dependency 'Realm', "= #{s.version}"
s.source_files = 'RealmSwift/*.swift'
s.exclude_files = 'RealmSwift/Nonsync.swift'
s.prepare_command = 'sh build.sh cocoapods-setup swift'
s.preserve_paths = %w(build.sh)
s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
end