forked from Tencent/wcdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WCDB.swift.podspec
39 lines (38 loc) · 2.08 KB
/
WCDB.swift.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
# pod lib lint --verbose --allow-warnings WCDB.swift.podspec
# pod trunk push --verbose --allow-warnings WCDB.swift.podspec
Pod::Spec.new do |wcdb|
wcdb.name = "WCDB.swift"
wcdb.version = "1.0.8.2"
wcdb.summary = "WCDB is a cross-platform database framework developed by WeChat."
wcdb.description = <<-DESC
The WeChat Database, for Swift. (If you want to use WCDB for Objective-C, see the "WCDB" pod.)
WCDB is an efficient, complete, easy-to-use mobile database framework used in the WeChat application.
It can be a replacement for Core Data, SQLite & FMDB.
DESC
wcdb.homepage = "https://github.com/Tencent/wcdb"
wcdb.license = { :type => "BSD", :file => "LICENSE" }
wcdb.author = { "sanhuazhang" => "sanhuazhang@tencent.com" }
wcdb.ios.deployment_target = "8.0"
wcdb.osx.deployment_target = "10.9"
wcdb.watchos.deployment_target = "2.0"
wcdb.tvos.deployment_target = "9.0"
wcdb.source = { :git => "https://github.com/Tencent/wcdb.git", :tag => "v1.0.8.2" }
wcdb.source_files = "swift/source/**/*.swift", "swift/source/**/**/*.swift", "swift/source/util/*.{h,c}"
wcdb.module_name = "WCDBSwift"
wcdb.requires_arc = true
wcdb.pod_target_xcconfig = {
"GCC_PREPROCESSOR_DEFINITIONS" => "SQLITE_HAS_CODEC WCDB_BUILTIN_SQLCIPHER",
'SWIFT_WHOLE_MODULE_OPTIMIZATION' => 'YES',
'APPLICATION_EXTENSION_API_ONLY' => 'YES',
"HEADER_SEARCH_PATHS" => "${PODS_ROOT}/WCDBSwift",
"LIBRARY_SEARCH_PATHS[sdk=macosx*]" => "$(SDKROOT)/usr/lib/system",
"OTHER_SWIFT_FLAGS[config=Release][sdk=iphonesimulator*]" => "-D WCDB_IOS",
"OTHER_SWIFT_FLAGS[config=Release][sdk=iphoneos*]" => "-D WCDB_IOS",
"OTHER_SWIFT_FLAGS[config=Debug]" => "-D DEBUG",
"OTHER_SWIFT_FLAGS[config=Debug][sdk=iphonesimulator*]" => "-D WCDB_IOS -D DEBUG",
"OTHER_SWIFT_FLAGS[config=Debug][sdk=iphoneos*]" => "-D WCDB_IOS -D DEBUG",
}
wcdb.swift_version = '4.2'
wcdb.dependency 'WCDBOptimizedSQLCipher', '~> 1.2.0'
wcdb.dependency 'SQLiteRepairKit', '~> 1.2.0'
end