Skip to content

Commit

Permalink
Updates to Swift 5 and Xcode 10.2 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
eSpecialized authored Apr 30, 2019
1 parent 341a945 commit ba899f0
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 81 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
os: osx
osx_image: xcode10.1
osx_image: xcode10.2
branches:
only:
- master
Expand All @@ -14,12 +14,12 @@ env:
- TVOS_FRAMEWORK_SCHEME="SQift tvOS CI"
- WATCHOS_FRAMEWORK_SCHEME="SQift watchOS"
matrix:
- DESTINATION="OS=12.1,name=iPhone XS" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="OS=12.2,name=iPhone XS" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="OS=11.3,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=10.3.1,name=iPhone 7" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="$MACOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=12.1,name=Apple TV 4K" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=5.1,name=Apple Watch Series 4 - 44mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=12.2,name=Apple TV 4K" SCHEME="$TVOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=5.2,name=Apple Watch Series 4 - 44mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" RUN_TESTS="NO" BUILD_EXAMPLE="NO" POD_LINT="NO"

before_install:
- gem update bundler
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.

#### 4.x Releases

- `4.1.x` Releases - [4.1.0](#410)
- `4.0.x` Releases - [4.0.0](#400)

#### 3.x Releases
Expand Down Expand Up @@ -36,12 +37,24 @@ All notable changes to this project will be documented in this file.
- `0.2.x` Releases - [0.2.0](#020)
- `0.1.x` Releases - [0.1.0](#010)

---
## [4.1.0](https://github.com/Nike-Inc/SQift/releases/tag/4.1.0)

Release on 2019-04-30. All issues associated with this milestone can be found using this
[filter](https://github.com/Nike-Inc/SQift/milestone/8?closed=1).

#### Updated
- To Swift 5 with backwards compatibility to Swift 4.2.
- Updated by [William Thompson](https://github.com/eSpecialized) in Pull Request [#18](https://github.com/Nike-Inc/SQift/pull/18).
- Deployment targets to watchOS 3.0 and tvOS 10.0 in Xcode project to match podspec.
- Updated by [William Thompson](https://github.com/eSpecialized) in Pull Request [#18](https://github.com/Nike-Inc/SQift/pull/18).

---

## [4.0.0](https://github.com/Nike-Inc/SQift/releases/tag/4.0.0)

Release on 2018-11-30. All issues associated with this milestone can be found using this
[filter](https://github.com/Nike-Inc/SQift/milestone/7?closed=1)
[filter](https://github.com/Nike-Inc/SQift/milestone/7?closed=1).

#### Added
- Migration Guide for SQift 4 and added it to the README.
Expand Down
11 changes: 10 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#
# Gemfile
# SQift
#
# Created by William Thompson on 4/30/19
# Copyright © 2019 Nike. All rights reserved.
#

source "https://rubygems.org"

gem "cocoapods", "~> 1.6.0.beta.1"
gem "cocoapods", "~> 1.7.0.beta.3"
gem "xcpretty"

34 changes: 17 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@ GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
activesupport (4.2.10)
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
atomos (0.1.3)
claide (1.0.2)
cocoapods (1.6.0.beta.1)
cocoapods (1.7.0.beta.3)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.6.0.beta.1)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.1, < 2.0)
cocoapods-core (= 1.7.0.beta.3)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.3.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
fourflusher (>= 2.2.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.2)
xcodeproj (>= 1.6.0, < 2.0)
cocoapods-core (1.6.0.beta.1)
ruby-macho (~> 1.4)
xcodeproj (>= 1.8.2, < 2.0)
cocoapods-core (1.7.0.beta.3)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.1)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.3.1)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.0.5)
concurrent-ruby (1.1.5)
escape (0.0.4)
fourflusher (2.0.1)
fourflusher (2.2.0)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
i18n (0.9.5)
Expand All @@ -56,11 +56,11 @@ GEM
nap (1.1.0)
netrc (0.11.0)
rouge (2.0.7)
ruby-macho (1.2.0)
ruby-macho (1.4.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.6.0)
xcodeproj (1.8.2)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand All @@ -73,7 +73,7 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.6.0.beta.1)
cocoapods (~> 1.7.0.beta.3)
xcpretty

BUNDLED WITH
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ SQift is a lightweight Swift wrapper for SQLite.
## Requirements

- iOS 10.0+, macOS 10.12+, tvOS 10.0+, watchOS 3.0+
- Xcode 9.3+
- Swift 4.1+
- Xcode 10.0+
- Swift 4.2+

## Migration Guides

Expand Down
4 changes: 2 additions & 2 deletions SQift.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "SQift"
s.version = "4.0.0"
s.version = "4.1.0"
s.license = "MIT"
s.summary = "A lightweight Swift wrapper for SQLite."
s.homepage = "https://github.com/Nike-Inc/SQift"
s.authors = { "Dave Camp" => "[email protected]", "Christian Noon" => "[email protected]" }

s.source = { :git => "https://github.com/Nike-Inc/SQift.git", :tag => s.version }
s.source_files = "Source/**/*.swift"
s.swift_version = "4.2"
s.swift_versions = ["4.2", "5.0"]

s.ios.deployment_target = "10.0"
s.osx.deployment_target = "10.12"
Expand Down
45 changes: 27 additions & 18 deletions SQift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@
4C3C4CFA1BFB2B6F0080A0C6 /* SQift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4C5036FE1F69B13700B54640 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
4C6120751F58BAD500C289C0 /* StringExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringExtension.swift; sourceTree = "<group>"; };
4C6120771F58BAD500C289C0 /* Info-tvOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-tvOS.plist"; sourceTree = "<group>"; };
4C6120781F58BAD500C289C0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4C6120791F58BAD500C289C0 /* SQift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQift.h; sourceTree = "<group>"; };
4C61207C1F58BAD500C289C0 /* Binding.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Binding.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -365,7 +364,6 @@
4C6120761F58BAD500C289C0 /* Supporting Files */ = {
isa = PBXGroup;
children = (
4C6120771F58BAD500C289C0 /* Info-tvOS.plist */,
4C6120781F58BAD500C289C0 /* Info.plist */,
4C6120791F58BAD500C289C0 /* SQift.h */,
);
Expand Down Expand Up @@ -800,18 +798,18 @@
4C29B3151BFB28330086A2EF = {
CreatedOnToolsVersion = 7.1;
DevelopmentTeamName = "Nike, Inc.";
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Manual;
};
4C29B31E1BFB28330086A2EF = {
CreatedOnToolsVersion = 7.1;
DevelopmentTeamName = "Nike, Inc.";
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
};
4C3C4CF91BFB2B6F0080A0C6 = {
CreatedOnToolsVersion = 7.1;
DevelopmentTeamName = "Nike, Inc.";
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Manual;
};
4C7F1E9B1CD3507C00098A83 = {
Expand All @@ -820,22 +818,23 @@
4CA8C21D1BF6A49400822606 = {
CreatedOnToolsVersion = 7.1;
DevelopmentTeamName = "Nike, Inc.";
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
ProvisioningStyle = Manual;
};
4CA8C2271BF6A49400822606 = {
CreatedOnToolsVersion = 7.1;
DevelopmentTeamName = "Nike, Inc.";
LastSwiftMigration = 0900;
LastSwiftMigration = 1020;
};
};
};
buildConfigurationList = 4CA8C2181BF6A49400822606 /* Build configuration list for PBXProject "SQift" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 4CA8C2141BF6A49400822606;
productRefGroup = 4CA8C21F1BF6A49400822606 /* Products */;
Expand Down Expand Up @@ -1277,7 +1276,7 @@
"$(inherited)",
"SQLITE_HAS_CODEC=1",
);
INFOPLIST_FILE = "Source/Supporting Files/Info-tvOS.plist";
INFOPLIST_FILE = "Source/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -1289,6 +1288,7 @@
PRODUCT_NAME = SQift;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 10.0;
};
Expand All @@ -1304,7 +1304,7 @@
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_PREPROCESSOR_DEFINITIONS = "SQLITE_HAS_CODEC=1";
INFOPLIST_FILE = "Source/Supporting Files/Info-tvOS.plist";
INFOPLIST_FILE = "Source/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -1316,6 +1316,7 @@
PRODUCT_NAME = SQift;
SDKROOT = appletvos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 10.0;
};
Expand All @@ -1337,6 +1338,7 @@
PRODUCT_NAME = "SQift Tests";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = appletvos;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 10.0;
};
name = Debug;
Expand All @@ -1357,6 +1359,7 @@
PRODUCT_NAME = "SQift Tests";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = appletvos;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 10.0;
};
name = Release;
Expand Down Expand Up @@ -1387,6 +1390,7 @@
PRODUCT_NAME = SQift;
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
Expand Down Expand Up @@ -1414,6 +1418,7 @@
PRODUCT_NAME = SQift;
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
Expand Down Expand Up @@ -1486,12 +1491,12 @@
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 9.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 10.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
name = Debug;
};
Expand Down Expand Up @@ -1542,13 +1547,13 @@
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 9.0;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3";
TVOS_DEPLOYMENT_TARGET = 10.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
WATCHOS_DEPLOYMENT_TARGET = 3.0;
};
name = Release;
};
Expand Down Expand Up @@ -1578,6 +1583,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.nike.SQift;
PRODUCT_NAME = SQift;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1603,6 +1609,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.nike.SQift;
PRODUCT_NAME = SQift;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -1621,6 +1628,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.nike.SQift-Tests";
PRODUCT_NAME = "SQift Tests";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1639,6 +1647,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.nike.SQift-Tests";
PRODUCT_NAME = "SQift Tests";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
4 changes: 3 additions & 1 deletion Source/Connection/ConnectionQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public class ConnectionQueue {
// MARK: - Hashable

extension ConnectionQueue: Hashable {
public var hashValue: Int { return id.hashValue }
public func hash(into hasher: inout Hasher) {
hasher.combine(id.hashValue)
}
}

// MARK: - Equatable
Expand Down
Loading

0 comments on commit ba899f0

Please sign in to comment.