Skip to content

Commit 4b81dd9

Browse files
committed
Merge branch 'xcode-12.5'
2 parents 8e35821 + efdf26e commit 4b81dd9

File tree

10 files changed

+69
-129
lines changed

10 files changed

+69
-129
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@ before_install:
2525
- brew update
2626
- brew outdated carthage || brew upgrade carthage
2727
script:
28-
# Workaround for Xcode 10.2/tvOS 9.1 bug (This is an outdated workaround; commenting out.)
29-
# See https://stackoverflow.com/questions/55389080/xcode-10-2-failed-to-run-app-on-simulator-with-ios-10
30-
# - sudo mkdir /Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS\ 9.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift
3128
- ./run-tests.sh

SQLite.swift.podspec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Pod::Spec.new do |s|
1919
s.swift_versions = ['4.2', '5']
2020

2121

22-
ios_deployment_target = '8.0'
22+
ios_deployment_target = '9.0'
2323
tvos_deployment_target = '9.1'
2424
osx_deployment_target = '10.10'
25-
watchos_deployment_target = '2.2'
25+
watchos_deployment_target = '3.0'
2626

2727
s.ios.deployment_target = ios_deployment_target
2828
s.tvos.deployment_target = tvos_deployment_target
@@ -32,7 +32,7 @@ Pod::Spec.new do |s|
3232
s.subspec 'standard' do |ss|
3333
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
3434
ss.exclude_files = 'Sources/**/Cipher.swift'
35-
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
35+
ss.private_header_files = 'Sources/SQLiteObjc/fts3_tokenizer.h'
3636
ss.library = 'sqlite3'
3737

3838
ss.test_spec 'tests' do |test_spec|
@@ -47,7 +47,7 @@ Pod::Spec.new do |s|
4747
s.subspec 'standalone' do |ss|
4848
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
4949
ss.exclude_files = 'Sources/**/Cipher.swift'
50-
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
50+
ss.private_header_files = 'Sources/SQLiteObjc/fts3_tokenizer.h'
5151

5252
ss.xcconfig = {
5353
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_SWIFT_STANDALONE',
@@ -66,12 +66,12 @@ Pod::Spec.new do |s|
6666

6767
s.subspec 'SQLCipher' do |ss|
6868
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
69-
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
69+
ss.private_header_files = 'Sources/SQLiteObjc/fts3_tokenizer.h'
7070
ss.xcconfig = {
7171
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_SWIFT_SQLCIPHER',
72-
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1'
72+
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1 SQLITE_SWIFT_SQLCIPHER=1'
7373
}
74-
ss.dependency 'SQLCipher', '>= 3.4.0'
74+
ss.dependency 'SQLCipher', '>= 4.0.0'
7575

7676
ss.test_spec 'tests' do |test_spec|
7777
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'

SQLite.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@
10991099
SDKROOT = watchos;
11001100
SKIP_INSTALL = YES;
11011101
TARGETED_DEVICE_FAMILY = 4;
1102-
WATCHOS_DEPLOYMENT_TARGET = 2.2;
1102+
WATCHOS_DEPLOYMENT_TARGET = 3.0;
11031103
};
11041104
name = Debug;
11051105
};
@@ -1121,7 +1121,7 @@
11211121
SDKROOT = watchos;
11221122
SKIP_INSTALL = YES;
11231123
TARGETED_DEVICE_FAMILY = 4;
1124-
WATCHOS_DEPLOYMENT_TARGET = 2.2;
1124+
WATCHOS_DEPLOYMENT_TARGET = 3.0;
11251125
};
11261126
name = Release;
11271127
};
@@ -1174,7 +1174,7 @@
11741174
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
11751175
GCC_WARN_UNUSED_FUNCTION = YES;
11761176
GCC_WARN_UNUSED_VARIABLE = YES;
1177-
IPHONEOS_DEPLOYMENT_TARGET = 12.3;
1177+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
11781178
MACOSX_DEPLOYMENT_TARGET = 10.15;
11791179
MTL_ENABLE_DEBUG_INFO = YES;
11801180
ONLY_ACTIVE_ARCH = YES;
@@ -1231,7 +1231,7 @@
12311231
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
12321232
GCC_WARN_UNUSED_FUNCTION = YES;
12331233
GCC_WARN_UNUSED_VARIABLE = YES;
1234-
IPHONEOS_DEPLOYMENT_TARGET = 12.3;
1234+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
12351235
MACOSX_DEPLOYMENT_TARGET = 10.15;
12361236
MTL_ENABLE_DEBUG_INFO = NO;
12371237
PRODUCT_NAME = "";

Sources/SQLiteObjc/SQLiteObjc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
@import Foundation;
2626
#if defined(SQLITE_SWIFT_STANDALONE)
2727
@import sqlite3;
28+
#elif defined(SQLITE_SWIFT_SQLCIPHER)
29+
@import SQLCipher;
2830
#else
2931
@import SQLite3;
3032
#endif

Sources/SQLiteObjc/include/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

Sources/SQLiteObjc/include/SQLiteObjc.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

Tests/CocoaPods/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem 'cocoapods', '~> 1.6.1'
3+
gem 'cocoapods', '~> 1.10.1'
44
gem 'minitest'

Tests/CocoaPods/Gemfile.lock

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,94 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.0)
5-
activesupport (4.2.11)
6-
i18n (~> 0.7)
4+
CFPropertyList (3.0.3)
5+
activesupport (5.2.6)
6+
concurrent-ruby (~> 1.0, >= 1.0.2)
7+
i18n (>= 0.7, < 2)
78
minitest (~> 5.1)
8-
thread_safe (~> 0.3, >= 0.3.4)
99
tzinfo (~> 1.1)
10+
addressable (2.7.0)
11+
public_suffix (>= 2.0.2, < 5.0)
12+
algoliasearch (1.27.5)
13+
httpclient (~> 2.8, >= 2.8.3)
14+
json (>= 1.5.1)
1015
atomos (0.1.3)
11-
claide (1.0.2)
12-
cocoapods (1.6.0.beta.2)
13-
activesupport (>= 4.0.2, < 5)
16+
claide (1.0.3)
17+
cocoapods (1.10.1)
18+
addressable (~> 2.6)
1419
claide (>= 1.0.2, < 2.0)
15-
cocoapods-core (= 1.6.0.beta.2)
16-
cocoapods-deintegrate (>= 1.0.2, < 2.0)
17-
cocoapods-downloader (>= 1.2.2, < 2.0)
20+
cocoapods-core (= 1.10.1)
21+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
22+
cocoapods-downloader (>= 1.4.0, < 2.0)
1823
cocoapods-plugins (>= 1.0.0, < 2.0)
1924
cocoapods-search (>= 1.0.0, < 2.0)
20-
cocoapods-stats (>= 1.0.0, < 2.0)
21-
cocoapods-trunk (>= 1.3.1, < 2.0)
25+
cocoapods-trunk (>= 1.4.0, < 2.0)
2226
cocoapods-try (>= 1.1.0, < 2.0)
2327
colored2 (~> 3.1)
2428
escape (~> 0.0.4)
25-
fourflusher (~> 2.0.1)
29+
fourflusher (>= 2.3.0, < 3.0)
2630
gh_inspector (~> 1.0)
2731
molinillo (~> 0.6.6)
2832
nap (~> 1.0)
29-
ruby-macho (~> 1.3, >= 1.3.1)
30-
xcodeproj (>= 1.7.0, < 2.0)
31-
cocoapods-core (1.6.0.beta.2)
32-
activesupport (>= 4.0.2, < 6)
33+
ruby-macho (~> 1.4)
34+
xcodeproj (>= 1.19.0, < 2.0)
35+
cocoapods-core (1.10.1)
36+
activesupport (> 5.0, < 6)
37+
addressable (~> 2.6)
38+
algoliasearch (~> 1.0)
39+
concurrent-ruby (~> 1.1)
3340
fuzzy_match (~> 2.0.4)
3441
nap (~> 1.0)
35-
cocoapods-deintegrate (1.0.2)
36-
cocoapods-downloader (1.2.2)
42+
netrc (~> 0.11)
43+
public_suffix
44+
typhoeus (~> 1.0)
45+
cocoapods-deintegrate (1.0.4)
46+
cocoapods-downloader (1.4.0)
3747
cocoapods-plugins (1.0.0)
3848
nap
3949
cocoapods-search (1.0.0)
40-
cocoapods-stats (1.0.0)
41-
cocoapods-trunk (1.3.1)
50+
cocoapods-trunk (1.5.0)
4251
nap (>= 0.8, < 2.0)
4352
netrc (~> 0.11)
44-
cocoapods-try (1.1.0)
53+
cocoapods-try (1.2.0)
4554
colored2 (3.1.2)
46-
concurrent-ruby (1.1.4)
55+
concurrent-ruby (1.1.9)
4756
escape (0.0.4)
48-
fourflusher (2.0.1)
57+
ethon (0.14.0)
58+
ffi (>= 1.15.0)
59+
ffi (1.15.3)
60+
fourflusher (2.3.1)
4961
fuzzy_match (2.0.4)
5062
gh_inspector (1.1.3)
51-
i18n (0.9.5)
63+
httpclient (2.8.3)
64+
i18n (1.8.10)
5265
concurrent-ruby (~> 1.0)
53-
minitest (5.11.3)
66+
json (2.5.1)
67+
minitest (5.14.4)
5468
molinillo (0.6.6)
55-
nanaimo (0.2.6)
69+
nanaimo (0.3.0)
5670
nap (1.1.0)
5771
netrc (0.11.0)
58-
ruby-macho (1.3.1)
72+
public_suffix (4.0.6)
73+
ruby-macho (1.4.0)
5974
thread_safe (0.3.6)
60-
tzinfo (1.2.5)
75+
typhoeus (1.4.0)
76+
ethon (>= 0.9.0)
77+
tzinfo (1.2.9)
6178
thread_safe (~> 0.1)
62-
xcodeproj (1.7.0)
79+
xcodeproj (1.19.0)
6380
CFPropertyList (>= 2.3.3, < 4.0)
6481
atomos (~> 0.1.3)
6582
claide (>= 1.0.2, < 2.0)
6683
colored2 (~> 3.1)
67-
nanaimo (~> 0.2.6)
84+
nanaimo (~> 0.3.0)
6885

6986
PLATFORMS
7087
ruby
7188

7289
DEPENDENCIES
73-
cocoapods (~> 1.6.0beta2)
90+
cocoapods (~> 1.10.1)
7491
minitest
7592

7693
BUNDLED WITH
77-
1.17.1
94+
1.17.3

Tests/CocoaPods/integration_test.rb

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_validate_project
1313
private
1414

1515
def validator
16-
@validator ||= CustomValidator.new(podspec, ['https://github.com/CocoaPods/Specs.git']).tap do |validator|
16+
@validator ||= Pod::Validator.new(podspec, ['https://github.com/CocoaPods/Specs.git']).tap do |validator|
1717
validator.config.verbose = true
1818
validator.no_clean = true
1919
validator.use_frameworks = true
@@ -32,39 +32,4 @@ def validator
3232
def podspec
3333
File.expand_path(File.dirname(__FILE__) + '/../../SQLite.swift.podspec')
3434
end
35-
36-
37-
class CustomValidator < Pod::Validator
38-
def test_pod
39-
# https://github.com/CocoaPods/CocoaPods/issues/7009
40-
super unless consumer.platform_name == :watchos
41-
end
42-
43-
def xcodebuild(action, scheme, configuration)
44-
require 'fourflusher'
45-
command = %W(#{action} -workspace #{File.join(validation_dir, 'App.xcworkspace')} -scheme #{scheme} -configuration #{configuration})
46-
case consumer.platform_name
47-
when :osx, :macos
48-
command += %w(CODE_SIGN_IDENTITY=)
49-
when :ios
50-
command += %w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
51-
command += Fourflusher::SimControl.new.destination(nil, 'iOS', deployment_target)
52-
when :watchos
53-
command += %w(CODE_SIGN_IDENTITY=- -sdk watchsimulator)
54-
command += Fourflusher::SimControl.new.destination(:oldest, 'watchOS', deployment_target)
55-
when :tvos
56-
command += %w(CODE_SIGN_IDENTITY=- -sdk appletvsimulator)
57-
command += Fourflusher::SimControl.new.destination(:oldest, 'tvOS', deployment_target)
58-
end
59-
60-
begin
61-
_xcodebuild(command, true)
62-
rescue => e
63-
message = 'Returned an unsuccessful exit code.'
64-
message += ' You can use `--verbose` for more information.' unless config.verbose?
65-
error('xcodebuild', message)
66-
e.message
67-
end
68-
end
69-
end
7035
end

Tests/SQLiteTests/ConnectionTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ class ConnectionTests : SQLiteTestCase {
3838

3939
func test_init_withURI_returnsURIConnection() {
4040
let db = try! Connection(.uri("\(NSTemporaryDirectory())/SQLite.swift Tests.sqlite3"))
41-
XCTAssertEqual("\(NSTemporaryDirectory())/SQLite.swift Tests.sqlite3", db.description)
41+
let url = URL(fileURLWithPath: db.description)
42+
XCTAssertEqual(url.lastPathComponent, "SQLite.swift Tests.sqlite3")
4243
}
4344

4445
func test_init_withString_returnsURIConnection() {
4546
let db = try! Connection("\(NSTemporaryDirectory())/SQLite.swift Tests.sqlite3")
46-
XCTAssertEqual("\(NSTemporaryDirectory())/SQLite.swift Tests.sqlite3", db.description)
47+
let url = URL(fileURLWithPath: db.description)
48+
XCTAssertEqual(url.lastPathComponent, "SQLite.swift Tests.sqlite3")
4749
}
4850

4951
func test_readonly_returnsFalseOnReadWriteConnections() {

0 commit comments

Comments
 (0)