Skip to content

Commit e1e803c

Browse files
committed
Upgrade to Swift 5
1 parent 34299cc commit e1e803c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Configurations/debug.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES
5656
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
5757
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
5858
CLANG_ANALYZER_NONNULL = YES
59-
SWIFT_VERSION = 4.2
59+
SWIFT_VERSION = 5.0
6060

6161
COPYRIGHT_STATEMENT = Copyright © 2018 Shareup Software Corporation. All rights reserved.
6262

SQLite.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,17 @@
221221
isa = PBXProject;
222222
attributes = {
223223
LastSwiftUpdateCheck = 0920;
224-
LastUpgradeCheck = 1010;
224+
LastUpgradeCheck = 1020;
225225
ORGANIZATIONNAME = "Shareup Software Corporation";
226226
TargetAttributes = {
227227
571C8C822036DA620096BCBC = {
228228
CreatedOnToolsVersion = 9.2;
229-
LastSwiftMigration = 0920;
229+
LastSwiftMigration = 1020;
230230
ProvisioningStyle = Automatic;
231231
};
232232
571C8C8B2036DA620096BCBC = {
233233
CreatedOnToolsVersion = 9.2;
234+
LastSwiftMigration = 1020;
234235
ProvisioningStyle = Automatic;
235236
};
236237
};
@@ -241,6 +242,7 @@
241242
hasScannedForEncodings = 0;
242243
knownRegions = (
243244
en,
245+
Base,
244246
);
245247
mainGroup = 571C8C792036DA620096BCBC;
246248
productRefGroup = 571C8C842036DA620096BCBC /* Products */;
@@ -333,15 +335,13 @@
333335
isa = XCBuildConfiguration;
334336
baseConfigurationReference = 575DCD3620AA2C00007BE521 /* sqlite-debug.xcconfig */;
335337
buildSettings = {
336-
SWIFT_COMPILATION_MODE = singlefile;
337338
};
338339
name = Debug;
339340
};
340341
571C8C992036DA620096BCBC /* Release */ = {
341342
isa = XCBuildConfiguration;
342343
baseConfigurationReference = 575DCD3820AA2C00007BE521 /* sqlite-release.xcconfig */;
343344
buildSettings = {
344-
SWIFT_COMPILATION_MODE = singlefile;
345345
};
346346
name = Release;
347347
};

SQLite.xcodeproj/xcshareddata/xcschemes/SQLite.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1010"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

SQLite/SQLite+Database.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ private extension Statement {
375375
let result: Int32
376376
switch value {
377377
case .data(let data):
378-
result = data.withUnsafeBytes { (bytes: UnsafePointer) -> Int32 in
379-
return sqlite3_bind_blob(self, index, bytes, Int32(data.count), SQLITE_TRANSIENT)
378+
result = data.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) -> Int32 in
379+
return sqlite3_bind_blob(self, index, bytes.baseAddress, Int32(bytes.count), SQLITE_TRANSIENT)
380380
}
381381
case .double(let double):
382382
result = sqlite3_bind_double(self, index, double)

0 commit comments

Comments
 (0)