Skip to content

Commit 77b493e

Browse files
committed
Use inheritance
1 parent a013654 commit 77b493e

1 file changed

Lines changed: 5 additions & 38 deletions

File tree

SQLite.swift.podspec

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,21 @@ Pod::Spec.new do |s|
1818
s.default_subspec = 'standard'
1919
s.swift_versions = ['5']
2020

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'
3226

3327
s.subspec 'standard' do |ss|
3428
ss.source_files = 'Sources/SQLite/**/*.{c,h,m,swift}'
3529
ss.exclude_files = 'Sources/**/Cipher.swift'
3630
ss.library = 'sqlite3'
3731
ss.resource_bundle = { 'SQLite.swift' => 'Sources/SQLite/PrivacyInfo.xcprivacy' }
3832

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-
4533
ss.test_spec 'tests' do |test_spec|
4634
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
4735
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
5136
end
5237
end
5338

@@ -62,18 +47,9 @@ Pod::Spec.new do |s|
6247
}
6348
ss.dependency 'sqlite3'
6449

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-
7150
ss.test_spec 'tests' do |test_spec|
7251
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
7352
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
7753
end
7854
end
7955

@@ -87,18 +63,9 @@ Pod::Spec.new do |s|
8763
}
8864
ss.dependency 'SQLCipher', '>= 4.0.0'
8965

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-
9666
ss.test_spec 'tests' do |test_spec|
9767
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
9868
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
10269
end
10370
end
10471
end

0 commit comments

Comments
 (0)