@@ -18,36 +18,21 @@ Pod::Spec.new do |s|
18
18
s . default_subspec = 'standard'
19
19
s . swift_versions = [ '5' ]
20
20
21
- ios_deployment_target = '12.0'
22
- tvos_deployment_target = '12.0'
23
- osx_deployment_target = '10.13'
24
- watchos_deployment_target = '4.0'
25
- visionos_deployment_target = '1.0'
26
-
27
- s . ios . deployment_target = ios_deployment_target
28
- s . tvos . deployment_target = tvos_deployment_target
29
- s . osx . deployment_target = osx_deployment_target
30
- s . watchos . deployment_target = watchos_deployment_target
31
- s . visionos . deployment_target = visionos_deployment_target
21
+ s . ios . deployment_target = '12.0'
22
+ s . tvos . deployment_target = '12.0'
23
+ s . osx . deployment_target = '10.13'
24
+ s . watchos . deployment_target = '4.0'
25
+ s . visionos . deployment_target = '1.0'
32
26
33
27
s . subspec 'standard' do |ss |
34
28
ss . source_files = 'Sources/SQLite/**/*.{c,h,m,swift}'
35
29
ss . exclude_files = 'Sources/**/Cipher.swift'
36
30
ss . library = 'sqlite3'
37
31
ss . resource_bundle = { 'SQLite.swift' => 'Sources/SQLite/PrivacyInfo.xcprivacy' }
38
32
39
- ss . ios . deployment_target = ios_deployment_target
40
- ss . tvos . deployment_target = tvos_deployment_target
41
- ss . osx . deployment_target = osx_deployment_target
42
- ss . watchos . deployment_target = watchos_deployment_target
43
- ss . visionos . deployment_target = visionos_deployment_target
44
-
45
33
ss . test_spec 'tests' do |test_spec |
46
34
test_spec . resources = 'Tests/SQLiteTests/Resources/*'
47
35
test_spec . source_files = 'Tests/SQLiteTests/*.swift'
48
- test_spec . ios . deployment_target = ios_deployment_target
49
- test_spec . tvos . deployment_target = tvos_deployment_target
50
- test_spec . osx . deployment_target = osx_deployment_target
51
36
end
52
37
end
53
38
@@ -62,22 +47,20 @@ Pod::Spec.new do |s|
62
47
}
63
48
ss . dependency 'sqlite3'
64
49
65
- ss . ios . deployment_target = ios_deployment_target
66
- ss . tvos . deployment_target = tvos_deployment_target
67
- ss . osx . deployment_target = osx_deployment_target
68
- ss . watchos . deployment_target = watchos_deployment_target
69
- ss . visionos . deployment_target = visionos_deployment_target
70
-
71
50
ss . test_spec 'tests' do |test_spec |
72
51
test_spec . resources = 'Tests/SQLiteTests/Resources/*'
73
52
test_spec . source_files = 'Tests/SQLiteTests/*.swift'
74
- test_spec . ios . deployment_target = ios_deployment_target
75
- test_spec . tvos . deployment_target = tvos_deployment_target
76
- test_spec . osx . deployment_target = osx_deployment_target
77
53
end
78
54
end
79
55
80
56
s . subspec 'SQLCipher' do |ss |
57
+ # Disable unsupported visionOS
58
+ # https://github.com/sqlcipher/sqlcipher/issues/483
59
+ ss . ios . deployment_target = s . deployment_target ( :ios )
60
+ ss . tvos . deployment_target = s . deployment_target ( :tvos )
61
+ ss . osx . deployment_target = s . deployment_target ( :osx )
62
+ ss . watchos . deployment_target = s . deployment_target ( :watchos )
63
+
81
64
ss . source_files = 'Sources/SQLite/**/*.{c,h,m,swift}'
82
65
ss . resource_bundle = { 'SQLite.swift' => 'Sources/SQLite/PrivacyInfo.xcprivacy' }
83
66
@@ -87,18 +70,9 @@ Pod::Spec.new do |s|
87
70
}
88
71
ss . dependency 'SQLCipher' , '>= 4.0.0'
89
72
90
- ss . ios . deployment_target = ios_deployment_target
91
- ss . tvos . deployment_target = tvos_deployment_target
92
- ss . osx . deployment_target = osx_deployment_target
93
- ss . watchos . deployment_target = watchos_deployment_target
94
- #ss.visionos.deployment_target = visionos_deployment_target # Not supported by SQLCipher for now
95
-
96
73
ss . test_spec 'tests' do |test_spec |
97
74
test_spec . resources = 'Tests/SQLiteTests/Resources/*'
98
75
test_spec . source_files = 'Tests/SQLiteTests/*.swift'
99
- test_spec . ios . deployment_target = ios_deployment_target
100
- test_spec . tvos . deployment_target = tvos_deployment_target
101
- test_spec . osx . deployment_target = osx_deployment_target
102
76
end
103
77
end
104
78
end
0 commit comments