1
+ require "json"
2
+
3
+ lcpackage = JSON . parse ( File . read ( File . join ( __dir__ , "package.json" ) ) )
4
+ version = lcpackage [ 'version' ]
5
+
1
6
Pod ::Spec . new do |s |
2
7
s . name = "node-sqlite3"
3
- s . version = "0.1.4"
8
+ s . version = version
4
9
s . summary = "Asynchronous, non-blocking SQLite3 bindings for LiqudCore"
5
10
6
11
s . description = <<-DESC
@@ -9,48 +14,36 @@ Pod::Spec.new do |s|
9
14
10
15
s . homepage = "https://github.com/LiquidPlayer/node-sqlite3"
11
16
s . license = { :type => "BSD-3" , :file => "LICENSE" }
12
-
13
17
s . author = { "Eric Lange" => "[email protected] " }
14
-
15
- s . platform = :ios , '10.0'
16
-
18
+ s . platform = :ios , '11.0'
17
19
s . source = { :git => "https://github.com/LiquidPlayer/node-sqlite3.git" , :tag => "#{ s . version } " }
18
-
19
20
s . prepare_command = <<-CMD
20
21
npm install
21
22
CMD
22
-
23
23
s . source_files =
24
24
"src/*.{cc,h}" ,
25
25
"liquidcore/ios/*.{h,m,mm}" ,
26
26
"node_modules/nan/*.h"
27
-
28
27
s . private_header_files = [
29
28
"src/*.{h}" ,
30
29
"liquidcore/ios/*.{h}" ,
31
30
"node_modules/nan/*.h"
32
31
]
33
-
34
- s . libraries = [
35
- 'sqlite3' , # libsqlite3.tbd
36
- ]
37
-
32
+ s . libraries = [ 'sqlite3' ]
38
33
s . xcconfig = {
39
34
:CLANG_WARN_DOCUMENTATION_COMMENTS => 'NO' ,
40
35
:GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS => 'NO' ,
41
36
:GCC_WARN_64_TO_32_BIT_CONVERSION => 'NO' ,
42
37
:CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES => 'YES' ,
43
38
:SYSTEM_HEADER_SEARCH_PATHS => [
44
- "${PODS_CONFIGURATION_BUILD_DIR}/LiquidCore/LiquidCore .framework/PrivateHeaders"
39
+ "${PODS_CONFIGURATION_BUILD_DIR}/LiquidCore-headers/LiquidCore_headers .framework/PrivateHeaders" ,
45
40
] . join ( ' ' ) ,
46
-
47
41
:OTHER_CPLUSPLUSFLAGS => [
48
42
'-DNODE_WANT_INTERNALS=1'
49
43
] . join ( ' ' ) ,
50
44
51
45
}
52
-
53
46
s . swift_version = '3.0'
54
-
55
47
s . dependency "LiquidCore"
48
+ s . dependency 'LiquidCore-headers'
56
49
end
0 commit comments