forked from realm/realm-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRealm.podspec
132 lines (121 loc) · 7.2 KB
/
Realm.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# coding: utf-8
Pod::Spec.new do |s|
s.name = 'Realm'
version = `sh build.sh get-version`
s.version = version
s.cocoapods_version = '>= 1.10'
s.summary = 'Realm is a modern data framework & database for iOS, macOS, tvOS & watchOS.'
s.description = <<-DESC
The Realm Mobile Database, for Objective-C. (If you want to use Realm from Swift, see the “RealmSwift” 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}" }
s.author = { 'Realm' => 'help@realm.io' }
s.library = 'c++', 'z'
s.requires_arc = true
s.social_media_url = 'https://twitter.com/realm'
s.documentation_url = "https://realm.io/docs/objc/latest"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
public_header_files = 'include/Realm.h',
# Realm module
'include/RLMArray.h',
'include/RLMCollection.h',
'include/RLMConstants.h',
'include/RLMDecimal128.h',
'include/RLMDictionary.h',
'include/RLMEmbeddedObject.h',
'include/RLMMigration.h',
'include/RLMObject.h',
'include/RLMObjectBase.h',
'include/RLMObjectId.h',
'include/RLMObjectSchema.h',
'include/RLMPlatform.h',
'include/RLMProperty.h',
'include/RLMRealm.h',
'include/RLMRealmConfiguration.h',
'include/RLMResults.h',
'include/RLMSchema.h',
'include/RLMSet.h',
'include/RLMSwiftCollectionBase.h',
'include/RLMSwiftValueStorage.h',
'include/RLMThreadSafeReference.h',
'include/RLMValue.h',
# Sync
'include/NSError+RLMSync.h',
'include/RLMApp.h',
'include/RLMAppCredentials.h',
'include/RLMBSON.h',
'include/RLMNetworkTransport.h',
'include/RLMPushClient.h',
'include/RLMProviderClient.h',
'include/RLMRealm+Sync.h',
'include/RLMRealmConfiguration+Sync.h',
'include/RLMSyncConfiguration.h',
'include/RLMCredentials.h',
'include/RLMSyncManager.h',
'include/RLMSyncSession.h',
'include/RLMUser.h',
'include/RLMSyncUtil.h',
'include/RLMUserAPIKey.h',
'include/RLMAPIKeyAuth.h',
'include/RLMEmailPasswordAuth.h',
'include/RLMFindOneAndModifyOptions.h',
'include/RLMFindOptions.h',
'include/RLMMongoClient.h',
'include/RLMMongoCollection.h',
'include/RLMMongoDatabase.h',
'include/RLMUpdateResult.h',
# Realm.Dynamic module
'include/RLMRealm_Dynamic.h',
'include/RLMObjectBase_Dynamic.h'
# Realm.Private module
private_header_files = 'include/RLMAccessor.h',
'include/RLMApp_Private.h',
'include/RLMArray_Private.h',
'include/RLMBSON_Private.h',
'include/RLMCollection_Private.h',
'include/RLMDictionary_Private.h',
'include/RLMObjectBase_Private.h',
'include/RLMObjectSchema_Private.h',
'include/RLMObjectStore.h',
'include/RLMObject_Private.h',
'include/RLMOptionalBase.h',
'include/RLMPropertyBase.h',
'include/RLMProperty_Private.h',
'include/RLMProviderClient_Private.h',
'include/RLMRealmConfiguration_Private.h',
'include/RLMRealm_Private.h',
'include/RLMResults_Private.h',
'include/RLMSchema_Private.h',
'include/RLMSet_Private.h',
'include/RLMSwiftProperty.h',
'include/RLMSyncConfiguration_Private.h',
'include/RLMSyncUtil_Private.h',
'include/RLMUpdateResult_Private.h',
'include/RLMUser_Private.h',
s.frameworks = 'Security'
s.module_map = 'Realm/Realm.modulemap'
s.compiler_flags = "-DREALM_HAVE_CONFIG -DREALM_COCOA_VERSION='@\"#{s.version}\"' -D__ASSERTMACROS__ -DREALM_ENABLE_SYNC"
s.prepare_command = 'sh build.sh cocoapods-setup'
s.source_files = private_header_files + ['Realm/*.{m,mm}']
s.private_header_files = private_header_files
s.header_mappings_dir = 'include'
s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES',
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
'CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF' => 'NO',
'OTHER_CPLUSPLUSFLAGS' => '-isystem "${PODS_ROOT}/Realm/include/core" -fvisibility-inlines-hidden',
'OTHER_CPLUSPLUSFLAGS[arch=armv7]' => '-isystem "${PODS_ROOT}/Realm/include/core" -fvisibility-inlines-hidden -fno-aligned-new',
'USER_HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Realm/include" "${PODS_ROOT}/Realm/include/Realm"',
}
s.preserve_paths = %w(build.sh include)
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '9.0'
s.vendored_frameworks = 'core/realm-monorepo.xcframework'
s.subspec 'Headers' do |s|
s.source_files = public_header_files
s.public_header_files = public_header_files
end
end