-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
RealmSwift.podspec
49 lines (44 loc) · 2.57 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# coding: utf-8
Pod::Spec.new do |s|
s.name = 'RealmSwift'
version = `sh build.sh get-version`
s.version = version
s.summary = 'Realm Swift is a modern data framework & database for iOS, macOS, tvOS & watchOS.'
s.description = <<-DESC
The Realm Database, for Swift. (If you want to use Realm from Objective-C, see the “Realm” pod.)
Realm is a fast, easy-to-use replacement for Core Data & SQLite. Use it with Atlas Device Sync for realtime, automatic data sync. Works on iOS, macOS, tvOS & watchOS. Learn more and get help at https://www.mongodb.com/docs/atlas/device-sdks/sdk/swift/.
DESC
s.homepage = "https://realm.io"
s.source = { :git => 'https://github.com/realm/realm-swift.git', :tag => "v#{s.version}" }
s.author = { 'Realm' => '[email protected]' }
s.requires_arc = true
s.social_media_url = 'https://twitter.com/realm'
s.documentation_url = "https://docs.mongodb.com/realm/sdk/swift"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.13'
s.watchos.deployment_target = '4.0'
s.tvos.deployment_target = '12.0'
s.preserve_paths = %w(build.sh)
s.swift_version = '5'
s.weak_frameworks = 'SwiftUI'
s.dependency 'Realm', "= #{s.version}"
s.source_files = 'RealmSwift/*.swift', 'RealmSwift/Impl/*.swift', 'Realm/Swift/*.swift'
s.exclude_files = 'RealmSwift/Nonsync.swift'
s.resource_bundles = {'realm_swift_privacy' => ['RealmSwift/PrivacyInfo.xcprivacy']}
s.pod_target_xcconfig = {
'APPLICATION_EXTENSION_API_ONLY' => 'YES',
'IPHONEOS_DEPLOYMENT_TARGET_1500' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET_1600' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET' => '$(IPHONEOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'MACOSX_DEPLOYMENT_TARGET_1500' => '10.13',
'MACOSX_DEPLOYMENT_TARGET_1600' => '10.13',
'MACOSX_DEPLOYMENT_TARGET' => '$(MACOSX_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'WATCHOS_DEPLOYMENT_TARGET_1500' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET_1600' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET' => '$(WATCHOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'TVOS_DEPLOYMENT_TARGET_1500' => '12.0',
'TVOS_DEPLOYMENT_TARGET_1600' => '12.0',
'TVOS_DEPLOYMENT_TARGET' => '$(TVOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
}
end